/* ═══════════════════════════════════════════════════════════════════════════
   Shure AI — Callback Dashboard Styles
   Mobile-first, glassmorphism, dark premium theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #070b1a;
    --bg-surface: #0d1225;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-strong: rgba(255, 255, 255, 0.10);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-teal: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
    --accent-gradient-hover: linear-gradient(135deg, #2563eb, #0891b2);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #60a5fa;

    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #0a1030 50%, var(--bg-deep) 100%);
    min-height: 100vh;
}

/* ── Screens ───────────────────────────────────────────────────────────── */
.screen {
    min-height: 100vh;
}

/* ── Login ──────────────────────────────────────────────────────────────── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: #f0f4f8;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

.login-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    border-radius: 50%;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.15); }
}

/* Login screen uses dark solid button */
#login-screen .btn-primary {
    background: #1a1f3a;
    border-radius: var(--radius-md);
}

#login-screen .btn-primary:hover:not(:disabled) {
    background: #111530;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#login-screen .btn-ghost {
    color: #64748b;
}

#login-screen .btn-ghost:hover {
    color: #1a1f3a;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-img {
    width: 180px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1f3a;
    letter-spacing: -0.3px;
}

.login-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 400;
}

.login-step {
    animation: fadeIn 0.3s ease-out;
}

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

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

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: #1a1f3a;
    font-family: var(--font);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.input-group input::placeholder {
    color: #a0aec0;
}

/* OTP Inputs */
.otp-info {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-digit {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: #1a1f3a;
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.otp-digit:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-ghost {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: color var(--transition);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* Loader inside buttons */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.error-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-size: 13px;
    text-align: center;
}

/* ── Dashboard Header ──────────────────────────────────────────────────── */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-logo-img {
    height: 40px;
    width: auto;
}

.header-right {
    display: flex;
    gap: 4px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.icon-btn:hover {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.icon-btn.spinning svg {
    animation: spin 0.8s linear infinite;
}

/* ── Calls Header ──────────────────────────────────────────────────────── */
.calls-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 12px;
}

.calls-header h2 {
    font-size: 20px;
    font-weight: 700;
}

/* ── Notification Banner ───────────────────────────────────────────────── */
.notif-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 16px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease-out;
}

.notif-banner-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notif-banner-text svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-light);
}

.notif-banner-btn {
    padding: 6px 16px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.notif-banner-btn:hover {
    background: #2563eb;
}

.notif-banner-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}

.notif-banner-dismiss:hover {
    color: var(--text-primary);
}

.badge {
    background: var(--accent-gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    min-width: 28px;
    text-align: center;
}

/* ── Call List ──────────────────────────────────────────────────────────── */
.call-list {
    padding: 0 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.call-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition);
    animation: cardSlideIn 0.4s ease-out backwards;
}

.call-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

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

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.caller-info {
    flex: 1;
    min-width: 0;
}

.caller-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caller-number {
    font-size: 13px;
    color: var(--text-accent);
    font-weight: 500;
    margin-top: 2px;
}

.call-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.direction-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.direction-badge.inbound {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-light);
}

.direction-badge.outbound {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-teal);
}

.call-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.call-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-glass);
}

.call-duration {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.call-duration svg {
    width: 14px;
    height: 14px;
}

.btn-callback-sm {
    padding: 7px 16px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-callback-sm:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-callback-sm svg {
    width: 13px;
    height: 13px;
}

/* ── Loading / Empty ───────────────────────────────────────────────────── */
.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: modalFadeIn 0.25s ease-out;
}

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

.modal-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-bottom: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-glass);
}

/* ── Call Detail Modal Content ─────────────────────────────────────────── */
.detail-caller {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.detail-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.detail-caller-info h4 {
    font-size: 16px;
    font-weight: 600;
}

.detail-caller-info p {
    font-size: 14px;
    color: var(--text-accent);
    font-weight: 500;
}

.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    padding: 12px;
}

.meta-item .meta-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meta-item .meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-summary-section {
    margin-top: 16px;
}

