﻿/* ===== Design Tokens ===== */
:root {
    --bg: #0B1220;
    --surface: #101B2D;
    --surface-2: #0F1A2B;
    --stroke: rgba(255,255,255,.08);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.55);
    --primary: #2F7BFF;
    --warning: #D6A300;
    --success: #20C997;
    --danger: #FF4D4F;
    --radius: 14px;
    --sidebar-w: 260px;

    /* Bootstrap overrides for dark mode */
    --bs-body-color: rgba(255,255,255,.92);
    --bs-body-bg: #0B1220;
    --bs-secondary-color: rgba(255,255,255,.55);
    --bs-border-color: rgba(255,255,255,.08);
    --bs-tertiary-bg: #0F1A2B;
    --bs-secondary-bg: #101B2D;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

a, .btn-link {
    color: var(--primary);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #1a68e8;
    border-color: #1a68e8;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-outline-light {
    color: var(--muted);
    border-color: var(--stroke);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,.08);
    color: var(--text);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(47,123,255,.25), 0 0 0 0.25rem rgba(47,123,255,.15);
}

.form-control, .form-select {
    background-color: var(--surface-2);
    border: 1px solid var(--stroke);
    color: var(--text);
    border-radius: var(--radius);
}

.form-control::placeholder {
    color: var(--muted);
    opacity: 1;
}

.form-control:focus, .form-select:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--text);
}

.form-label {
    color: var(--muted);
    font-size: .85rem;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success);
}

.invalid {
    outline: 1px solid var(--danger);
}

.validation-message {
    color: var(--danger);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Card utility */
.card-dark {
    background-color: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 1.25rem;
}

/* Badge utilities */
.badge-success {
    background-color: var(--success);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-warning {
    background-color: var(--warning);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-danger {
    background-color: var(--danger);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
}

/* Bootstrap input-group-text dark */
.input-group-text {
    background-color: var(--surface) !important;
    border-color: var(--stroke) !important;
    color: var(--muted) !important;
}

/* ===== Modal overlay utilities ===== */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1040;
}

.modal-overlay-custom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    max-width: min(90vw, 600px);
    max-height: 90vh;
    width: 90vw;
    overflow-y: auto;
    background-color: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-sizing: border-box;
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header-custom h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.btn-close-custom {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.btn-close-custom:hover {
    color: var(--text);
}

.modal-body-custom {
    color: var(--text);
}

/* ===== RegisterClient v2 — two-panel layout ===== */
.rc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    z-index: 1040;
}

.rc-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    width: min(95vw, 1100px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.rc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--stroke);
    background: var(--surface-2);
    flex-shrink: 0;
}
.rc-header h5 { margin: 0; font-weight: 700; font-size: 1rem; color: var(--text); }
.rc-close {
    background: none; border: none; color: var(--muted); font-size: 1.1rem;
    cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all .15s;
}
.rc-close:hover { background: rgba(255,255,255,.06); color: var(--text); }

.rc-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Middle panel (form) ── */
.rc-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.rc-alert {
    margin: .75rem 1.25rem 0;
    padding: .6rem 1rem;
    background: rgba(255,77,79,.12);
    border: 1px solid rgba(255,77,79,.25);
    border-radius: 8px;
    color: var(--danger);
    font-size: .82rem;
}

/* Tabs */
.rc-tabs {
    display: flex;
    gap: 2px;
    padding: .6rem 1.25rem 0;
    border-bottom: 1px solid var(--stroke);
    flex-shrink: 0;
}
.rc-tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--muted); font-size: .78rem; font-weight: 600;
    padding: .55rem .9rem; cursor: pointer; transition: all .15s;
    display: flex; align-items: center; gap: 6px;
}
.rc-tab:hover { color: var(--text); }
.rc-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.rc-tab-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

/* Sections inside tabs */
.rc-section { margin-bottom: 1.25rem; }
.rc-section:last-child { margin-bottom: 0; }
.rc-section-title {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 .65rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--stroke);
}

.rc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.rc-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rc-field label {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 500;
}
.rc-span-full { grid-column: 1 / -1; }

.rc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--stroke);
    background: var(--surface-2);
    flex-shrink: 0;
}

