/* Link Call PHP — App Styles (Premium Cyan Identity) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #00E5FF;
    --primary-light: #00F5FF;
    --primary-dark: #00B8D4;
    --primary-glow: rgba(0, 229, 255, 0.4);
    --primary-subtle: rgba(0, 229, 255, 0.06);
    --accent: #00E5FF;
    --accent-glow: rgba(0, 229, 255, 0.3);
    --bg-deep: #050510;
    --bg-card: rgba(15, 15, 30, 0.75);
    --bg-card-hover: rgba(0, 229, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 229, 255, 0.25);
    --text: #f0f0f0;
    --text-muted: rgba(255, 255, 255, 0.45);
    --success: #00E676;
    --danger: #ff5252;
    --warning: #FFC107;
    --radius: 18px;
    --radius-sm: 12px;
    --header-h: 64px;
    --ticker-h: 36px;
    --nav-h: 72px;
}

html, body { height: 100%; }
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

/* ==================== ANIMATED BACKGROUND ==================== */
#particleCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
#soundWaveCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.8;
}
#aiCodeCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.orb {
    position: fixed; border-radius: 50%; filter: blur(80px);
    pointer-events: none; z-index: 0;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    top: -100px; right: -100px;
    opacity: 0.25;
    animation: orbFloat1 20s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25), transparent 70%);
    bottom: -80px; left: -80px;
    opacity: 0.2;
    animation: orbFloat2 25s ease-in-out infinite;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.2), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: orbFloat3 18s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-40px,30px) scale(1.1); } 66% { transform: translate(30px,-20px) scale(0.9); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-40px) scale(1.15); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-40%,-60%) scale(1.2); } }

.grid-bg {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: 0; pointer-events: none;
}

/* ==================== GLASS CARD MIXIN ==================== */
.glass-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass) !important;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 0 0 1px rgba(255,255,255,0.03) inset;
}

/* ==================== HEADER ==================== */
.app-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(5,5,16,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}
/* Cyan glow line at top */
.app-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
    opacity: 0.6;
}
.header-brand { display: flex; align-items: center; gap: 10px; }
.header-logo {
    width: 38px; height: 38px; border-radius: 12px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}
.header-title { font-size: 1.15rem; font-weight: 900; color: #fff; letter-spacing: 1px; }
.brand-cyan {
    background: linear-gradient(135deg, #00E5FF, #00F5FF, #00E5FF);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.header-user { display: flex; align-items: center; gap: 14px; }
.header-balance {
    font-size: 0.82rem; font-weight: 700; color: var(--primary);
    background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.15);
    padding: 6px 16px; border-radius: 50px;
    display: flex; align-items: center; gap: 6px;
    text-shadow: 0 0 12px rgba(0,229,255,0.3);
}
.header-balance i { font-size: 0.75rem; }
.header-name { font-size: 0.82rem; color: var(--text-muted); }
.btn-logout {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 1rem; padding: 8px; border-radius: 50%; transition: all 0.3s;
}
.btn-logout:hover { color: var(--danger); background: rgba(255,82,82,0.1); }
.btn-install {
    background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.3); color: var(--primary); cursor: pointer;
    font-size: 0.9rem; padding: 6px 12px; border-radius: 20px; transition: all 0.3s; margin-left: 8px;
    display: flex; align-items: center; gap: 6px;
}
.btn-install:hover { background: rgba(0,229,255,0.2); box-shadow: 0 0 12px rgba(0,229,255,0.2); }
.hidden { display: none !important; }

/* ==================== TICKER BAR ==================== */
.ticker-bar {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: 36px;
    background: rgba(0, 229, 255, 0.04);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.ticker-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.15), transparent);
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 45s linear infinite;
}
.ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}
.ticker-item i {
    color: var(--primary);
    font-size: 0.72rem;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.3));
}
.ticker-dot {
    color: rgba(0, 229, 255, 0.25);
    font-size: 0.4rem;
    padding: 0 4px;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ==================== BOTTOM NAV ==================== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(5,5,16,0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
/* Cyan glow line at top of nav */
.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.2), transparent);
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: none; border: none; color: var(--text-muted); font-family: 'Cairo'; font-size: 0.68rem; font-weight: 600;
    cursor: pointer; padding: 8px 16px; border-radius: var(--radius-sm); transition: all 0.3s; position: relative;
}
.nav-item i { font-size: 1.2rem; transition: all 0.3s; }
.nav-item.active { color: var(--primary); }
.nav-item.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 3px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow), 0 0 24px rgba(0,229,255,0.15);
}
.nav-item.active i {
    text-shadow: 0 0 14px var(--primary-glow);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}
.nav-item:hover { background: rgba(0,229,255,0.03); }

