/* SpotSMS - Shared styles for all pages */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #e8eaed;
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(26, 29, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-signal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 8px;
    background: rgba(26, 29, 46, 0.6);
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.2), inset 0 0 20px rgba(74, 144, 226, 0.05);
}

.logo-signal-container::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #0f1117;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

.signal-bar {
    width: 5px;
    background: linear-gradient(180deg, #4a90e2, #357abd);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.6);
    animation: signalPulse 1.5s ease-in-out infinite;
}

.signal-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.signal-bar:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.signal-bar:nth-child(3) { height: 20px; animation-delay: 0.3s; }
.signal-bar:nth-child(4) { height: 26px; animation-delay: 0.45s; }

@keyframes signalPulse {
    0%, 100% { opacity: 0.6; transform: scaleY(0.9); }
    50% { opacity: 1; transform: scaleY(1); }
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.logo-text .spot {
    background: linear-gradient(135deg, #fff, #e8eaed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.logo-text .sms {
    background: linear-gradient(135deg, #4a90e2 0%, #5ba3ff 50%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links { display: flex; gap: 0.5rem; align-items: center; }

.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(74, 144, 226, 0.2);
}

.nav-link {
    color: #b0b8c4;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.05);
}

.nav-link.active {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
    font-weight: 600;
}

.btn-auth {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-login {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    border: 1.5px solid rgba(74, 144, 226, 0.4);
}

.btn-login:hover {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.15);
}

.btn-register {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
}

.btn-register:hover {
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    background: linear-gradient(135deg, #5ba3ff, #4a90e2);
}

.balance-display {
    color: #10b981;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.45rem 1rem;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.nav-link-admin {
    color: #f59e0b !important;
    font-weight: 600;
}

.nav-link-admin:hover {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

.nav-link-admin.active {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.15) !important;
}

.nav-notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-decoration: none;
    margin-right: -4px;
}

/* Hamburger menu toggle */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.hamburger-btn:hover { background: rgba(74, 144, 226, 0.2); }
.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #4a90e2;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Page content area */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Feature cards (for FAQ, API, etc.) */
.feature-card {
    background: rgba(26, 29, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.1);
    padding: 2rem 1.8rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.2);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.feature-card p {
    color: #b0b8c4;
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-card a { color: #4a90e2; text-decoration: none; }
.feature-card a:hover { text-decoration: underline; }

/* Auth form */
.auth-form {
    max-width: 420px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(26, 29, 46, 0.6);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 16px;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b0b8c4;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 17, 23, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    color: #e8eaed;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

.auth-form .btn-auth {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.auth-form .btn-register { width: 100%; text-align: center; }

.error-msg { color: #ef4444; margin-bottom: 1rem; font-size: 0.9rem; }

/* Features grid (dashboard) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Code block */
code, pre {
    background: rgba(15, 17, 23, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .header { padding: 0.75rem 1rem; }
    .hamburger-btn { display: flex; }
    .header-nav {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(15, 17, 23, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        z-index: 999;
        backdrop-filter: blur(12px);
    }
    .header-nav.mobile-open { display: flex; }
    .nav-links { flex-direction: column; align-items: center; gap: 0.8rem; }
    .nav-link { font-size: 1.1rem; padding: 0.7rem 1.5rem; }
    .auth-buttons {
        flex-direction: column;
        margin-left: 0; padding-left: 0;
        border-left: none; border-top: 1px solid rgba(74,144,226,0.2);
        padding-top: 1rem; gap: 0.8rem;
        align-items: center;
    }
    .page-content { padding: 1.5rem 1rem; }
    .feature-card { padding: 1.5rem 1.2rem; }
    .page-content h1 { font-size: 1.5rem; }
    .auth-form { margin: 1.5rem 1rem; padding: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
    .header { padding: 0.6rem 0.75rem; }
    .logo-icon { width: 36px; height: 36px; }
    .logo-text { font-size: 1.1rem; }
    .page-content { padding: 1rem 0.75rem; }
    .feature-card { padding: 1.2rem 1rem; }
    .page-content h1 { font-size: 1.3rem; }
    .auth-form { margin: 1rem 0.5rem; padding: 1.2rem; }
    .balance-display { font-size: 0.85rem; padding: 0.35rem 0.7rem; }
    .btn-auth { padding: 0.5rem 1rem; font-size: 0.85rem; }
}