/* ── Right panel (avatar + files) ── */
.rc-right {
    width: 300px;
    flex-shrink: 0;
    border-left: 1px solid var(--stroke);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Avatar card */
.rc-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid var(--stroke);
    gap: 6px;
}
.rc-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700; color: #fff;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(47,123,255,.25);
}
.rc-avatar-name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--text);
    text-align: center;
    line-height: 1.25;
    margin-top: 4px;
}
.rc-avatar-cpf {
    font-size: .72rem;
    color: var(--muted);
    font-family: monospace;
}
.rc-status-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.rc-badge-success { background: rgba(32,201,151,.15); color: var(--success); }
.rc-badge-danger  { background: rgba(255,77,79,.15);  color: var(--danger); }
.rc-badge-warning { background: rgba(214,163,0,.15);  color: var(--warning); }

/* Mini table for dispatch/automation logs */
.rc-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
}
.rc-mini-table th, .rc-mini-table td {
    padding: .4rem .5rem;
    text-align: left;
    border-bottom: 1px solid var(--stroke);
}
.rc-mini-table th {
    font-weight: 600;
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.rc-mini-table tbody tr:hover { background: var(--surface-hover, rgba(0,0,0,.03)); }
.rc-error-cell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .72rem; }

/* Pagination controls */
.rc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: .6rem 0;
    font-size: .78rem;
    color: var(--muted);
}

/* Loading indicator */
.rc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.5rem;
    color: var(--muted);
    font-size: .82rem;
}

/* Empty state */
.rc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem 1rem;
    color: var(--muted);
    text-align: center;
}
.rc-empty-state i { font-size: 1.5rem; opacity: .5; }
.rc-empty-state p { margin: 0; font-size: .82rem; }

/* Quick info */
.rc-quick-info {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rc-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    color: var(--muted);
}
.rc-info-row i { width: 14px; text-align: center; font-size: .7rem; color: var(--primary); }
.rc-info-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Files section */
.rc-files-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: .75rem 1rem;
    min-height: 0;
}
.rc-files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .6rem;
}
.rc-files-header h6 {
    margin: 0; font-size: .78rem; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 6px;
}
.rc-files-header h6 i { color: #facc15; }
.rc-file-count {
    background: var(--surface);
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
}

.rc-files-loading, .rc-files-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2rem 0;
    color: var(--muted);
    font-size: .78rem;
}
.rc-files-empty i { font-size: 1.8rem; opacity: .4; }

.rc-files-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rc-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .5rem .6rem;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid transparent;
    text-decoration: none;
    transition: all .15s;
}
.rc-file-item:hover { border-color: var(--stroke); background: rgba(255,255,255,.04); }
.rc-file-icon { font-size: .9rem; flex-shrink: 0; }
.rc-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-file-name { font-size: .72rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-file-size { font-size: .62rem; color: var(--muted); }
.rc-file-link { font-size: .65rem; color: var(--muted); flex-shrink: 0; }
.rc-file-item:hover .rc-file-link { color: var(--primary); }

.rc-drive-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: .5rem;
    padding: .55rem;
    background: rgba(47,123,255,.1);
    border: 1px solid rgba(47,123,255,.2);
    border-radius: 10px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
}
.rc-drive-link:hover { background: rgba(47,123,255,.18); color: #5a9eff; }

/* Legacy compat — keep for other dialogs */
.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: .75rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: var(--surface-2);
    border-color: var(--stroke);
    color: var(--muted);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,.08);
    color: var(--text);
}