/* ==================== SECTIONS ==================== */
.app-container {
    position: relative; z-index: 1;
    margin-top: calc(var(--header-h) + var(--ticker-h));
    margin-bottom: var(--nav-h);
    min-height: calc(100vh - var(--header-h) - var(--ticker-h) - var(--nav-h));
    padding: 20px;
}
.app-section { display: none; animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.app-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 {
    font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 10px;
}
.section-header h2 i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}
.btn-refresh {
    background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.12); color: var(--text-muted);
    width: 38px; height: 38px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.btn-refresh:hover {
    color: var(--primary); border-color: rgba(0,229,255,0.3);
    box-shadow: 0 0 16px rgba(0,229,255,0.1);
    background: rgba(0,229,255,0.08);
}

/* ==================== DIALPAD ==================== */
.dialpad-container { max-width: 380px; margin: 0 auto; text-align: center; }

.call-status { margin-bottom: 20px; }
.status-indicator {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    background: rgba(0,229,255,0.03); border: 1px solid rgba(0,229,255,0.1);
    border-radius: 50px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(0,230,118,0.5);
    animation: dotBlink 2s ease-in-out infinite;
}
.status-indicator.connecting .status-dot { background: var(--warning); box-shadow: 0 0 8px rgba(255,193,7,0.5); }
.status-indicator.error .status-dot { background: var(--danger); box-shadow: 0 0 8px rgba(255,82,82,0.5); }
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.phone-input-wrap { position: relative; margin-bottom: 24px; }
.phone-input {
    width: 100%; padding: 16px 18px; padding-left: 42px;
    background: rgba(0, 229, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.15); border-radius: var(--radius);
    color: #fff; font-size: 1.4rem; font-family: 'Cairo'; text-align: center; letter-spacing: 3px;
    backdrop-filter: blur(16px); transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.phone-input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,229,255,0.08), 0 0 24px rgba(0,229,255,0.06), 0 4px 20px rgba(0,0,0,0.2);
    background: rgba(0,229,255,0.03);
}
.phone-input::placeholder { color: rgba(255,255,255,0.15); }
.btn-clear-phone {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-clear-phone:hover { color: var(--primary); }

.dialpad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.key {
    position: relative; padding: 18px 0;
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    color: #fff; font-size: 1.5rem; font-weight: 700; font-family: 'Cairo'; cursor: pointer; transition: all 0.25s;
    user-select: none; display: flex; flex-direction: column; align-items: center; line-height: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 229, 255, 0.04), 0 2px 8px rgba(0,0,0,0.15);
}
.key small { font-size: 0.5rem; color: rgba(0, 229, 255, 0.5); font-weight: 600; letter-spacing: 2px; margin-top: 2px; }
.key:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.1), 0 0 0 1px rgba(0, 229, 255, 0.05);
    color: var(--primary);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}
.key:active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary);
    transform: scale(0.94);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.2), inset 0 0 12px rgba(0, 229, 255, 0.06);
    color: var(--primary);
}

.call-btn {
    width: 72px; height: 72px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 1.6rem;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 6px 28px rgba(0, 229, 255, 0.35), 0 0 0 4px rgba(0, 229, 255, 0.08);
    position: relative;
}
.call-btn::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), transparent);
    z-index: -1; animation: callBtnPulse 3s ease-in-out infinite;
}
@keyframes callBtnPulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 0; } }
.call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 36px rgba(0, 229, 255, 0.45), 0 0 0 6px rgba(0, 229, 255, 0.12);
}
.call-btn:active { transform: scale(0.95); }
.call-btn.calling {
    background: linear-gradient(135deg, var(--danger), #d32f2f);
    box-shadow: 0 6px 28px rgba(255,82,82,0.35), 0 0 0 4px rgba(255,82,82,0.08);
}
.call-btn.calling::after { background: linear-gradient(135deg, rgba(255,82,82,0.2), transparent); }

/* ==================== ACTIVE CALL SCREEN ==================== */
.active-call {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: var(--nav-h);
    background: rgba(5,5,16,0.95); backdrop-filter: blur(30px); z-index: 50;
    display: flex; align-items: center; justify-content: center;
}
.active-call-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; }
.call-wave-ring {
    position: absolute; width: 160px; height: 160px; border-radius: 50%;
    border: 1px solid rgba(0,229,255,0.15); top: -40px; left: 50%; transform: translateX(-50%);
    animation: waveRingPulse 3s ease-out infinite;
}
.call-wave-ring.delay-1 { width: 200px; height: 200px; top: -60px; animation-delay: 1s; }
@keyframes waveRingPulse { 0% { transform: translateX(-50%) scale(1); opacity: 0.5; } 100% { transform: translateX(-50%) scale(1.4); opacity: 0; } }
.call-avatar {
    width: 86px; height: 86px; border-radius: 50%;
    background: rgba(0,229,255,0.06);
    border: 2px solid rgba(0,229,255,0.25);
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--primary);
    box-shadow: 0 0 40px rgba(0,229,255,0.15), inset 0 0 20px rgba(0,229,255,0.03);
}
.call-number { font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; direction: ltr; }
.call-timer {
    font-size: 2.2rem; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px var(--primary-glow);
}

