:root {
    --bg-base: #0B0F19;
    --bg-surface: #111827;
    --bg-card: #182235;
    --bg-card-hover: #1E293B;
    --border-color: #2D3D54;
    --border-bright: #3B82F6;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent-blue: #0284C7;
    --accent-electric: #2563EB;
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;
    --accent-amber: #F59E0B;
    --accent-red: #EF4444;
    --accent-purple: #8B5CF6;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Vazirmatn', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 1. Header Bar */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 24px;
    height: 58px;
    flex-shrink: 0;
}

.brand-zone {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 22px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-electric));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.server-telemetry {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.status-text {
    color: var(--accent-green);
}

.server-ip {
    color: #6EE7B7;
    font-family: var(--font-mono);
}

.server-specs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-gauge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #1E293B;
    border-radius: 6px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.spec-label {
    color: #94A3B8;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.spec-bar-track {
    width: 36px;
    height: 6px;
    background: #0F172A;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #334155;
}

.spec-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease, background 0.4s ease;
}

.spec-bar-fill.cpu { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.spec-bar-fill.ram { background: #38BDF8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.4); }
.spec-bar-fill.nvme { background: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }

.spec-val {
    color: #F1F5F9;
    font-weight: 700;
    font-size: 11px;
    min-width: 26px;
    text-align: right;
}

.spec-test-btn {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60A5FA;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.spec-test-btn:hover {
    background: #2563EB;
    color: #FFFFFF;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.header-actions .btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.header-actions .btn-secondary:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* 2. Telemetry Banner */
.telemetry-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #0E1626;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 24px;
    font-size: 12px;
    flex-shrink: 0;
    overflow-x: auto;
}

.banner-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    font-weight: 700;
    white-space: nowrap;
}

.badge-cluster {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-gray {
    background: #1E293B;
    color: #94A3B8;
    border-color: #334155;
}

.badge-brand {
    background: rgba(37, 99, 235, 0.2);
    color: #93C5FD;
    border-color: #2563EB;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    border-color: #10B981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
    border-color: #F59E0B;
}

/* 3. Main 2-Column Layout */
.main-layout {
    display: grid;
    grid-template-columns: 58% 42%;
    flex: 1;
    overflow: hidden;
    padding: 14px 20px;
    gap: 16px;
}

/* Left Workspace */
.left-workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Upload Cards Grid */
.upload-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.upload-card:hover {
    border-color: #38BDF8;
    background-color: var(--bg-card-hover);
}

.upload-card.dragover {
    border-color: var(--accent-cyan);
    background-color: rgba(6, 182, 212, 0.1);
}

.upload-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.badge-spi1 {
    background: #15803D;
    color: #DCFCE7;
}

.badge-spi2 {
    background: #374151;
    color: #D1D5DB;
}

.badge-donor {
    background: #0284C7;
    color: #E0F2FE;
}

.upload-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 20px;
}

.upload-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.upload-filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-small {
    background-color: #2563EB;
    border: none;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-small:hover {
    background-color: #1D4ED8;
}

/* Tabs Header */
.tabs-header {
    display: flex;
    gap: 6px;
    background-color: var(--bg-surface);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background-color: var(--accent-blue);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.control-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.section-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-label input {
    margin-top: 3px;
    accent-color: var(--accent-blue);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-desc {
    display: flex;
    flex-direction: column;
}

.checkbox-desc strong {
    font-size: 13px;
    color: var(--text-primary);
}

.checkbox-desc small {
    font-size: 11px;
    color: var(--text-muted);
}

/* Action Buttons */
.action-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.btn-primary-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border: 1px solid #60A5FA;
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: all 0.2s;
}

.btn-primary-action:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.btn-secondary-action, .btn-me-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1E293B;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-action:hover, .btn-me-action:hover {
    background: #334155;
    border-color: #64748B;
}

/* DMI Editor Grid */
.dmi-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-save-dmi {
    background: #059669;
    border: 1px solid #34D399;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save-dmi:hover {
    background: #047857;
}

.dmi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dmi-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dmi-field.full-width {
    grid-column: span 2;
}

.dmi-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dmi-field input, .dmi-field select {
    background: #0F172A;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s;
}

.dmi-field input:focus, .dmi-field select:focus {
    border-color: var(--accent-blue);
}

.dmi-field input.readonly-input {
    background: #182030;
    color: #94A3B8;
}

/* Result & Vault */
.result-box {
    background: #0F172A;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.result-placeholder {
    font-size: 12px;
    color: var(--text-muted);
}

.result-ready {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.result-file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.result-file-details .file-icon {
    font-size: 32px;
}

.result-file-details h4 {
    font-size: 14px;
    color: #38BDF8;
    font-family: var(--font-mono);
}

.result-file-details span {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10B981;
    border: 1px solid #34D399;
    color: #064E3B;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-download:hover {
    background: #059669;
    color: #FFFFFF;
}

/* Feedback & Archive */
.feedback-card {
    background: #131E31;
    border: 1px solid #1E3A8A;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.feedback-card h4 {
    font-size: 13px;
    color: #93C5FD;
}

.feedback-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.feedback-status-options {
    display: flex;
    gap: 10px;
}

.radio-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 12px;
    background: #0F172A;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.radio-chip.pass {
    border-color: #059669;
    color: #6EE7B7;
}

.radio-chip.fail {
    border-color: #DC2626;
    color: #FCA5A5;
}

.feedback-form textarea {
    width: 100%;
    background: #0B0F19;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    resize: none;
    outline: none;
}

.btn-feedback {
    background: #2563EB;
    border: none;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
}

/* Right Console (Terminal) */
.right-console {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.console-card {
    display: flex;
    flex-direction: column;
    background: #070B14;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0E1626;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.console-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #38BDF8;
    letter-spacing: 0.5px;
}

.terminal-dot {
    width: 7px;
    height: 7px;
    background-color: #38BDF8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38BDF8;
}

.console-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.autoscroll-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-ctrl {
    background: #1E293B;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ctrl:hover {
    background: #334155;
    color: var(--text-primary);
}

.console-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.console-body::-webkit-scrollbar {
    width: 6px;
}

.console-body::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 3px;
}

.log-line {
    display: flex;
    gap: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.log-time {
    color: #475569;
    flex-shrink: 0;
}

.log-tag {
    font-weight: 700;
    flex-shrink: 0;
}

.tag-sys { color: #38BDF8; }
.tag-upload { color: #818CF8; }
.tag-analyze { color: #F59E0B; }
.tag-stitch { color: #60A5FA; }
.tag-complete { color: #34D399; }
.tag-error { color: #F87171; }

.log-msg {
    color: #E2E8F0;
}

.log-line.log-success .log-msg { color: #6EE7B7; }
.log-line.log-error .log-msg { color: #FCA5A5; }
.log-line.log-warn .log-msg { color: #FCD34D; }

.console-footer {
    padding: 4px 14px;
    background: #090E1A;
    border-top: 1px solid #162032;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Upload Actions Group & Online Fetch Button */
.upload-btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-online-fetch {
    background: linear-gradient(135deg, #0284C7, #0369A1);
    border: 1px solid #38BDF8;
    color: #FFFFFF;
    white-space: nowrap;
}

.btn-online-fetch:hover {
    background: linear-gradient(135deg, #0369A1, #075985);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Download Group */
.download-cluster {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-download-zip {
    background: #0284C7 !important;
    border-color: #38BDF8 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

.btn-download-zip:hover {
    background: #0369A1 !important;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-card {
    background: #111827;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 90%;
    max-width: 820px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(2, 132, 199, 0.2);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1E293B;
    padding: 12px 20px;
    border-bottom: 1px solid #334155;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #F8FAFC;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-modal-close:hover {
    background: #334155;
    color: #FFFFFF;
}

.modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.fetcher-search-row {
    display: flex;
    gap: 10px;
}

.fetcher-select {
    background: #0F172A;
    border: 1px solid #334155;
    color: #F8FAFC;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}

.fetcher-input {
    flex: 1;
    background: #0F172A;
    border: 1px solid #334155;
    color: #F8FAFC;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
}

.fetcher-input:focus, .fetcher-select:focus {
    border-color: #0284C7;
}

.btn-search-action {
    background: #2563EB;
    border: 1px solid #60A5FA;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-search-action:hover {
    background: #1D4ED8;
}

.fetcher-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.3);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    color: #38BDF8;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-top-color: #38BDF8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fetcher-results-container {
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 8px;
    max-height: 380px;
    overflow-y: auto;
}

.fetcher-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.fetcher-table th {
    background: #1E293B;
    color: #94A3B8;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 2;
}

.fetcher-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #1E293B;
    color: #E2E8F0;
}

.fetcher-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.empty-hint {
    text-align: center;
    color: #64748B;
    padding: 24px !important;
}

.btn-fetch-dl {
    background: #059669;
    border: 1px solid #34D399;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-fetch-dl:hover {
    background: #047857;
}

/* 7. Creator & Branding Header Elements */
.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.btn-creator {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    border: 1px solid #F59E0B;
    color: #FDE68A;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.btn-creator:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.5));
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.btn-auth-header {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid #3B82F6;
    color: #93C5FD;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auth-header:hover {
    background: rgba(37, 99, 235, 0.3);
    color: #FFFFFF;
}

/* Creator Modal */
.modal-creator-card {
    max-width: 620px;
    border: 1px solid #F59E0B !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2) !important;
}

.creator-badge-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.creator-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid #F59E0B;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.creator-hero-info h3 {
    font-size: 18px;
    color: #FDE68A;
    font-weight: 800;
    margin-bottom: 4px;
}

.creator-title {
    font-size: 13px;
    color: #CBD5E1;
    margin-bottom: 4px;
}

.creator-company {
    font-size: 14px;
    color: #38BDF8;
    font-weight: 700;
}

.creator-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #182235;
    border: 1px solid #2D3D54;
    padding: 12px 16px;
    border-radius: 8px;
}

.contact-icon {
    font-size: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #94A3B8;
}

.contact-link {
    font-size: 16px;
    font-weight: 700;
    color: #F8FAFC;
    text-decoration: none;
    font-family: var(--font-mono);
}

.contact-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
    width: fit-content;
}

.btn-wa {
    background: #15803D;
    color: #FFFFFF;
    border: 1px solid #22C55E;
}

.btn-wa:hover {
    background: #16A34A;
}

.btn-tg {
    background: #0284C7;
    color: #FFFFFF;
    border: 1px solid #38BDF8;
}

.btn-tg:hover {
    background: #0369A1;
}

.creator-copyright-notice {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.7;
    color: #FCA5A5;
}

/* Colleague Auth & Quota Modal */
.modal-auth-card {
    max-width: 580px;
}

.modal-auth-card .modal-body {
    padding: 24px;
}

.modal-auth-card .fetcher-input {
    font-size: 14.5px;
    padding: 10px 14px;
}

.modal-auth-card #btn-request-otp {
    font-size: 15px;
    padding: 12px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.user-avatar {
    font-size: 32px;
}

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

.stat-box {
    background: #182235;
    border: 1px solid #2D3D54;
    padding: 12px 6px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #38BDF8;
    font-family: var(--font-mono);
}

.stat-txt {
    font-size: 10px;
    color: #94A3B8;
}

.auth-hint {
    font-size: 12px;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 10px;
    border-radius: 6px;
    line-height: 1.6;
}

.form-group-rtl {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    text-align: right;
}

.form-group-rtl label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 600;
}

/* 8. Floating AI Assistant Chat Widget */
.btn-ai-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284C7, #2563EB);
    border: 1px solid #38BDF8;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ai-floating:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.ai-float-icon {
    font-size: 20px;
}

.ai-chat-drawer {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 440px;
    max-width: calc(100vw - 48px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: #111827;
    border: 1px solid #3B82F6;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #182235;
    border-bottom: 1px solid #2D3D54;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-avatar {
    font-size: 24px;
}

.ai-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
}

.ai-status {
    display: block;
    font-size: 10px;
    color: #10B981;
}

.ai-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    background: #0B0F19;
    border-bottom: 1px solid #1E293B;
    max-height: 90px;
    overflow-y: auto;
}

.ai-chip {
    background: #182235;
    border: 1px solid #334155;
    color: #CBD5E1;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ai-chip:hover {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #60A5FA;
}

.ai-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0B0F19;
}

.ai-msg {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.85;
    word-break: break-word;
    unicode-bidi: plaintext;
}

.ai-msg[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, Vazirmatn, sans-serif;
}

.ai-msg[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.ai-highlight {
    color: #38BDF8;
    font-weight: 700;
    display: inline-block;
    unicode-bidi: isolate;
    padding: 0 2px;
}

.ai-code {
    background: #060911;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #10B981;
    direction: ltr;
    display: inline-block;
    unicode-bidi: isolate;
}

.ai-msg-bot {
    align-self: flex-start;
    background: #151F32;
    border: 1px solid #2B3B52;
    color: #E2E8F0;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ai-msg-user {
    align-self: flex-end;
    background: #2563EB;
    color: #FFFFFF;
    border-bottom-left-radius: 2px;
}

.ai-chat-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #182235;
    border-top: 1px solid #2D3D54;
}

.ai-input {
    flex: 1;
    background: #0B0F19;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 12px;
    color: #F8FAFC;
    font-size: 13px;
    outline: none;
}

.ai-input:focus {
    border-color: #38BDF8;
}

.btn-ai-send {
    background: #0284C7;
    border: 1px solid #38BDF8;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-ai-send:hover {
    background: #0369A1;
}

/* 9. Domain & Brand Studio Styles */
.domain-checker-box {
    background: #182235;
    border: 1px solid #2D3D54;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.domain-result-alert {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.alert-info {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10B981;
    color: #34D399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    color: #F87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #F59E0B;
    color: #FBBF24;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.domain-card {
    background: #182235;
    border: 1px solid #2D3D54;
    padding: 14px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}

.domain-card:hover {
    border-color: #38BDF8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.domain-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    direction: ltr;
    text-align: left;
}

.domain-tag {
    font-size: 11px;
    color: #94A3B8;
}

.btn-check-pill {
    background: #0284C7;
    border: 1px solid #38BDF8;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-check-pill:hover {
    background: #0369A1;
}

/* Upload formats list */
.upload-sub strong {
    color: #38BDF8;
}

/* 10. Modern Auth Tabs & Sleek Toast System */
.auth-tabs-header {
    display: flex;
    gap: 8px;
    background: #0B0F19;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #2D3D54;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94A3B8;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: #0284C7;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.auth-toggle-hint {
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
    margin-top: 15px;
}

.auth-toggle-hint a {
    color: #38BDF8;
    text-decoration: underline;
    font-weight: 600;
}

.auth-email-badge {
    background: #182235;
    border: 1px solid #38BDF8;
    color: #38BDF8;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

/* Sleek Toast Notifications (Replacement for browser alert) */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    min-width: 300px;
    max-width: 420px;
    background: #182235;
    border: 1px solid #2D3D54;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s, transform 0.3s;
}

.toast-item.toast-success {
    border-color: #10B981;
    background: linear-gradient(135deg, #182235 0%, rgba(16, 185, 129, 0.12) 100%);
}

.toast-item.toast-error {
    border-color: #EF4444;
    background: linear-gradient(135deg, #182235 0%, rgba(239, 68, 68, 0.12) 100%);
}

.toast-item.toast-info {
    border-color: #38BDF8;
    background: linear-gradient(135deg, #182235 0%, rgba(56, 189, 248, 0.12) 100%);
}

.toast-icon {
    font-size: 20px;
    line-height: 1;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 4px;
}

.toast-desc {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   AI Assistant Guide & Floating Drawer
   ========================================================================== */

.btn-ai-header {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(37, 99, 235, 0.25) 100%);
    border: 1px solid #0284C7;
    color: #38BDF8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ai-header:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.4) 0%, rgba(37, 99, 235, 0.4) 100%);
    border-color: #38BDF8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.ai-widget-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.btn-floating-ai {
    background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-floating-ai:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6);
}

.ai-btn-pulse {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: aiPulse 3s infinite linear;
    pointer-events: none;
}

@keyframes aiPulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-btn-icon {
    font-size: 18px;
    line-height: 1;
}

.ai-btn-text {
    letter-spacing: -0.2px;
}

.ai-chat-window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 440px;
    max-width: 90vw;
    background: #111827;
    border: 1px solid #2D3D54;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(56, 189, 248, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatOpen 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-chat-header {
    background: #182235;
    border-bottom: 1px solid #2D3D54;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    display: inline-block;
}

.ai-title {
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
}

.ai-sub {
    font-size: 11px;
    color: #94A3B8;
}

.ai-close-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
}

.ai-close-btn:hover {
    color: #F8FAFC;
}

.ai-chat-messages {
    padding: 16px;
    height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    direction: rtl;
    text-align: right;
    background: #0B0F19;
}

.ai-bubble {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 90%;
    word-break: break-word;
}

.ai-bubble-bot {
    align-self: flex-start;
    background: #182235;
    border: 1px solid #2D3D54;
    color: #F1F5F9;
    border-top-right-radius: 2px;
}

.ai-bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0284C7 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 2px;
}

.ai-bubble-sender {
    font-size: 11px;
    font-weight: 700;
    color: #38BDF8;
    margin-bottom: 4px;
}

.ai-bubble-content {
    font-size: 13px;
    white-space: pre-wrap;
}

.ai-bubble-loading {
    display: inline-flex;
    gap: 4px;
    padding: 8px 12px;
    align-items: center;
}

.ai-bubble-loading span {
    width: 6px;
    height: 6px;
    background: #38BDF8;
    border-radius: 50%;
    animation: aiDot 1.4s infinite ease-in-out both;
}

.ai-bubble-loading span:nth-child(1) { animation-delay: -0.32s; }
.ai-bubble-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes aiDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.ai-quick-tags {
    padding: 8px 14px;
    background: #111827;
    border-top: 1px solid #1E293B;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    direction: rtl;
}

.ai-tag-chip {
    background: #182235;
    border: 1px solid #2D3D54;
    color: #94A3B8;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ai-tag-chip:hover {
    background: #1E293B;
    border-color: #0284C7;
    color: #38BDF8;
}

.ai-input-area {
    padding: 12px 14px;
    background: #182235;
    border-top: 1px solid #2D3D54;
    display: flex;
    gap: 8px;
    direction: rtl;
}

.ai-input-area input {
    flex: 1;
    background: #0B0F19;
    border: 1px solid #2D3D54;
    border-radius: 8px;
    padding: 10px 14px;
    color: #F8FAFC;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    direction: rtl;
    text-align: right;
    transition: border-color 0.2s;
}

.ai-input-area input:focus {
    border-color: #0284C7;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.3);
}

.btn-send-ai {
    background: #0284C7;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.btn-send-ai:hover {
    background: #0369A1;
}

.btn-send-ai:disabled {
    background: #334155;
    cursor: not-allowed;
}




/* ==========================================================================
   BioStudio Pro Desktop Aesthetic & Modular Layout (Screenshot Exact Replica)
   ========================================================================== */

/* 1. Header Buttons */
.hdr-btn {
    height: 30px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.hdr-btn-dark {
    background: #21262D;
    border: 1px solid #30363D;
    color: #C9D1D9;
}
.hdr-btn-dark:hover { background: #30363D; color: #FFF; }

.hdr-btn-green {
    background: #0D2818;
    border: 1px solid #238636;
    color: #3FB950;
}
.hdr-btn-green:hover { background: #1B4728; color: #4ADE80; }

.hdr-btn-red {
    background: #DA3633;
    border: 1px solid #F85149;
    color: #FFFFFF;
}
.hdr-btn-red:hover { background: #B62324; }

.hdr-btn-cyan {
    background: #0284C7;
    border: 1px solid #38BDF8;
    color: #FFFFFF;
}
.hdr-btn-cyan:hover { background: #0369A1; }

.hdr-btn-purple {
    background: #7C3AED;
    border: 1px solid #A78BFA;
    color: #FFFFFF;
}
.hdr-btn-purple:hover { background: #6D28D9; }

.hdr-btn-auth {
    background: #1F2937;
    border: 1px solid #374151;
    color: #F3F4F6;
}
.hdr-btn-auth:hover { background: #374151; }

/* 2. Top File Slots Section */
.slots-section {
    background: #161B22;
    border-bottom: 1px solid #30363D;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slot-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.slot-badge {
    width: 78px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.badge-spi1 { background: #16A34A; }
.badge-spi2 { background: #475569; }
.badge-factory { background: #0284C7; }

.slot-input-wrap {
    flex: 1;
    height: 30px;
    background: #0D1117;
    border: 1px solid #30363D;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8B949E;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: border-color 0.2s;
}

.slot-input-wrap:hover {
    border-color: #58A6FF;
}

.slot-filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-btn {
    height: 30px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.slot-btn-select {
    background: #21262D;
    border: 1px solid #30363D;
    color: #C9D1D9;
    padding: 0 14px;
}
.slot-btn-select:hover { background: #30363D; color: #FFF; }

.slot-btn-online {
    background: #0284C7;
    border: 1px solid #38BDF8;
    color: #FFFFFF;
    padding: 0 12px;
    gap: 6px;
}
.slot-btn-online:hover { background: #0369A1; }

.slot-btn-clear {
    width: 30px;
    background: #EAB308;
    border: 1px solid #FACC15;
    color: #000000;
    font-size: 14px;
    font-weight: 900;
    padding: 0;
}
.slot-btn-clear:hover { background: #CA8A04; }

/* 3. Firmware Status Telemetry Bar */
.telemetry-bar {
    height: 28px;
    background: #0D1117;
    border-bottom: 1px solid #21262D;
    padding: 0 14px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.telemetry-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-shield { font-size: 12px; }
.telemetry-label { color: #58A6FF; font-weight: 700; margin-right: 4px; }

.stat-pill {
    background: #161B22;
    border: 1px solid #30363D;
    color: #8B949E;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
}
.stat-pill.active {
    color: #38BDF8;
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.15);
}

/* 4. Modular 4-Column Workspace Grid */
.modular-workspace {
    flex: 1;
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    overflow: hidden;
    min-height: 0;
}

/* Col 1: Workspaces Navigation */
.col-workspaces {
    width: 170px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 6px;
    padding: 10px;
}

.workspaces-header {
    font-size: 12px;
    font-weight: 700;
    color: #58A6FF;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #21262D;
}

.workspaces-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ws-btn {
    width: 100%;
    height: 38px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #8B949E;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.ws-btn:hover {
    background: #21262D;
    color: #F0F6FC;
}

.ws-btn.active {
    background: rgba(37, 99, 235, 0.18);
    border-color: #3B82F6;
    color: #60A5FA;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.workspaces-footer-tag {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #21262D;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    color: #484F58;
    font-family: 'JetBrains Mono', monospace;
}

/* Col 2: Brand Repair Panel */
.col-brand-repair {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 6px;
    overflow: hidden;
}

.brand-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 6px;
    background: #0D1117;
    border-bottom: 1px solid #30363D;
}

.brand-tab-btn {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 4px;
    color: #8B949E;
    cursor: pointer;
    transition: all 0.15s ease;
}

.brand-tab-btn:hover {
    color: #FFF;
    border-color: #58A6FF;
}

.brand-tab-btn.active {
    background: #0284C7;
    border-color: #38BDF8;
    color: #FFFFFF;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

.brand-panes-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.brand-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-group {
    background: #0D1117;
    border: 1px solid #21262D;
    border-radius: 6px;
    padding: 10px;
}

.custom-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #C9D1D9;
    cursor: pointer;
    user-select: none;
}

.custom-check-row.bold-row {
    font-weight: 700;
    color: #F0F6FC;
}

.radio-subrow {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-left: 20px;
}

.custom-radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #8B949E;
    cursor: pointer;
}

.checkboxes-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-action-row {
    display: flex;
    gap: 8px;
}

.btn-brand-sub {
    flex: 1;
    height: 32px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #FFF;
    cursor: pointer;
    transition: filter 0.15s;
}
.btn-brand-sub:hover { filter: brightness(1.15); }

.btn-brand-sub.btn-blue { background: #0284C7; }
.btn-brand-sub.btn-orange { background: #D97706; }

.btn-go-ahead {
    width: 100%;
    height: 42px;
    background: #16A34A;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-go-ahead:hover {
    background: #15803D;
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.6);
}
.btn-go-ahead:active { transform: scale(0.98); }

/* Col 3: Live Console & Custom Workspaces */
.col-console {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 6px;
    overflow: hidden;
}

.console-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.console-header {
    height: 38px;
    background: #0D1117;
    border-bottom: 1px solid #30363D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    flex-shrink: 0;
}

.console-title {
    font-size: 12px;
    font-weight: 700;
    color: #58A6FF;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    color: #3FB950;
    font-size: 10px;
    font-weight: 800;
    margin-left: 6px;
}

.console-actions {
    display: flex;
    gap: 6px;
}

.btn-console-act {
    background: #21262D;
    border: 1px solid #30363D;
    color: #C9D1D9;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-console-act:hover { background: #30363D; color: #FFF; }

.console-screen {
    flex: 1;
    background: #080C10;
    padding: 10px 14px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.6;
}

/* Custom Workspace Views (Inside Col 3 when non-repair workspace active) */
.custom-workspace-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    overflow-y: auto;
}

.view-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #38BDF8;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #21262D;
}

.view-desc {
    font-size: 12px;
    color: #94A3B8;
    margin-bottom: 14px;
    line-height: 1.5;
}

.me-telemetry-card {
    background: #0D1117;
    border: 1px solid #30363D;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.me-stat-item {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}
.me-stat-item .label { color: #8B949E; }
.me-stat-item .val { color: #38BDF8; font-weight: 700; }

.btn-me-action {
    background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
    color: #FFF;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Col 4: Tools Sidebar (Exact sequence) */
.col-tools {
    width: 145px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 6px;
    padding: 8px;
}

.tools-header {
    font-size: 12px;
    font-weight: 700;
    color: #E6EDF3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #21262D;
}

.tools-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    overflow-y: auto;
}

.tool-btn {
    height: 27px;
    width: 100%;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, filter 0.15s ease;
}
.tool-btn:hover { filter: brightness(1.15); }
.tool-btn:active { transform: scale(0.97); }

.btn-t-dmi { background: #2563EB; }
.btn-t-harvest { background: #0891B2; }
.btn-t-masterkey { background: #8B5CF6; }
.btn-t-merge { background: #16A34A; }
.btn-t-extract { background: #EA580C; }
.btn-t-captobin { background: #F59E0B; }
.btn-t-microcode { background: #6366F1; }
.btn-t-amd { background: #B45309; }
.btn-t-pwd { background: #9333EA; }
.btn-t-unhide { background: #059669; }
.btn-t-clear { background: #DC2626; }

.autopilot-box {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #21262D;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.autopilot-title {
    font-size: 10px;
    font-weight: 700;
    color: #8B949E;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #374151;
    transition: .2s;
    border-radius: 18px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}
input:checked + .toggle-slider { background-color: #10B981; }
input:checked + .toggle-slider:before { transform: translateX(14px); }

/* 5. Application Footer */
.app-footer {
    height: 26px;
    background: #0D1117;
    border-top: 1px solid #21262D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip-cpu {
    background: #1E3A8A;
    color: #93C5FD;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

.chip-regions {
    display: flex;
    gap: 4px;
}

.reg-chip {
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
    background: #161B22;
    color: #484F58;
}
.reg-chip.active {
    background: #1F2937;
    color: #94A3B8;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-ready { color: #8B949E; }
.footer-brand { color: #38BDF8; font-weight: 700; }

/* 6. Modals for Master Key & Merge/Split */
.modal-masterkey-card, .modal-merge-card {
    max-width: 580px;
}

.mkey-tabs-bar, .merge-tabs-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    border-bottom: 1px solid #21262D;
    padding-bottom: 8px;
}

.mkey-tab-btn, .merge-tab-btn {
    background: #161B22;
    border: 1px solid #30363D;
    color: #8B949E;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mkey-tab-btn.active, .merge-tab-btn.active {
    background: #2563EB;
    border-color: #3B82F6;
    color: #FFF;
}


/* ================= USER DASHBOARD & ADMIN PANEL STYLES ================= */
.hdr-btn-gold {
    background: linear-gradient(135deg, #B45309, #D97706);
    border: 1px solid #F59E0B;
    color: #FFF !important;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.hdr-btn-gold:hover {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.modal-dashboard-card {
    max-width: 820px;
    width: 95%;
}

.modal-admin-card {
    max-width: 1100px;
    width: 98%;
}

.profile-hero-card {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0284C7, #2563EB);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.4);
}

.profile-hero-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #F8FAFC;
    font-weight: 700;
}

.profile-hero-info p {
    margin: 0;
    font-size: 13px;
    color: #94A3B8;
}

.profile-badges-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.badge-sub {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-sub-active {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22C55E;
    color: #4ADE80;
}

.badge-sub-expired {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    color: #F87171;
}

.badge-role-admin {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #F59E0B;
    color: #FBBF24;
}

.badge-role-vip {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #A855F7;
    color: #C084FC;
}

.badge-role-tech {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38BDF8;
    color: #38BDF8;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-sub-box {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 10px;
    padding: 16px;
}

.dashboard-sub-box h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #38BDF8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-kv-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #161F30;
    font-size: 13px;
}
.info-kv-row:last-child { border-bottom: none; }
.info-kv-key { color: #94A3B8; }
.info-kv-val { color: #F1F5F9; font-weight: 600; }

.user-files-section {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 15px;
}

.user-files-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #38BDF8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.files-table th {
    background: #111827;
    color: #94A3B8;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #1E293B;
}

.files-table td {
    padding: 10px;
    border-bottom: 1px solid #161F30;
    color: #E2E8F0;
}

.files-table tr:hover { background: rgba(30, 41, 59, 0.4); }

.btn-file-dl {
    background: #0284C7;
    border: none;
    color: #FFF;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-file-dl:hover { background: #0369A1; }

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.admin-stat-card {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon-blue { background: rgba(2, 132, 199, 0.2); color: #38BDF8; }
.stat-icon-green { background: rgba(34, 197, 94, 0.2); color: #4ADE80; }
.stat-icon-purple { background: rgba(168, 85, 247, 0.2); color: #C084FC; }
.stat-icon-gold { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }

.admin-stat-info .num {
    font-size: 22px;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1.1;
}

.admin-stat-info .label {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 4px;
}

/* Admin Toolbar */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

.admin-search-box {
    display: flex;
    align-items: center;
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 6px;
    padding: 0 10px;
    flex: 1;
    max-width: 400px;
}

.admin-search-box input {
    background: transparent;
    border: none;
    color: #FFF;
    padding: 8px;
    font-size: 13px;
    width: 100%;
    outline: none;
}

.admin-actions-group {
    display: flex;
    gap: 8px;
}

.admin-table-container {
    max-height: 460px;
    overflow-y: auto;
    border: 1px solid #1E293B;
    border-radius: 8px;
    background: #0B0F19;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-users-table th {
    position: sticky;
    top: 0;
    background: #111827;
    color: #94A3B8;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #1E293B;
    z-index: 10;
}

.admin-users-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #161F30;
    color: #E2E8F0;
    vertical-align: middle;
}

.admin-users-table tr:hover { background: rgba(30, 41, 59, 0.5); }

.user-cell-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-mini-avatar {
    width: 32px;
    height: 32px;
    background: #1E293B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #38BDF8;
}

.tbl-btn-action {
    background: #1E293B;
    border: 1px solid #334155;
    color: #E2E8F0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.15s;
}

.tbl-btn-action:hover { background: #334155; color: #FFF; }
.tbl-btn-extend { background: rgba(34, 197, 94, 0.15); border-color: #22C55E; color: #4ADE80; font-weight: 700; }
.tbl-btn-extend:hover { background: rgba(34, 197, 94, 0.3); }
.tbl-btn-reset { background: rgba(56, 189, 248, 0.15); border-color: #38BDF8; color: #38BDF8; font-weight: 700; }
.tbl-btn-reset:hover { background: rgba(56, 189, 248, 0.3); }
.tbl-btn-del { border-color: rgba(239, 68, 68, 0.4); color: #F87171; }
.tbl-btn-del:hover { background: rgba(239, 68, 68, 0.2); }

/* ================= ENHANCED ADMIN PANEL STYLES ================= */
.modal-admin-card {
    max-width: 1240px;
    width: 98%;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
}

.admin-header-badge {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22C55E;
    color: #4ADE80;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: 600;
}

.admin-nav-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #1E293B;
    margin-bottom: 18px;
    padding-bottom: 2px;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #94A3B8;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab-btn:hover {
    color: #F1F5F9;
}

.admin-tab-btn.active {
    color: #F59E0B;
    border-bottom-color: #F59E0B;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 6px 6px 0 0;
}

.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active {
    display: block;
    animation: fadeInTab 0.25s ease-out;
}

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

.filter-chips-row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-chip {
    background: #0B0F19;
    border: 1px solid #334155;
    color: #94A3B8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-chip:hover {
    background: #1E293B;
    color: #FFF;
}

.filter-chip.active {
    background: #2563EB;
    border-color: #3B82F6;
    color: #FFF;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.quota-progress-wrap {
    width: 85px;
}

.quota-progress-bar {
    height: 5px;
    background: #1E293B;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.quota-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38BDF8, #818CF8);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.quota-progress-fill.full {
    background: #EF4444;
}

/* Plan Preset Cards */
.plan-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.plan-card {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.plan-card-bronze { border-top: 4px solid #CD7F32; }
.plan-card-silver { border-top: 4px solid #94A3B8; }
.plan-card-gold { border-top: 4px solid #F59E0B; }
.plan-card-diamond { border-top: 4px solid #38BDF8; }

.plan-title {
    font-size: 15px;
    font-weight: 800;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    font-size: 12px;
    color: #94A3B8;
}

.plan-feature-list li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-feature-list li::before {
    content: "✓";
    color: #4ADE80;
    font-weight: bold;
}

.btn-assign-preset {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    color: #FFF;
    transition: opacity 0.2s;
}
.btn-assign-preset:hover { opacity: 0.9; }

/* ================= SERVER TELEMETRY & METRICS STYLES ================= */
.server-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.server-metric-card {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.server-metric-card:hover {
    transform: translateY(-2px);
    border-color: #334155;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value-large {
    font-size: 26px;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-sub-detail {
    font-size: 11px;
    color: #64748B;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

.meter-bar-track {
    width: 100%;
    height: 6px;
    background: #1E293B;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.meter-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.meter-cpu { background: linear-gradient(90deg, #38BDF8, #818CF8); }
.meter-ram { background: linear-gradient(90deg, #4ADE80, #FBBF24); }
.meter-disk { background: linear-gradient(90deg, #A855F7, #EC4899); }
.meter-net { background: linear-gradient(90deg, #06B6D4, #3B82F6); }

.service-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.service-card {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 10px #22C55E;
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.service-info-title {
    font-size: 13px;
    font-weight: 700;
    color: #F1F5F9;
}

.service-info-sub {
    font-size: 11px;
    color: #4ADE80;
    font-weight: 600;
}

.telemetry-dashboard-box {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.telemetry-kv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 12px;
}

.telemetry-kv-item {
    background: #111827;
    border: 1px solid #1E293B;
    border-radius: 8px;
    padding: 12px;
}

.telemetry-k {
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 4px;
}

.telemetry-v {
    font-size: 13px;
    font-weight: 700;
    color: #F1F5F9;
    word-break: break-all;
}


