/* ============================================================
   NEO-BRUTALISM UI DESIGN SYSTEM (Light / Pop Retro Neo-Brutalism)
   ============================================================ */

:root {
    --bg-canvas: #FFFDF5;
    --bg-surface: #FFFFFF;
    --border-color: #000000;
    --border-thick: 3px solid #000000;
    --border-heavy: 4px solid #000000;
    
    --shadow-sm: 3px 3px 0px #000000;
    --shadow-md: 5px 5px 0px #000000;
    --shadow-lg: 8px 8px 0px #000000;
    --shadow-xl: 12px 12px 0px #000000;
    
    /* Pop Retro Palette */
    --pop-yellow: #FFE600;
    --pop-lime: #A3E635;
    --pop-green: #22C55E;
    --pop-cyan: #00F0FF;
    --pop-sky: #38BDF8;
    --pop-blue: #3B82F6;
    --pop-pink: #FF5470;
    --pop-purple: #C084FC;
    --pop-orange: #FF8C32;
    --pop-cream: #FEF9C3;
    
    --text-main: #000000;
    --text-muted: #4B5563;
    
    --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-canvas);
    background-image: radial-gradient(#000000 1.2px, transparent 1.2px);
    background-size: 20px 20px;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbars Neo-Brutalist */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-left: 2px solid #000000;
}
::-webkit-scrollbar-thumb {
    background: var(--pop-yellow);
    border: 2px solid #000000;
    box-shadow: 1px 1px 0px #000;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pop-orange);
}

::selection {
    background: var(--pop-yellow);
    color: #000000;
}

.app {
    display: flex;
    height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: 350px;
    background: var(--bg-surface);
    border-right: var(--border-heavy);
    padding: 24px 20px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 0 #000;
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 24px;
}

.sidebar-header h1 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    padding: 14px 10px;
    border: var(--border-thick);
    background: var(--pop-yellow);
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Stats Section */
.stats-section {
    margin-bottom: 24px;
}

.stats-section h3,
.nav-section h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: #000000;
    color: #FFFFFF;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000;
}

.stat-card {
    border: var(--border-thick);
    background: #FFFFFF;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2px dashed #E5E7EB;
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    padding: 2px 8px;
    border: 2px solid #000000;
    background: #F3F4F6;
    box-shadow: 2px 2px 0px #000000;
}

.stat-item.live .stat-value {
    background: #DCFCE7;
    color: #15803D;
    border-color: #000000;
}

.stat-item.dead .stat-value {
    background: #FFE4E6;
    color: #BE123C;
    border-color: #000000;
}

