/* ============================================================
   SMS Portal — Application Styles
   No external fonts or CDN dependencies.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary:      #e8472a;
    --primary-dark: #c93a1f;
    --danger:       #dc2626;
    --success:      #16a34a;
    --warning:      #d97706;
    --info:         #0891b2;
    --bg:           #ede8e2;
    --surface:      #f5f0eb;
    --border:       #d9d2c9;
    --text:         #1a1a1a;
    --text-muted:   #6b6b6b;
    --navbar-bg:    #2a2520;
    --radius:       6px;
    --shadow:       0 1px 3px rgba(0,0,0,.12);
}

[data-theme="dark"] {
    --primary:      #3b82f6;
    --primary-dark: #2563eb;
    --danger:       #ef4444;
    --success:      #22c55e;
    --warning:      #f59e0b;
    --info:         #22d3ee;
    --bg:           #0f172a;
    --surface:      #1e293b;
    --border:       #334155;
    --text:         #f1f5f9;
    --text-muted:   #94a3b8;
    --navbar-bg:    #020617;
    --shadow:       0 1px 3px rgba(0,0,0,.4);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-in  { animation: fadeIn  .35s ease both; }
.animate-slide-up { animation: slideUp .35s ease both; }

/* ============================================================
   Layout
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2col { grid-template-columns: 1fr; }
    .container { padding: 16px 14px; }
}

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
    background: var(--navbar-bg);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 4px 20px;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-brand a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-links li { position: relative; }

.nav-links a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    display: block;
    font-size: 13px;
    transition: background .15s, color .15s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,.15); }

/* Hamburger toggle */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    margin-left: auto;
    transition: background .15s;
}

.nav-hamburger:hover { background: rgba(255,255,255,.1); }

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.navbar.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navbar-bg);
    min-width: 160px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    list-style: none;
    padding: 4px 0;
    margin: 0;
    z-index: 200;
    animation: fadeIn .2s ease both;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li a {
    padding: 8px 16px;
    border-radius: 0;
    white-space: nowrap;
    font-size: 13px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-info { font-size: 13px; color: rgba(255,255,255,.9); }

/* Mobile nav */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .nav-links, .nav-user { display: none; }

    .navbar.nav-open {
        height: auto;
        flex-wrap: wrap;
        padding-bottom: 12px;
    }

    .navbar.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 2px;
        border-top: 1px solid rgba(255,255,255,.12);
        padding-top: 8px;
        animation: slideUp .2s ease both;
    }

    .navbar.nav-open .nav-user {
        display: flex;
        width: 100%;
        order: 4;
        border-top: 1px solid rgba(255,255,255,.12);
        padding-top: 10px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .navbar .nav-brand { order: 1; }
    .navbar .nav-hamburger { order: 2; margin-left: auto; }

    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.open .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,.06);
        border-radius: var(--radius);
        margin-top: 2px;
        animation: none;
    }

    .nav-links a { padding: 8px 14px; font-size: 14px; }
}

/* ============================================================
   Auth pages
   ============================================================ */
.auth-page {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    position: relative;
    animation: slideUp .4s ease both;
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; border-radius: 8px; }
}

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 { margin: 0 0 4px; font-size: 22px; }
.auth-header p { margin: 0; color: var(--text-muted); font-size: 13px; }

.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; }
.auth-footer a { color: var(--primary); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    animation: fadeIn .3s ease both;
    transition: box-shadow .2s;
}

.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.card-header h3 { margin: 0; font-size: 15px; }

.card-body { padding: 20px; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text);
}

.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.form-control:disabled { background: var(--bg); cursor: not-allowed; }

.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 4px; display: block; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.inline-edit-form { padding: 16px; background: var(--bg); border-radius: var(--radius); width: 100%; box-sizing: border-box; }

.form-group--full { grid-column: 1 / -1; }

/* ============================================================
   Appearance
   ============================================================ */
.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.theme-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    min-height: 92px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.theme-choice:hover,
.theme-choice.selected,
.theme-choice:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.theme-choice input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.theme-choice-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.theme-choice-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.theme-choice-title {
    font-weight: 600;
    color: var(--text);
}

.theme-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.theme-swatches span {
    height: 22px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 4px;
}

.checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; margin-top: 4px; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
}

.btn:active:not(:disabled) { transform: scale(.97); }

.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(37,99,235,.35);
}

.btn-danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    box-shadow: 0 2px 8px rgba(220,38,38,.35);
}

.btn-outline  { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }

.navbar .btn-outline { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.4); }
.navbar .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

[data-theme="dark"] .btn-outline { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.4); }
[data-theme="dark"] .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-outline-dark {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline-dark:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm       { padding: 4px 10px; font-size: 12px; }
.btn-block    { width: 100%; margin-top: 4px; }
.theme-toggle { min-width: 34px; }

.inline-form  { display: inline; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid transparent;
    animation: fadeIn .3s ease both;
}

.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }

.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #f0f9ff; border-color: #bae6fd; color: #075985; }