/* ===== ColumnConfigDialog toggle buttons ===== */
.column-config-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.column-toggle-button {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.column-toggle-button.active {
    background-color: rgba(47,123,255,.15);
    color: var(--primary);
    border-color: rgba(47,123,255,.3);
}

.column-toggle-button.inactive {
    background-color: var(--surface-2);
    color: var(--muted);
    border-color: var(--stroke);
}

.column-toggle-button:hover {
    background-color: rgba(255,255,255,.08);
    color: var(--text);
}

/* ===== Global responsive ===== */
@media (max-width: 768px) {
    .modal-overlay-custom {
        max-width: calc(100vw - 24px);
        max-height: 85vh;
        padding: 1rem;
        border-radius: 12px;
    }

    .modal-header-custom h5 {
        font-size: .95rem;
    }

    /* RC dialog responsive — stack panels vertically */
    .rc-dialog { width: calc(100vw - 16px); max-height: 90vh; border-radius: 12px; }
    .rc-content { flex-direction: column; }
    .rc-right { width: 100%; border-left: none; border-top: 1px solid var(--stroke); max-height: 280px; }
    .rc-avatar-card { flex-direction: row; padding: .75rem 1rem; gap: 10px; }
    .rc-avatar { width: 42px; height: 42px; font-size: 1rem; }
    .rc-avatar-name { font-size: .8rem; text-align: left; }
    .rc-tabs { padding: .4rem .75rem 0; gap: 0; overflow-x: auto; }
    .rc-tab { padding: .45rem .6rem; font-size: .72rem; white-space: nowrap; }
    .rc-tab-body { padding: .75rem; }
    .rc-grid { grid-template-columns: 1fr; gap: 10px; }
    .rc-footer { padding: .6rem .75rem; }

    .column-toggle-button {
        padding: 5px 10px;
        font-size: .72rem;
    }

    .card-dark {
        padding: 1rem;
        border-radius: 10px;
    }

    .content {
        padding: .75rem .75rem !important;
    }
}

@media (max-width: 480px) {
    .modal-overlay-custom {
        max-width: calc(100vw - 16px);
        border-radius: 10px;
    }

    .rc-dialog { width: calc(100vw - 8px); border-radius: 10px; }
    .rc-right { max-height: 220px; }

    .content {
        padding: .5rem .5rem !important;
    }
}

/* ===== SIMEATAERJ Editor & Phone Preview ===== */
.editor-label {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .35rem;
}

.editor-input {
    background-color: var(--surface-2) !important;
    border: 1px solid var(--stroke) !important;
    color: var(--text) !important;
    border-radius: 8px !important;
    font-size: .85rem !important;
}

.editor-input::placeholder {
    color: var(--muted) !important;
    opacity: 1;
}

.editor-input:focus {
    border-color: var(--warning) !important;
    box-shadow: 0 0 0 2px rgba(214,163,0,.15) !important;
}

/* Checklist drag rows */
.checklist-row {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}

.checklist-row:hover {
    background: rgba(255,255,255,.04);
}

.checklist-row-dragover {
    border-color: var(--warning);
    background: rgba(214,163,0,.08);
}

.badge-simulating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(47,123,255,.1);
    border: 1px solid rgba(47,123,255,.2);
    border-radius: 20px;
    font-size: .6rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.badge-simulating-clickable {
    cursor: pointer;
    transition: all .15s ease;
}

.badge-simulating-clickable:hover {
    background: rgba(47,123,255,.2);
    border-color: rgba(47,123,255,.4);
    color: #93bbfd;
}

/* Phone preview shell */
.phone-shell {
    width: 320px;
    height: 640px;
    background: #0a0f18;
    border-radius: 3rem;
    border: 8px solid var(--surface);
    box-shadow: 0 25px 60px rgba(0,0,0,.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-statusbar {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: .65rem;
    color: #fff;
    flex-shrink: 0;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0;
}

.phone-content {
    flex: 1;
    overflow-y: auto;
    padding: .5rem 1rem 6rem;
}

.phone-navbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #0a0f18;
    border-top: 1px solid rgba(255,255,255,.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 20;
}

.phone-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: .5rem .25rem;
    cursor: pointer;
    border: none;
    background: none;
    color: rgba(255,255,255,.35);
    transition: color .2s;
    flex: 1;
}

.phone-nav-item.active {
    color: #fff;
}

.phone-nav-item i {
    font-size: 1.1rem;
}

.phone-nav-item span {
    font-size: .5rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 500;
}

.phone-doc-card {
    background: rgba(255,255,255,.04);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.phone-doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(214,163,0,.1);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-doc-btn {
    background: var(--warning);
    color: #111;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: .6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}

/* Section-editor + preview layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1200px) {
    .editor-layout {
        grid-template-columns: 1fr 340px;
    }
}

.phone-preview-sticky {
    position: static;
}

@media (min-width: 1200px) {
    .phone-preview-sticky {
        position: sticky;
        top: 6rem;
    }
}