@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #050f09;
    --bg-light: #0a1910;
    --primary-gradient: var(--admin-gradient, linear-gradient(135deg, #0d381e 0%, #17b35d 100%));
    --text-main: #e8f5ed;
    --text-muted: #8ab39b;
    --glass-bg: rgba(13, 56, 30, 0.25);
    --glass-border: var(--glass-border);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

html, body { 
    overflow-x: hidden; 
    max-width: 100vw; 
    width: 100%; 
}

body {
    background-color: var(--bg-dark); color: var(--text-main);
    min-height: 100vh; position: relative;
    background-image: radial-gradient(circle at top right, var(--glass-bg), transparent 40%),
                      radial-gradient(circle at bottom left, var(--glass-border), transparent 40%);
}

/* LOADER CSS - PERFECTED ORBITAL RINGS */
#page-loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(5, 15, 9, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { display: flex; flex-direction: column; align-items: center; }
.loader-rings { position: relative; width: 120px; height: 120px; margin-bottom: 30px; }
.center-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; background-color: var(--admin-accent); border-radius: 50%; box-shadow: 0 0 20px var(--admin-accent); }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--admin-accent); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.outer-ring { width: 120px; height: 120px; animation: spinOrbit 4s linear infinite; }
.inner-ring { width: 80px; height: 80px; animation: spinOrbitReverse 2.5s linear infinite; }
.ring .dot { position: absolute; width: 10px; height: 10px; background-color: var(--admin-accent); border-radius: 50%; top: -5px; left: 50%; margin-left: -5px; box-shadow: 0 0 10px var(--admin-accent); }
.loader-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--admin-accent); margin-bottom: 10px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 0 20px var(--admin-accent); }
.loader-subtitle { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
@keyframes spinOrbit { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinOrbitReverse { 0% { transform: translate(-50%, -50%) rotate(360deg); } 100% { transform: translate(-50%, -50%) rotate(0deg); } }

/* NAVBAR CSS - EXACTLY LIKE Z TRUST BANK */
.navbar { position: fixed; top: 0; width: 100%; background: var(--bg-dark); border-bottom: 1px solid var(--glass-border); z-index: 1000; height: 80px; display: flex; align-items: center; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }
.nav-container { max-width: 1400px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; }
.nav-left { flex: 1; display: flex; align-items: center; }
.nav-logo { color: var(--text-main); font-size: 1.8rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: 1px; }
.nav-center { flex: 2; display: flex; justify-content: center; gap: 40px; }
.nav-center a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: color 0.3s; }
.nav-center a:hover { color: var(--admin-accent); }
.nav-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.nav-login { color: var(--admin-accent); text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: color 0.3s; }
.nav-login:hover { color: var(--text-main); }
.dark-mode-toggle { color: var(--text-muted); font-size: 1.2rem; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: var(--glass-bg); transition: all 0.3s; border: 1px solid var(--glass-border); }
.dark-mode-toggle:hover { color: var(--text-main); background: var(--glass-border); border-color: var(--admin-accent); }

/* Mobile Menu Styles */
.hamburger-menu { display: none; font-size: 1.8rem; color: var(--text-main); cursor: pointer; margin-left: 15px; }
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(5,15,9,0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 10000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; transform: translateY(-20px); }
body.light-mode .mobile-nav-overlay { background: rgba(255,255,255,0.95); }
.mobile-nav-overlay.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-close { position: absolute; top: 30px; right: 30px; font-size: 2.5rem; color: var(--text-main); cursor: pointer; transition: color 0.3s; }
.mobile-nav-close:hover { color: var(--admin-accent); }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 300px; }
.mobile-nav-links a { color: var(--text-main); text-decoration: none; font-size: 1.5rem; font-weight: 600; transition: color 0.3s; }
.mobile-nav-links a:hover { color: var(--admin-accent); }
.mobile-nav-btn { background: var(--admin-gradient); padding: 15px 30px; border-radius: 50px; margin-top: 10px; font-size: 1.2rem !important; }