[data-theme="dark"] .alert-success { background: #052e16; border-color: #166534; color: #86efac; }
[data-theme="dark"] .alert-error   { background: #450a0a; border-color: #991b1b; color: #fca5a5; }
[data-theme="dark"] .alert-warning { background: #431407; border-color: #92400e; color: #fcd34d; }
[data-theme="dark"] .alert-info    { background: #082f49; border-color: #075985; color: #7dd3fc; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.badge-admin   { background: #dbeafe; color: #1e40af; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-error   { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #e0f2fe; color: #075985; }
.badge-warning { background: #fef3c7; color: #92400e; }

[data-theme="dark"] .badge-admin   { background: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .badge-success { background: #14532d; color: #86efac; }
[data-theme="dark"] .badge-error   { background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .badge-info    { background: #0c4a6e; color: #7dd3fc; }
[data-theme="dark"] .badge-warning { background: #78350f; color: #fcd34d; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; color: var(--text-muted); background: var(--bg); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg); transition: background .1s; }

.table-sm th, .table-sm td { padding: 6px 10px; }

.truncate { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   Page header
   ============================================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeIn .3s ease both;
}

.page-header h2 { margin: 0; font-size: 20px; }

.credit-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 13px;
    box-shadow: var(--shadow);
}

/* ============================================================
   SMS character counter
   ============================================================ */
.char-counter {
    float: right;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.char-counter.over-limit { color: var(--danger); font-weight: 600; }

/* ============================================================
   Stats grid
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    animation: slideUp .35s ease both;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   Log viewer
   ============================================================ */
.log-viewer {
    background: #0f172a;
    color: #94a3b8;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    padding: 16px;
    border-radius: var(--radius);
    max-height: 500px;
    overflow-y: auto;
}

.log-line { padding: 2px 0; line-height: 1.5; }
.log-warn   { color: #fbbf24; }
.log-danger { color: #f87171; }

/* ============================================================
   Tabs
   ============================================================ */
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-link {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.tab-link:hover { color: var(--primary); }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    transition: background .15s, border-color .15s, color .15s;
}

.page-link:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   Token display
   ============================================================ */
.token-display {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: monospace;
}

/* ============================================================
   Theme transition
   ============================================================ */
body, .navbar, .card, .auth-card, .stat-card, .form-control,
.dropdown-menu, .alert, .badge, .table th, .table td,
.page-link, .token-display, .inline-edit-form {
    transition: background-color .2s, border-color .2s, color .2s;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ============================================================
   CSV Upload Area
   ============================================================ */
.csv-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}

.csv-upload-area:hover,
.csv-upload-area.csv-drag-over {
    border-color: var(--primary);
    background: rgba(37,99,235,.04);
    color: var(--primary);
}

.csv-upload-prompt { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.csv-upload-result { font-size: 13px; font-weight: 500; }
.csv-result-ok    { color: var(--success); }
.csv-result-error { color: var(--danger); }

/* ============================================================
   Toast Notifications
   ============================================================ */
#toast-container {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
    width: calc(100vw - 32px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    animation: toastIn .3s ease both;
    border-left: 4px solid transparent;
    background: var(--surface);
    color: var(--text);
    position: relative;
}

.toast.toast-out { animation: toastOut .3s ease both; }

.toast-success { border-left-color: #16a34a; }
.toast-error   { border-left-color: #dc2626; }
.toast-warning { border-left-color: #d97706; }
.toast-info    { border-left-color: #0891b2; }

.toast-icon { font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.toast-success .toast-icon { color: #16a34a; }
.toast-error   .toast-icon { color: #dc2626; }
.toast-warning .toast-icon { color: #d97706; }
.toast-info    .toast-icon { color: #0891b2; }

.toast-body { flex: 1; line-height: 1.5; }
.toast-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 16px; padding: 0 2px;
    line-height: 1; flex-shrink: 0;
    transition: color .15s;
}
.toast-close:hover { color: var(--text); }

/* ============================================================
   Confirm Modal
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: backdropIn .2s ease both;
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 28px 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: modalIn .25s ease both;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}

.modal-message {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
    line-height: 1.6;
}

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

/* ============================================================
   Done list inline styles (moved from dashboard inline block)
   ============================================================ */
#doneTableWrap table thead th {
    user-select: none;
    white-space: nowrap;
}
#doneTableWrap table thead th.sortable { cursor: pointer; }
#doneTableWrap table thead th.sortable:hover { opacity: 0.75; }
#doneTableWrap table thead th .sort-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.75em;
    opacity: 0.5;
}
#doneTableWrap table thead th.sort-asc .sort-arrow,
#doneTableWrap table thead th.sort-desc .sort-arrow { opacity: 1; }
#doneTableWrap table thead th[draggable="true"] { cursor: grab; }
#doneTableWrap table thead th.col-drag-over { outline: 2px dashed var(--primary, #2980b9); }

.carrier-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.carrier-ntc     { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.carrier-ncell   { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.carrier-unknown { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

[data-theme="dark"] .carrier-ntc     { background: #1e3a8a; color: #93c5fd; border-color: #1d4ed8; }
[data-theme="dark"] .carrier-ncell   { background: #14532d; color: #86efac; border-color: #166534; }
[data-theme="dark"] .carrier-unknown { background: #1e293b; color: #94a3b8; border-color: #334155; }

/* ============================================================
   Utilities
   ============================================================ */
.text-muted { color: var(--text-muted); }
code { background: var(--bg); border: 1px solid var(--border); padding: 1px 5px; border-radius: 3px; font-size: 12px; }

@media (max-width: 480px) {
    .btn-block-mobile { width: 100%; }
    .hide-mobile { display: none !important; }
}
