:root {
    --bg-main: #0a0f1d;
    --bg-surface: #111a2e;
    --bg-card: #162238;
    --bg-card-hover: #1c2c47;
    --border: #263854;
    --border-highlight: #3b82f6;
    
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.25);
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;

    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.site-header {
    background: rgba(17, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    line-height: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.auth-status-badge.unlocked {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.auth-status-badge.locked {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Hero Section */
.hero-section {
    padding: 50px 0 40px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: linear-gradient(135deg, #38bdf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Quick Unlock Card in Hero */
.unlock-box {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.unlock-box h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unlock-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.code-form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.code-input {
    flex: 1;
    background: #080c14;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.2s;
}
.code-input:focus { border-color: var(--primary); }

.unlock-hint-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.unlock-hint-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.unlock-hint-links a:hover { text-decoration: underline; }

/* Apps Section */
.apps-section {
    padding: 30px 0 60px;
    flex-grow: 1;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}
.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}
.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

/* App Card */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.app-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.app-banner-wrap {
    height: 180px;
    position: relative;
    background: #0d1527;
    overflow: hidden;
}

.app-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.app-card:hover .app-banner-img { transform: scale(1.04); }

.app-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.app-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.app-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.app-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.app-title-area h3 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.app-title-area .tagline {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.app-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-playstore {
    background: #1e2c45;
    border: 1px solid #2d4166;
    color: #e2e8f0;
}
.btn-playstore:hover {
    background: #2a3c5d;
    border-color: #3b82f6;
    color: #fff;
}

.btn-locked {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.btn-locked:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-white);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.site-footer {
    background: #090e1a;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.modal-header h3 { font-size: 1.35rem; font-weight: 800; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}
.modal-close:hover { color: #fff; }

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    background: #090e18;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 80px; }

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-title { font-size: 2.1rem; }
    .apps-grid { grid-template-columns: 1fr; }
    .code-form { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
}