.call-controls { display: flex; gap: 24px; margin-top: 28px; }
.ctrl-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius);
    color: #fff; font-family: 'Cairo'; font-size: 0.7rem; font-weight: 600;
    padding: 16px 22px; cursor: pointer; transition: all 0.3s; min-width: 74px;
    backdrop-filter: blur(10px);
}
.ctrl-btn i { font-size: 1.2rem; }
.ctrl-btn:hover { background: rgba(255,255,255,0.06); }
.ctrl-btn.active {
    color: var(--primary); border-color: rgba(0,229,255,0.3);
    background: rgba(0,229,255,0.06);
    box-shadow: 0 0 20px rgba(0,229,255,0.1), inset 0 0 10px rgba(0,229,255,0.03);
}
.ctrl-btn.end-call { background: var(--danger); border-color: var(--danger); }
.ctrl-btn.end-call:hover { background: #d32f2f; }

/* ==================== INCOMING CALL ==================== */
.incoming-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,5,16,0.92); backdrop-filter: blur(20px); z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.incoming-card { text-align: center; animation: cardIn 0.5s ease; }
@keyframes cardIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.incoming-animation { position: relative; width: 120px; height: 120px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.call-pulse { position: absolute; width: 100%; height: 100%; border: 2px solid rgba(0,230,118,0.3); border-radius: 50%; animation: pulse 2s ease-out infinite; }
.call-pulse.delay-1 { animation-delay: 0.5s; }
.call-pulse.delay-2 { animation-delay: 1s; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.caller-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #00E676, #00C853); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    box-shadow: 0 0 30px rgba(0,230,118,0.3);
}
.incoming-info h2 { font-size: 1.2rem; margin-bottom: 8px; }
.caller-number { font-size: 1.1rem; direction: ltr; color: var(--text-muted); margin-bottom: 24px; }
.incoming-actions { display: flex; gap: 20px; justify-content: center; }
.incoming-btn { padding: 14px 28px; border: none; border-radius: 50px; font-family: 'Cairo'; font-size: 0.9rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s; }
.reject-btn { background: var(--danger); color: #fff; box-shadow: 0 4px 16px rgba(255,82,82,0.3); }
.reject-btn:hover { box-shadow: 0 6px 24px rgba(255,82,82,0.4); transform: scale(1.03); }
.accept-btn { background: var(--success); color: #000; box-shadow: 0 4px 16px rgba(0,230,118,0.3); }
.accept-btn:hover { box-shadow: 0 6px 24px rgba(0,230,118,0.4); transform: scale(1.03); }

/* ==================== LIST ITEMS (History + Recordings) ==================== */
.list-container { display: flex; flex-direction: column; gap: 10px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.empty-state i {
    font-size: 3rem; margin-bottom: 16px; opacity: 0.2; display: block;
    color: var(--primary);
}
.empty-state p { font-size: 0.92rem; font-weight: 600; }

.list-item {
    background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius);
    padding: 16px 18px; display: flex; align-items: center; gap: 14px;
    transition: all 0.3s; cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.list-item:hover {
    background: rgba(0,229,255,0.04); border-color: rgba(0,229,255,0.18);
    box-shadow: 0 4px 20px rgba(0,229,255,0.06), 0 4px 16px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}
.list-icon {
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.list-icon.outbound { background: rgba(0,230,118,0.08); color: var(--success); border: 1px solid rgba(0,230,118,0.12); }
.list-icon.inbound { background: rgba(0,229,255,0.08); color: var(--primary); border: 1px solid rgba(0,229,255,0.12); }
.list-icon.missed { background: rgba(255,82,82,0.08); color: var(--danger); border: 1px solid rgba(255,82,82,0.12); }
.list-icon.recording { background: rgba(0,229,255,0.08); color: var(--primary); border: 1px solid rgba(0,229,255,0.12); }
.list-details { flex: 1; min-width: 0; }
.list-details .phone { font-size: 0.95rem; font-weight: 700; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-details .meta { font-size: 0.74rem; color: var(--text-muted); display: flex; gap: 10px; margin-top: 3px; }
.list-duration {
    font-size: 0.8rem; font-weight: 700; color: var(--primary); white-space: nowrap;
    text-shadow: 0 0 10px rgba(0,229,255,0.2);
}

/* Recordings play button */
.btn-play {
    background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.2); color: var(--primary);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.btn-play:hover {
    background: rgba(0,229,255,0.15);
    box-shadow: 0 0 16px rgba(0,229,255,0.2);
    transform: scale(1.05);
}

/* ==================== AUDIO PLAYER ==================== */
.audio-player {
    position: fixed; bottom: var(--nav-h); left: 0; right: 0;
    background: rgba(5,5,16,0.92); backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-glass); padding: 12px 18px; z-index: 90;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.player-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.player-info span { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.btn-close-player { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; transition: all 0.3s; }
.btn-close-player:hover { color: var(--primary); }
.audio-player audio { width: 100%; height: 36px; }

/* ==================== SETTINGS ==================== */
.settings-container { display: flex; flex-direction: column; gap: 16px; max-width: 500px; margin: 0 auto; }
.settings-card {
    background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
/* Cyan top border accent */
.settings-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), transparent);
}
.settings-card h3 {
    font-size: 0.98rem; font-weight: 700; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px; color: var(--primary);
    text-shadow: 0 0 12px rgba(0,229,255,0.15);
}
.settings-card h3 i { filter: drop-shadow(0 0 8px var(--primary-glow)); }
.settings-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem;
}
.settings-row:last-child { border-bottom: none; }
.settings-row label { color: var(--text-muted); font-weight: 600; }

.balance-display { text-align: center; padding: 20px; margin-bottom: 12px; }
.balance-amount {
    font-size: 2.8rem; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #00F5FF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0,229,255,0.2));
}
.balance-currency { font-size: 1.3rem; color: var(--text-muted); margin-right: 4px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.form-group input {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm); color: #fff; font-size: 0.88rem; font-family: 'Cairo'; transition: all 0.3s;
}
.form-group input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,229,255,0.08), 0 0 20px rgba(0,229,255,0.05);
    background: rgba(0,229,255,0.03);
}
.form-group input::placeholder { color: rgba(255,255,255,0.15); }

.btn-primary {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none;
    border-radius: 50px; color: #fff; font-size: 0.92rem; font-weight: 700; font-family: 'Cairo'; cursor: pointer;
    transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 24px rgba(0,229,255,0.25);
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg); transition: 0.5s; opacity: 0;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,229,255,0.35);
}