/* Platform Navigation */
.nav-section {
    margin-bottom: 30px;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-btn {
    padding: 14px 16px;
    border: var(--border-thick);
    background: #FFFFFF;
    color: #000000;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.nav-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.nav-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000;
}

.nav-btn.active {
    background: var(--pop-yellow) !important;
    color: #000000 !important;
    box-shadow: var(--shadow-md);
    transform: translate(-2px, -2px);
    border-width: 3px;
}

.nav-btn.instagram-btn { background: #FFF1F2; }
.nav-btn.instagram-btn:hover { background: #FFE4E6; }

.nav-btn.tiktok-btn { background: #ECFEFF; }
.nav-btn.tiktok-btn:hover { background: #CFFAFE; }

.nav-btn.facebook-btn { background: #EFF6FF; }
.nav-btn.facebook-btn:hover { background: #DBEAFE; }

.nav-btn.twitter-btn { background: #FAF5FF; }
.nav-btn.twitter-btn:hover { background: #F3E8FF; }

/* Copyright */
.copyright {
    margin-top: auto;
    text-align: center;
    font-size: 11px;
    color: #6B7280;
    border-top: 2px dashed #000000;
    padding-top: 16px;
    font-weight: 600;
}

.copyright a {
    color: #000000;
    font-weight: 800;
    text-decoration: underline;
    background: var(--pop-yellow);
    padding: 2px 4px;
    border: 1px solid #000;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    flex: 1;
    background: transparent;
    padding: 30px;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px 24px;
    border: var(--border-heavy);
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.content-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    background: var(--pop-yellow);
    padding: 4px 12px;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    display: inline-block;
}

.refresh-btn {
    padding: 10px 18px;
    border: var(--border-thick);
    background: var(--pop-cyan);
    color: #000000;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
    background: #22d3ee;
}

.refresh-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 80px 30px;
    border: var(--border-heavy);
    background: #FFFFFF;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 40px auto;
}

.welcome-message i {
    font-size: 48px;
    color: #000000;
    margin-bottom: 16px;
    background: var(--pop-yellow);
    padding: 20px;
    border: var(--border-thick);
    box-shadow: var(--shadow-md);
    border-radius: 50%;
}

.welcome-message h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.welcome-message p {
    color: #4B5563;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   PLATFORM PANEL & STATS
   ============================================================ */
.platform-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.platform-stat-card {
    border: var(--border-thick);
    background: #FFFFFF;
    padding: 18px 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.12s ease;
}

.platform-stat-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-lg);
}

.platform-stat-card h4 {
    font-size: 11px;
    font-weight: 800;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 2px 6px;
    background: #F3F4F6;
    border: 1px solid #000;
}

.platform-stat-card .big-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 800;
    color: #000000;
}

/* Platform Actions Container */
.platform-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-section {
    border: var(--border-heavy);
    background: #FFFFFF;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.action-section h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding: 4px 10px;
    background: var(--pop-yellow);
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-btn {
    padding: 12px 20px;
    border: var(--border-thick);
    background: #FFFFFF;
    color: #000000;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: var(--pop-yellow);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.action-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000;
}

/* History button specific */
.history-btn {
    background: #FEF08A !important;
}

.history-btn:hover {
    background: var(--pop-orange) !important;
    color: #000 !important;
}

/* ============================================================
   ACCOUNT CHECKER
   ============================================================ */
.account-checker {
    border: var(--border-heavy);
    background: #FFFFFF;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.checker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 2px dashed #000;
    padding-bottom: 12px;
}

.checker-header h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    background: var(--pop-cyan);
    padding: 4px 10px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.check-input {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.check-input input {
    flex: 1;
    padding: 12px 16px;
    border: var(--border-thick);
    background: #FFFFFF;
    color: #000000;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.08);
}

.check-input input:focus {
    outline: none;
    border-color: #000;
    box-shadow: var(--shadow-sm);
}

.check-btn {
    padding: 12px 24px;
    border: var(--border-thick);
    background: var(--pop-lime);
    color: #000000;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.1s ease;
}

.check-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
    background: #84cc16;
}

.check-results {
    border: 2px solid #000;
    background: #FAFAFA;
    padding: 14px;
    max-height: 250px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #000;
    background: #FFFFFF;
    margin-bottom: 8px;
    box-shadow: 2px 2px 0px #000;
}

.result-item .username {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.result-item .status {
    padding: 2px 8px;
    border: 2px solid #000;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.result-item .status.live {
    background: var(--pop-lime);
    color: #000;
}

.result-item .status.dead {
    background: var(--pop-pink);
    color: #FFF;
}

/* ============================================================
   ORDER HISTORY
   ============================================================ */
.order-history {
    border: var(--border-heavy);
    background: #FFFFFF;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 14px;
}

.history-header h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--pop-yellow);
    padding: 6px 14px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.history-header > div {
    display: flex;
    gap: 10px;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.history-stats .stat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px;
    border: var(--border-thick);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.history-stats .stat-item:nth-child(1) { background: #FFFFFF; }
.history-stats .stat-item:nth-child(2) { background: #FEF08A; } /* Processing */
.history-stats .stat-item:nth-child(3) { background: #BBF7D0; } /* Completed */

.history-stats .stat-item .stat-label {
    font-size: 11px;
    margin-bottom: 6px;
}

.history-stats .stat-item .stat-value {
    font-size: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-item {
    border: var(--border-thick);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease;
}

.order-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #F9FAFB;
    border-bottom: 2px solid #000000;
}

.order-id {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 13px;
    background: #000000;
    color: #FFFFFF;
    padding: 2px 8px;
    border: 1px solid #000;
}

.order-status {
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border: 2px solid #000000;
    text-transform: uppercase;
    box-shadow: 2px 2px 0px #000;
}

.order-status.processing {
    background: #FEF08A;
    color: #000;
}

.order-status.completed {
    background: var(--pop-lime);
    color: #000;
}

.order-status.partial {
    background: var(--pop-orange);
    color: #000;
}

.order-status.pending {
    background: #E5E7EB;
    color: #000;
}

.order-item-body {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-label {
    font-size: 10px;
    color: #6B7280;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.order-value {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #000000;
    font-weight: 700;
    word-break: break-all;
}

.order-item-footer {
    padding: 8px 16px;
    background: #F9FAFB;
    border-top: 2px dashed #E5E7EB;
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   MODAL (Input Target & Custom Comments)
   ============================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    border: var(--border-heavy);
    box-shadow: var(--shadow-xl);
    width: 600px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalPop 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--pop-yellow);
    border-bottom: var(--border-heavy);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

.close-btn {
    background: #FFFFFF;
    border: 2px solid #000;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.1s;
}

.close-btn:hover {
    background: var(--pop-pink);
    color: #FFF;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
}

.modal-body {
    padding: 22px;
}

.input-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 10px 20px;
    border: var(--border-thick);
    background: #FFFFFF;
    color: #000000;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.1s ease;
}

.option-btn.active {
    background: var(--pop-yellow);
    box-shadow: var(--shadow-sm);
}

.option-btn:hover {
    background: var(--pop-yellow);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.quantity-section {
    margin-bottom: 18px;
    padding: 16px;
    border: var(--border-thick);
    background: #FDFBF7;
    box-shadow: var(--shadow-sm);
}

.quantity-section label {
    color: #000000;
    font-weight: 900;
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-section input[type="number"] {
    padding: 10px 14px;
    border: var(--border-thick);
    background: #FFFFFF;
    color: #000000;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.08);
}

.target-guide-box {
    background: #FEF9C3;
    border: 2px dashed #000000;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 3px 3px 0px #000;
}

.target-guide-box .guide-title {
    color: #000000;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.target-guide-box .guide-content {
    color: #1F2937;
    font-weight: 600;
}

.input-section {
    margin-bottom: 20px;
}

.input-section input,
.input-section textarea {
    width: 100%;
    padding: 14px;
    border: var(--border-thick);
    background: #FFFFFF;
    color: #000000;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    resize: vertical;
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.08);
}

.input-section input:focus,
.input-section textarea:focus {
    outline: none;
    box-shadow: var(--shadow-sm);
}

.input-section textarea {
    min-height: 120px;
}

/* Custom Comments Section */
.comment-section {
    margin-bottom: 20px;
    background: #F0FDF4;
    border: var(--border-thick);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.comment-section textarea {
    width: 100%;
    padding: 12px;
    border: var(--border-thick);
    background: #FFFFFF;
    color: #000000;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    resize: vertical;
    min-height: 90px;
}

.preset-btn {
    padding: 4px 10px;
    border: 2px solid #000000;
    background: #FFFFFF;
    color: #000000;
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.1s;
}

.preset-btn:hover {
    background: var(--pop-yellow);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
}

.preset-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 10px;
}

.modal-actions .action-btn {
    background: var(--pop-green);
    color: #000000;
    font-size: 13px;
    padding: 12px 24px;
}

.modal-actions .action-btn:hover {
    background: #16A34A;
    color: #FFF;
}

.cancel-btn {
    padding: 12px 20px;
    border: var(--border-thick);
    background: #F3F4F6;
    color: #000000;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.1s ease;
}

.cancel-btn:hover {
    background: #E5E7EB;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   FLOATING REAL PROGRESS TERMINAL SIMULATION (Neo-Brutalism Pop)
   ============================================================ */
.progress-terminal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 860px;
    max-width: calc(100vw - 32px);
    background: #FFFFFF;
    border: var(--border-heavy);
    box-shadow: 8px 8px 0px #000;
    z-index: 10000;
    font-family: var(--font-body);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-terminal.minimized {
    width: 420px;
    box-shadow: var(--shadow-md);
}

.progress-terminal.minimized .terminal-body {
    display: none;
}

.progress-terminal.maximized {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: calc(100vw - 40px);
    max-width: none;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 12px 12px 0px #000;
}

.progress-terminal.maximized .terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.progress-terminal.maximized .terminal-logs {
    flex: 1;
    height: auto;
    max-height: none;
}

.terminal-header {
    background: var(--pop-yellow);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-thick);
    cursor: pointer;
    user-select: none;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 900;
    color: #000000;
    letter-spacing: 0.5px;
}

.terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22C55E;
    border: 2px solid #000000;
    display: inline-block;
}

.terminal-dot.pulse {
    animation: neoPulse 1s infinite alternate;
}

@keyframes neoPulse {
    0% { transform: scale(0.9); background: #22C55E; }
    100% { transform: scale(1.2); background: #15803D; }
}

.terminal-dot.completed {
    background: #22C55E;
    animation: none;
}

.terminal-dot.error {
    background: var(--pop-pink);
    animation: none;
}

.terminal-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-badge {
    font-family: var(--font-heading);
    font-size: 11px;
    padding: 4px 10px;
    border: 2px solid #000000;
    color: #000000;
    background: #FFFFFF;
    letter-spacing: 0.5px;
    font-weight: 900;
    box-shadow: 2px 2px 0px #000;
}

.terminal-badge.success {
    background: #BBF7D0;
}

.terminal-badge.failed {
    background: #FECDD3;
}

.terminal-badge.processing {
    background: var(--pop-yellow);
    color: #000000;
    animation: badgePulse 1.5s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    0% { box-shadow: 2px 2px 0px #000; }
    100% { box-shadow: 4px 4px 0px #000; }
}

.terminal-dot.processing {
    background: #FFE600;
    border: 2px solid #000;
    animation: processingPulse 1s ease-in-out infinite alternate;
}

@keyframes processingPulse {
    0% { transform: scale(0.9); background: #FFE600; }
    100% { transform: scale(1.3); background: #D97706; }
}


.terminal-btn {
    background: #FFFFFF;
    border: 2px solid #000000;
    color: #000000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.1s;
}

.terminal-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
}

.terminal-btn.close:hover {
    background: var(--pop-pink);
    color: #FFFFFF;
}

.terminal-body {
    padding: 18px;
    background: #FAFAFA;
}

.terminal-info-bar {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1.4fr;
    gap: 12px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: var(--border-thick);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.terminal-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.terminal-info-item .info-label {
    font-size: 10px;
    color: #4B5563;
    letter-spacing: 0.5px;
    font-weight: 900;
}

.terminal-info-item .info-val {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #000000;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-info-item .rate-active {
    color: #D97706;
}

/* Progress bar container */
.terminal-progress-container {
    margin-bottom: 16px;
}

.progress-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-phase {
    color: #000000;
    font-weight: 900;
    font-size: 14px;
    font-family: var(--font-heading);
}

.progress-percent {
    color: #000000;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 14px;
    background: var(--pop-yellow);
    padding: 3px 10px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.progress-track {
    width: 100%;
    height: 20px;
    background: #FFFFFF;
    border: var(--border-thick);
    box-shadow: 2px 2px 0px #000;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--pop-green);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 8px,
        rgba(255, 255, 255, 0.25) 8px,
        rgba(255, 255, 255, 0.25) 16px
    );
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}

/* Logs Box (Charcoal neo-brutalist container with cyber green font) */
.terminal-logs {
    height: 360px;
    background: #0D1117;
    border: var(--border-thick);
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.6), 3px 3px 0px #000;
    padding: 16px 18px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: #F0F6FC;
}

.terminal-log-line {
    margin-bottom: 7px;
    word-break: break-word;
    display: flex;
    gap: 10px;
    align-items: baseline;
    animation: fadeInLog 0.2s ease-out;
}

@keyframes fadeInLog {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

.log-time {
    color: #8B949E;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.log-tag {
    font-weight: 900;
    font-size: 12px;
    flex-shrink: 0;
    padding: 1px 6px;
    border: 1px solid currentColor;
}

.log-tag.sys { color: var(--pop-cyan); }
.log-tag.auth { color: #60A5FA; }
.log-tag.net { color: var(--pop-purple); }
.log-tag.rate { color: #FBBF24; }
.log-tag.dispatch { color: #A78BFA; }
.log-tag.done { color: #4ADE80; }
.log-tag.err { color: #F87171; }
.log-tag.stok { color: var(--pop-yellow); }
.log-tag.check { color: var(--pop-cyan); }
.log-tag.replace { color: var(--pop-lime); }
.log-tag.bypass { color: var(--pop-purple); }
.log-tag.captcha { color: var(--pop-orange); }
.log-tag.inject { color: #38BDF8; }
.log-tag.process { color: #A78BFA; }
.log-tag.verify { color: #34D399; }
.log-tag.delay { color: #FBBF24; }
.log-tag.cluster { color: #F472B6; }
.log-tag.worker { color: #38BDF8; }
.log-tag.delivery { color: #34D399; }
.log-tag.audit { color: #FBBF24; }
.log-tag.heartbeat { color: #C084FC; }
.log-tag.retention { color: #60A5FA; }
.log-tag.final { color: #4ADE80; }
.log-tag.status { color: #FFE600; }
/* Unit-by-unit streaming tags */
.log-tag.unit    { color: #F472B6; font-weight: 900; }
.log-tag.tls     { color: #60A5FA; }
.log-tag.ua      { color: #9CA3AF; }
.log-tag.ack     { color: #34D399; }
.log-tag.count   { color: #A78BFA; }
.log-tag.retain  { color: var(--pop-lime); }
.log-tag.rotate  { color: var(--pop-purple); }
.log-tag.queue   { color: #F472B6; }
.log-tag.info    { color: #8B949E; }
.log-tag.token   { color: #4ADE80; }


.log-msg {
    color: #F3F4F6;
}

.log-msg.highlight {
    color: #4ADE80;
    font-weight: 700;
}

/* Terminal Footer Panel & Stats Grid */
.terminal-footer-panel {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terminal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.term-stat-pill {
    background: #FFFFFF;
    border: var(--border-thick);
    box-shadow: var(--shadow-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.term-stat-pill .pill-lbl {
    font-size: 9px;
    font-weight: 900;
    color: #4B5563;
    letter-spacing: 0.5px;
}

.term-stat-pill .pill-val {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 900;
    color: #000000;
}

.term-stat-pill .pill-val.green {
    color: #16A34A;
}

.terminal-footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-term-action {
    background: #FFFFFF;
    color: #000000;
    font-size: 11px;
    padding: 8px 14px;
}

.btn-term-action:hover {
    background: #000000;
    color: #FFFFFF;
}

.btn-term-action.yellow {
    background: var(--pop-yellow);
}

.btn-term-action.yellow:hover {
    background: var(--pop-lime);
    color: #000000;
}

/* ============================================================
   RIWAYAT AKTIVITAS & ORDER CARDS (NEO-BRUTALISM UI)
   ============================================================ */

.order-history {
    background: var(--bg-surface);
    border: var(--border-heavy);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    margin-top: 28px;
    display: none;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-thick);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.history-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.history-stats .stat-item {
    background: #FFFFFF;
    border: var(--border-thick);
    box-shadow: var(--shadow-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-stats .stat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.history-stats .stat-value {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 900;
    color: #000000;
}

/* LIVE CLUSTER TASK MONITOR WIDGET */
.history-live-monitor {
    background: var(--pop-yellow);
    border: var(--border-heavy);
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    animation: fadeInLog 0.3s ease-out;
}

.live-monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-monitor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #22C55E;
    border: 2px solid #000;
    border-radius: 50%;
    display: inline-block;
}

.live-dot.pulse {
    animation: neoPulse 1s infinite alternate;
}

.live-badge {
    background: #000000;
    color: var(--pop-yellow);
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    letter-spacing: 0.5px;
}

.live-task-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 8px;
}

.live-target-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    background: #FFFFFF;
    border: 2px solid #000;
    padding: 2px 6px;
    box-shadow: 2px 2px 0px #000;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
}

.live-percent {
    font-family: var(--font-mono);
    background: #FFFFFF;
    border: 2px solid #000;
    padding: 1px 6px;
    box-shadow: 1px 1px 0px #000;
}

/* ORDER ITEM CARDS */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    background: #FFFFFF;
    border: var(--border-heavy);
    box-shadow: var(--shadow-md);
    padding: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.order-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-lg);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-thick);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.order-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-badge-action {
    background: #000000;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
    padding: 4px 12px;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 0px var(--pop-yellow);
}

.order-token-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    background: #F3F4F6;
    border: 2px solid #000;
    padding: 2px 8px;
    box-shadow: 2px 2px 0px #000;
}

.order-status {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.order-status.completed {
    background: var(--pop-lime);
    color: #000000;
}

.order-status.processing {
    background: var(--pop-yellow);
    color: #000000;
}

.order-status.pending {
    background: var(--pop-sky);
    color: #000000;
}

.order-status.partial {
    background: var(--pop-orange);
    color: #000000;
}

/* Card Body Grid */
.order-meta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.order-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.meta-value {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    word-break: break-all;
}

.meta-value.target-val {
    color: var(--pop-blue);
    font-weight: 800;
}

.meta-value.qty-val {
    font-size: 14px;
    font-weight: 900;
    color: #000000;
}

/* In-Card Progress Bar */
.card-progress-wrapper {
    background: #F9FAFB;
    border: 2px solid #000;
    padding: 10px 12px;
    margin-bottom: 14px;
    box-shadow: 2px 2px 0px #000;
}

.card-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
}

.card-progress-label {
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-progress-pct {
    font-family: var(--font-mono);
    font-weight: 900;
    background: var(--pop-yellow);
    border: 2px solid #000;
    padding: 1px 6px;
    box-shadow: 1px 1px 0px #000;
}

.card-progress-track {
    width: 100%;
    height: 14px;
    background: #FFFFFF;
    border: 2px solid #000;
    box-shadow: 1px 1px 0px #000;
    overflow: hidden;
    position: relative;
}

.card-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    position: relative;
}

.card-progress-fill.completed {
    background: var(--pop-green);
}

.card-progress-fill.processing {
    background: var(--pop-yellow);
}

.card-progress-fill.pending {
    background: var(--pop-sky);
}

.card-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.12),
        rgba(0,0,0,0.12) 6px,
        rgba(255,255,255,0.2) 6px,
        rgba(255,255,255,0.2) 12px
    );
    animation: progressStripes 1.2s linear infinite;
}

/* Card Footer Buttons */
.order-item-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 2px dashed #E5E7EB;
    padding-top: 12px;
}

.btn-neo {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border: var(--border-thick);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
}

.btn-neo:hover {
    transform: translate(-1px, -1px);
    box-shadow: var(--shadow-md);
}

.btn-neo:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000;
}

.btn-view-log {
    background: #000000;
    color: #FFFFFF;
}

.btn-view-log:hover {
    background: var(--pop-yellow);
    color: #000000;
}

.btn-check-status {
    background: var(--pop-yellow);
    color: #000000;
}

.btn-check-status:hover {
    background: var(--pop-lime);
}

/* ============================================================
   RESPONSIVE LAYOUT ENGINE (MOBILE, TABLET & WINDOWS DESKTOP)
   ============================================================ */

/* Large Screens & Windows Desktop (> 1200px) */
@media (min-width: 1200px) {
    .sidebar {
        width: 360px;
        flex-shrink: 0;
    }
    .main-content {
        padding: 32px 36px;
    }
    .platform-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    .progress-terminal {
        width: 720px;
        right: 24px;
        bottom: 24px;
    }
}

/* Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
    .app {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: var(--border-heavy);
        box-shadow: 0 4px 0 #000;
        padding: 20px 18px;
    }
    .main-content {
        padding: 24px 18px;
        overflow-y: visible;
    }
    .platform-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .progress-terminal {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 12px;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 18px;
    }
    .content-header h2 {
        font-size: 18px;
    }
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .history-header > div {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .terminal-info-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .terminal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .terminal-footer-actions {
        flex-direction: column;
    }
    .terminal-footer-actions .btn-term-action {
        width: 100%;
        justify-content: center;
    }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
    .sidebar {
        padding: 16px 14px;
    }
    .sidebar-header h1 {
        font-size: 13px;
        padding: 10px 8px;
    }
    .main-content {
        padding: 16px 12px;
    }
    .platform-stats {
        grid-template-columns: 1fr;
    }
    .platform-stat-card .big-number {
        font-size: 26px;
    }
    .check-input {
        flex-direction: column;
        gap: 8px;
    }
    .check-btn {
        width: 100%;
    }
    .order-item-body {
        grid-template-columns: 1fr;
    }
    .terminal-info-bar {
        grid-template-columns: 1fr;
    }
    .terminal-stats-grid {
        grid-template-columns: 1fr;
    }
    .terminal-header {
        padding: 8px 10px;
    }
    .terminal-title {
        font-size: 10px;
    }
    .terminal-header-right {
        gap: 4px;
    }
    .terminal-badge {
        display: none;
    }
    
    /* Login Gatekeeper Mobile */
    .login-gatekeeper {
        padding: 12px;
    }
    .login-card {
        padding: 30px 18px 24px;
        border-width: 3px;
        box-shadow: 6px 6px 0px #FFE600;
        max-width: 100%;
    }
    .login-brand {
        font-size: 20px;
        letter-spacing: -0.5px;
    }
    .login-subtitle {
        font-size: 9px;
    }
    .login-card-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    .login-input-wrap input {
        font-size: 14px;
        padding: 11px 12px;
    }
    .btn-login-submit {
        padding: 13px;
        font-size: 13px;
    }
    .login-security-footer {
        gap: 8px;
        margin-top: 20px;
        padding-top: 12px;
    }
    .modal {
        padding: 10px;
    }
    .modal-content {
        width: 100%;
        max-height: 88vh;
    }
}


/* ============================================================
   ZERO-TRUST LOGIN GATEKEEPER — NEO BRUTALISM
   ============================================================ */

@keyframes loginCardIn {
    0%   { transform: translateY(24px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}
@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

/* ---- OVERLAY ---- */
.login-gatekeeper {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #111111;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ---- CARD ---- */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border: 4px solid #000000;
    box-shadow: 10px 10px 0px #FFE600;
    padding: 48px 40px 40px;
    animation: loginCardIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- HEADER ---- */
.login-card-header {
    margin-bottom: 36px;
    border-bottom: 3px solid #000000;
    padding-bottom: 24px;
}

.login-brand {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: #000000;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.login-subtitle {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: #888888;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

/* ---- ALERT ---- */
.login-alert {
    background: #FEE2E2;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    padding: 12px 14px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #7F1D1D;
    letter-spacing: 0.3px;
    animation: alertShake 0.3s ease-in-out;
}

/* ---- FORM ---- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field-group label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrap input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    background: #FAFAFA;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    outline: none;
    transition: box-shadow 0.12s ease, transform 0.12s ease;
    border-radius: 0;
}

.login-input-wrap input::placeholder {
    color: #BBBBBB;
    font-weight: 500;
}

.login-input-wrap input:focus {
    background: #FFFFFF;
    box-shadow: 6px 6px 0px #000000;
    transform: translate(-2px, -2px);
}

.btn-toggle-pwd {
    position: absolute;
    right: 0;
    top: 0; bottom: 0;
    width: 48px;
    background: #F3F4F6;
    border: none;
    border-left: 3px solid #000000;
    cursor: pointer;
    font-size: 13px;
    color: #555555;
    transition: background 0.1s ease, color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pwd:hover {
    background: #FFE600;
    color: #000000;
}

/* ---- SUBMIT ---- */
.login-actions {
    margin-top: 8px;
}

.btn-login-submit {
    width: 100%;
    padding: 15px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000000;
    background: #FFE600;
    border: 3px solid #000000;
    box-shadow: 5px 5px 0px #000000;
    cursor: pointer;
    transition: box-shadow 0.1s ease, transform 0.1s ease;
    display: block;
    margin-top: 0;
}

.btn-login-submit:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px #000000;
}

.btn-login-submit:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

/* ---- SECURITY FOOTER ---- */
.login-security-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 2px solid #E5E7EB;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.login-security-footer span {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: #AAAAAA;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-security-footer span::before {
    content: '— ';
}

/* ---- USER SESSION BAR (Post-login sidebar) ---- */
.auth-user-bar {
    background: #FFFFFF;
    border: var(--border-thick);
    box-shadow: var(--shadow-sm);
    padding: 8px 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    color: #000000;
}

.user-badge i { color: #16A34A; }

.btn-logout {
    background: #FECDD3;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 900;
    color: #991B1B;
    cursor: pointer;
    transition: all 0.1s ease;
}

.btn-logout:hover {
    background: #F87171;
    color: #FFFFFF;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000000;
}

/* ============================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET & WINDOWS DESKTOP)
   ============================================================ */

/* --- TABLET & MEDIUM SCREENS (<= 992px) --- */
@media screen and (max-width: 992px) {
    .app {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: var(--border-heavy);
        box-shadow: 0 4px 0 #000000;
        padding: 18px 20px;
    }

    .sidebar-header {
        margin-bottom: 16px;
    }

    .nav-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .main-content {
        padding: 24px 20px;
        overflow-y: visible;
    }

    .platform-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .terminal-info-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* --- MOBILE DEVICES (<= 768px) --- */
@media screen and (max-width: 768px) {
    body {
        background-size: 16px 16px;
    }

    .sidebar {
        padding: 16px 14px;
    }

    .sidebar-header h1 {
        font-size: 14px;
        padding: 10px 8px;
    }

    .stats-section {
        margin-bottom: 18px;
    }

    .stats-section h3,
    .nav-section h3 {
        font-size: 12px;
        padding: 5px 10px;
    }

    .stat-item {
        padding: 8px 0;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 14px;
        padding: 2px 6px;
    }

    .nav-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav-btn {
        padding: 10px 12px;
        font-size: 11px;
        gap: 8px;
    }

    .main-content {
        padding: 16px 12px;
    }

    .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .content-header h2 {
        font-size: 16px;
        text-align: center;
        width: 100%;
    }

    .refresh-btn {
        width: 100%;
        justify-content: center;
        padding: 11px;
    }

    .platform-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .platform-stat-card {
        padding: 12px 14px;
    }

    .platform-stat-card .big-number {
        font-size: 22px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 14px;
    }

    .check-input {
        flex-direction: column;
        gap: 10px;
    }

    .check-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px;
    }

    /* Terminal popup on mobile */
    .terminal-modal-neo {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 88vh;
        margin: 10px auto;
        border-width: 3px;
        box-shadow: 6px 6px 0px #000000;
    }

    .terminal-header {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .terminal-header-title {
        font-size: 12px;
    }

    .terminal-body {
        padding: 14px;
    }

    .terminal-info-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .terminal-logs {
        height: 240px;
        font-size: 11px;
        padding: 12px;
    }

    /* Login gatekeeper on mobile */
    .login-gatekeeper {
        padding: 14px;
    }

    .login-card {
        padding: 26px 18px 22px;
        max-width: 100%;
        box-shadow: 6px 6px 0px #FFE600;
        border-width: 3px;
    }

    .login-brand-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .login-header h2 {
        font-size: 18px;
    }

    .login-header p {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .login-input-wrap input {
        font-size: 14px;
        padding: 12px 14px;
    }

    .btn-login-submit {
        padding: 13px;
        font-size: 13px;
    }

    .login-security-footer {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
    }
}

/* --- SMALL MOBILE (<= 480px) --- */
@media screen and (max-width: 480px) {
    .nav-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .platform-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .terminal-logs {
        height: 200px;
        font-size: 10.5px;
    }

    .progress-phase,
    .progress-percent {
        font-size: 12px;
    }
}

/* --- LARGE SCREENS & WINDOWS DESKTOP (>= 1200px) --- */
@media screen and (min-width: 1200px) {
    .app {
        display: flex;
        height: 100vh;
        overflow: hidden;
    }

    .sidebar {
        width: 360px;
        min-width: 360px;
        height: 100vh;
    }

    .main-content {
        flex: 1;
        height: 100vh;
        overflow-y: auto;
        padding: 32px 36px;
    }

    .platform-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .terminal-modal-neo {
        width: 720px;
        max-width: 720px;
    }
}