.detail-summary-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.detail-summary-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    padding: 16px;
}

/* ── Callback Modal Content ────────────────────────────────────────────── */
.callback-customer {
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.callback-customer .cb-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.callback-customer .cb-info {
    flex: 1;
    min-width: 0;
}

.callback-customer .cb-name {
    font-size: 14px;
    font-weight: 600;
}

.callback-customer .cb-phone {
    font-size: 13px;
    color: var(--text-accent);
    font-weight: 500;
}

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

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.pill-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pill-option {
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill-option:hover {
    background: var(--bg-glass-strong);
    border-color: var(--border-glass-hover);
}

.pill-option.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

.pill-option .pill-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.pill-option.selected .pill-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.pill-option.selected .pill-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.callback-status {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

.callback-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.callback-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.btn-initiate {
    gap: 8px;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    z-index: 2000;
    animation: toastIn 0.3s ease-out;
    max-width: 90%;
    text-align: center;
}

.toast.success { border-color: rgba(34, 197, 94, 0.3); }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ── Agent Switcher ────────────────────────────────────────────────────── */
.agent-switcher {
    padding: 12px 20px;
    max-width: 640px;
    margin: 0 auto;
}

.agent-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.agent-select:hover {
    border-color: var(--border-glass-hover);
}

.agent-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.agent-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* ── Settings Page ─────────────────────────────────────────────────────── */
.settings-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 20px 100px;
}

.settings-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.settings-org-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section-title {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.settings-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--accent-light);
}

.settings-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.settings-item:hover {
    background: var(--bg-card-hover);
}

.settings-item-info {
    flex: 1;
    min-width: 0;
}

.settings-item-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-item-phone {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.settings-item-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-light);
    flex-shrink: 0;
    margin-left: 12px;
}

.settings-item-delete {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
    margin-left: 12px;
}

.settings-item-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.settings-item-delete svg {
    width: 16px;
    height: 16px;
}

.settings-add-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.settings-input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.settings-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.settings-input::placeholder {
    color: var(--text-muted);
}

.settings-input-sm {
    flex: 0.6;
}

.btn-add-number {
    padding: 12px 18px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all var(--transition);
}

.btn-add-number:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-add-number svg {
    width: 16px;
    height: 16px;
}

.settings-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Pill Options (radio hidden) ──────────────────────────────────────── */
.pill-option input[type="radio"] {
    display: none;
}

.pill-option input[type="radio"]:checked ~ .pill-label {
    color: var(--text-primary);
}

.pill-option:has(input[type="radio"]:checked) {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ── Customer Avatar in Callback Modal ─────────────────────────────────── */
.customer-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.customer-name {
    font-size: 15px;
    font-weight: 600;
}

.customer-phone {
    font-size: 13px;
    color: var(--text-accent);
    font-weight: 500;
}

/* ── Call Card Layout (new compact) ───────────────────────────────────── */
.call-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.call-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.call-card-right {
    flex-shrink: 0;
    text-align: right;
}

.call-info {
    flex: 1;
    min-width: 0;
}

.call-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.dir-icon.inbound {
    stroke: var(--accent-light);
}

.dir-icon.outbound {
    stroke: var(--accent-teal);
}

/* ── Detail Row (new call detail layout) ──────────────────────────────── */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
    flex: 1;
    margin-left: 16px;
}

.detail-summary {
    flex-direction: column;
    gap: 6px;
}

.detail-summary .detail-value {
    text-align: left;
    margin-left: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (min-width: 480px) {
    .modal-panel {
        border-radius: var(--radius-xl);
        border-bottom: 1px solid var(--border-glass);
        margin: auto;
        max-height: 80vh;
    }

    .modal-overlay {
        align-items: center;
        padding: 20px;
    }

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

@media (min-width: 768px) {
    .call-list {
        max-width: 640px;
        margin: 0 auto;
    }

    .calls-header {
        max-width: 640px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ── Dashboard Footer (Logout) ─────────────────────────────────────────── */
.dash-footer {
    text-align: center;
    padding: 24px 20px 40px;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.btn-logout:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}