/* GLOBALS AND COMPONENTS */
section { padding: 100px 20px; }
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(135deg, var(--admin-accent) 0%, var(--admin-accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; letter-spacing: -1px; text-shadow: none; }
.hero-image { margin-top: 50px; border-radius: 20px; box-shadow: 0 20px 50px var(--glass-border); border: 1px solid var(--glass-border); max-width: 100%; height: auto; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.stat-card { text-align: center; padding: 40px; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--admin-accent); margin-bottom: 10px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card { padding: 40px; text-align: left; }
.feature-icon { font-size: 2.5rem; color: var(--admin-accent); margin-bottom: 20px; }

.ticker-wrap { width: 100%; overflow: hidden; position: relative; background: var(--glass-bg); padding: 15px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); clip-path: inset(0); -webkit-clip-path: inset(0); }
.ticker-move { display: inline-flex; animation: ticker 15s linear infinite; white-space: nowrap; }
.ticker-item { padding: 0 40px; color: var(--text-main); font-weight: 600; flex-shrink: 0; }
.ticker-item span { color: var(--admin-accent); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

footer { background: #020804; padding: 50px 20px; text-align: center; border-top: 1px solid var(--glass-border); margin-top: 50px;}
footer a { color: var(--admin-accent); text-decoration: none; margin: 0 10px; }

.glass-panel { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; box-shadow: 0 25px 45px rgba(0,0,0,0.5); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.glass-panel:hover { transform: translateY(-5px); box-shadow: 0 30px 60px var(--glass-border); }

h2 { font-size: 2rem; margin-bottom: 20px; color: var(--text-main); }
p { color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 50px; background: var(--admin-gradient); color: #fff; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 20px var(--glass-border); }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 15px 30px var(--glass-border); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 50px; background: transparent; color: var(--text-main); text-decoration: none; font-weight: 600; border: 1px solid var(--admin-accent); cursor: pointer; transition: all 0.3s ease; }
.btn-secondary:hover { background: var(--glass-border); }

.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.form-control { width: 100%; padding: 15px 20px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-main); font-size: 1rem; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--admin-accent); box-shadow: 0 0 15px var(--glass-border); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Showcase flex containers */
.showcase-flex { display: flex; align-items: center; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
.multi-phone-flex { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }

.auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding-top: 80px; }
.auth-box { width: 100%; max-width: 450px; text-align: center; }
.auth-links { margin-top: 20px; display: flex; justify-content: space-between; font-size: 0.9rem; }
.auth-links a { color: var(--admin-accent); text-decoration: none; transition: color 0.3s; }
.auth-links a:hover { color: var(--text-main); }

.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Responsiveness Fixes */
@media (max-width: 992px) {
    .nav-center { display: none; }
    .nav-login, .nav-right .btn-primary { display: none; }
    .hamburger-menu { display: block; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .nav-auth { display: none; }
    .nav-right { justify-content: flex-end; }
    .hero h1 { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .features-grid { grid-template-columns: 1fr; gap: 15px; }
    .stat-card { padding: 20px; overflow: hidden; }
    .stat-number { font-size: 2rem !important; min-width: 0 !important; word-break: break-all; }
    .feature-card { padding: 20px; }
    .hero { padding-top: 80px; }
    section { padding: 60px 15px; }

    /* Showcase sections: stack vertically, kill inline min-widths */
    .showcase-text, .showcase-device { min-width: 0 !important; width: 100% !important; flex: none !important; }
    .showcase-text h2 { font-size: 2rem !important; }

    /* Hero CTA buttons */
    .hero .fade-in-up.delay-3 { display: flex; flex-direction: column; gap: 15px; align-items: center; }
    .hero .fade-in-up.delay-3 a { margin: 0 !important; width: 100%; max-width: 250px; text-align: center; }

    /* iPhone mockups: scale down to fit any screen */
    .iphone-mockup { width: 85vw !important; max-width: 280px !important; border-width: 10px !important; border-radius: 35px !important; margin: 0 auto !important; }
    .iphone-notch { width: 110px !important; height: 22px !important; }

    /* Glass panel: kill hover transform on mobile (causes overflow) */
    .glass-panel:hover { transform: none; }

    /* Ticker: hard clip */
    .ticker-wrap { clip-path: inset(0); -webkit-clip-path: inset(0); }

    /* Showcase flex: stack vertically on mobile with small gap */
    .showcase-flex { flex-direction: column; gap: 30px; }
    .multi-phone-flex { flex-direction: column; gap: 20px; align-items: center; }
    .multi-phone-flex .showcase-device { max-width: 280px !important; width: 100% !important; transform: none !important; }
}


/* Feature Modal Styles */
.feature-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(5, 15, 9, 0.85); backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; z-index: 99999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.feature-modal:not(.hidden) { opacity: 1; visibility: visible; }
.feature-modal-content { width: 90%; max-width: 600px; padding: 50px; position: relative; transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-align: center; }
.feature-modal:not(.hidden) .feature-modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 15px; right: 25px; font-size: 2.5rem; color: var(--text-muted); cursor: pointer; transition: color 0.3s; line-height: 1; }
.close-modal:hover { color: var(--admin-accent); }
.feature-card { cursor: pointer; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--admin-accent); box-shadow: 0 15px 40px var(--glass-border); }


/* iPhone Mockup Styles */
.iphone-mockup { width: 300px; height: auto; border: 14px solid #111; border-radius: 45px; position: relative; box-shadow: 0 30px 60px var(--glass-border), inset 0 0 0 2px #333; background: #050f09; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.iphone-mockup:hover { transform: translateY(-15px) rotate(-2deg); }
.iphone-notch { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 140px; height: 28px; background: #111; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; z-index: 10; }
.iphone-display { width: 100%; height: auto; display: block; object-fit: contain; object-position: top center; border-radius: 30px; }