.btn-danger {
    width: 100%; padding: 16px;
    background: rgba(255,82,82,0.06); border: 1px solid rgba(255,82,82,0.15);
    border-radius: 50px; color: var(--danger); font-size: 0.92rem; font-weight: 700; font-family: 'Cairo';
    cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-danger:hover {
    background: rgba(255,82,82,0.12);
    box-shadow: 0 4px 16px rgba(255,82,82,0.1);
    transform: translateY(-1px);
}

.setup-msg { margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); font-size: 0.82rem; text-align: center; display: none; }
.setup-msg.success { display: block; background: rgba(0,230,118,0.08); color: var(--success); border: 1px solid rgba(0,230,118,0.15); }
.setup-msg.error { display: block; background: rgba(255,82,82,0.08); color: var(--danger); border: 1px solid rgba(255,82,82,0.15); }

/* ==================== TOAST / NOTIFICATIONS ==================== */
.toast {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px); border-radius: 50px;
    padding: 10px 24px; font-size: 0.85rem; font-weight: 600;
    color: var(--primary); z-index: 300;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(0,229,255,0.1);
    animation: toastIn 0.4s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.3); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .app-container { padding: 14px; margin-top: calc(var(--header-h) + var(--ticker-h) + 10px); }
    .app-header { padding: 0 14px; }
    .header-logo { width: 28px; height: 28px; }
    .header-title { font-size: 1.1rem; }
    .header-name, .btn-install span { display: none; }
    .btn-install { padding: 6px 10px; }
    .ticker-item { font-size: 0.72rem; padding: 0 16px; }
    .dialpad-container { max-width: 100%; margin-top: 10px; }
    .phone-input { font-size: 1.3rem; padding: 14px; letter-spacing: 2px; }
    .key { padding: 14px 0; font-size: 1.3rem; border-radius: 12px; }
    .key small { font-size: 0.45rem; }
    .dialpad-keys { gap: 8px; margin-bottom: 20px; }
    .call-btn { width: 68px; height: 68px; font-size: 1.4rem; }
    .nav-item { padding: 6px; }
    .nav-item i { font-size: 1.1rem; margin-bottom: 3px; }
    .nav-item span { font-size: 0.6rem; }
    .ctrl-btn { padding: 12px; min-width: 60px; }
    .settings-container { max-width: 100%; }
    .toast { width: 90%; text-align: center; font-size: 0.8rem; }
}
