/* DotCity Wi-Fi Portal — Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-darker: #5b21b6;
    --primary-light: #ede9fe;
    --primary-lighter: #f5f3ff;
    --secondary: #111827;
    --accent: #a855f7;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --text-dark: #1f2937;
    --text-mid: #4b5563;
    --text-light: #9ca3af;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --radius: 0.75rem;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --bottom-nav-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    padding-bottom: var(--bottom-nav-height);
    min-height: 100vh;
}

/* TOP HEADER */
.top-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.top-header .inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.3rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; letter-spacing: -0.5px; }
.desktop-nav { display: flex; align-items: center; gap: 1.25rem; }
.desktop-nav a { font-size: 0.875rem; font-weight: 500; color: var(--text-mid); text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
@media(max-width:640px){ .desktop-nav { display: none; } }
.header-actions { display: flex; gap: 0.6rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; text-decoration: none; border: none; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker)); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-lighter); }
.btn-success { background: linear-gradient(135deg, #059669, #047857); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.w-full { width: 100%; justify-content: center; }

/* HERO / CAPTIVE PORTAL BANNER */
.portal-hero { background: linear-gradient(135deg, var(--secondary) 0%, #1f1048 50%, var(--primary-dark) 100%); color: var(--white); padding: 3rem 1.25rem 2.5rem; text-align: center; position: relative; overflow: hidden; }
.portal-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E"); }
.portal-hero .inner { position: relative; max-width: 700px; margin: 0 auto; }
.portal-hero .signal-icon { font-size: 3rem; margin-bottom: 1rem; }
.portal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; }
.portal-hero h1 span { color: #c4b5fd; }
.portal-hero p { color: #d1d5db; font-size: 1rem; max-width: 500px; margin: 0 auto 1.75rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* SECTIONS */
.section { padding: 3rem 1.25rem; }
.section-alt { background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label { font-size: 0.78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--secondary); margin-bottom: 0.6rem; }
.section-header p { color: var(--text-mid); max-width: 520px; margin: 0 auto; line-height: 1.7; font-size: 0.95rem; }

/* AUTH CARD */
.auth-wrap { min-height: calc(100vh - 60px - var(--bottom-nav-height)); display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: linear-gradient(135deg, var(--secondary), #1f1048); }
.auth-card { background: var(--white); border-radius: 1.25rem; padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-card .auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-card .auth-logo .logo { font-size: 1.5rem; }
.auth-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.4rem; }
.auth-card .auth-sub { color: var(--text-mid); font-size: 0.875rem; margin-bottom: 1.75rem; }

/* FORMS */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem; }
.form-control { width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; transition: border 0.2s; background: var(--white); color: var(--text-dark); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 2.5rem; }
.input-icon-wrap .input-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.9rem; }
.form-help { font-size: 0.78rem; color: var(--text-light); margin-top: 0.3rem; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; transition: all 0.25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--primary-lighter); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.2rem; color: var(--primary); }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.4rem; }
.card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; }

/* PACKAGES */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.package-card { background: var(--white); border-radius: 1rem; border: 2px solid var(--border); padding: 1.75rem 1.5rem; text-align: center; transition: all 0.25s; position: relative; cursor: pointer; }
.package-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(124,58,237,0.15); }
.package-card.featured { border-color: var(--primary); background: linear-gradient(135deg, var(--primary-lighter), var(--white)); }
.package-card .popular-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 1rem; border-radius: 0 0 var(--radius) var(--radius); letter-spacing: 0.5px; text-transform: uppercase; }
.package-card .pkg-duration { font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.package-card .pkg-price { font-size: 2.25rem; font-weight: 800; color: var(--secondary); line-height: 1; margin-bottom: 0.25rem; }
.package-card .pkg-speed { font-size: 0.82rem; color: var(--text-mid); margin-bottom: 1.25rem; }
.package-card ul { list-style: none; text-align: left; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.package-card ul li { font-size: 0.83rem; color: var(--text-mid); display: flex; align-items: center; gap: 0.4rem; }
.package-card ul li i { color: var(--success); font-size: 0.75rem; }

/* DASHBOARD */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem; }
@media(max-width:768px){ .dashboard-layout { grid-template-columns: 1fr; } }
.sidebar { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; height: fit-content; }
.sidebar .user-info { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.sidebar .avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: white; margin: 0 auto 0.6rem; }
.sidebar .user-name { font-weight: 700; font-size: 0.95rem; }
.sidebar .user-email { font-size: 0.78rem; color: var(--text-light); }
.sidebar-nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.75rem; border-radius: 0.5rem; text-decoration: none; color: var(--text-mid); font-size: 0.875rem; font-weight: 500; transition: all 0.2s; margin-bottom: 0.15rem; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-lighter); color: var(--primary); }
.sidebar-nav a i { width: 18px; text-align: center; }
.main-content { display: flex; flex-direction: column; gap: 1.5rem; }
.content-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; }
.content-card .card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; }

/* STATUS BADGES */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.65rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-expired { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-purple { background: var(--primary-lighter); color: var(--primary); }

/* PROGRESS BAR */
.progress-bar { background: var(--border); border-radius: 100px; height: 10px; overflow: hidden; margin: 0.5rem 0; }
.progress-fill { background: linear-gradient(90deg, var(--primary), var(--accent)); height: 100%; border-radius: 100px; transition: width 0.5s ease; }

/* ALERTS */
.alert { padding: 0.85rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 0.65rem 0.75rem; font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); }
.data-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--secondary), #1f1048); color: var(--white); padding: 2.25rem 1.25rem 1.75rem; }
.page-header .inner { max-width: 1100px; margin: 0 auto; }
.page-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.4rem; }
.page-header p { color: #d1d5db; font-size: 0.9rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.78rem; color: #9ca3af; margin-bottom: 0.6rem; }
.breadcrumb a { color: #c4b5fd; text-decoration: none; }

/* FOOTER */
.main-footer { background: var(--secondary); color: #9ca3af; padding: 2.5rem 1.25rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media(max-width:640px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 0.6rem; display: block; }
.footer-brand p { font-size: 0.83rem; color: #6b7280; line-height: 1.7; }
.footer-col h4 { font-weight: 700; color: var(--white); margin-bottom: 0.8rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #6b7280; text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #c4b5fd; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.25rem; font-size: 0.78rem; color: #4b5563; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); height: var(--bottom-nav-height); display: flex; align-items: center; z-index: 200; box-shadow: 0 -4px 12px rgba(0,0,0,0.08); }
.bottom-nav .nav-items { display: flex; width: 100%; justify-content: space-around; align-items: center; padding: 0 0.25rem; }
.bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.4rem 0.5rem; border-radius: 0.5rem; text-decoration: none; color: var(--text-light); font-size: 0.68rem; font-weight: 500; transition: all 0.2s; flex: 1; max-width: 80px; }
.bottom-nav .nav-item i { font-size: 1.2rem; }
.bottom-nav .nav-item:hover, .bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .nav-item.active i { transform: scale(1.1); }

/* SUBSIDIARIES */
.subs-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; }
.sub-chip { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; text-decoration: none; color: var(--text-dark); display: flex; align-items: center; gap: 0.65rem; transition: all 0.2s; font-size: 0.85rem; }
.sub-chip:hover { border-color: var(--primary); color: var(--primary); }
.sub-chip.active { border-color: var(--primary); background: var(--primary-lighter); color: var(--primary); }
.sub-chip .sub-emoji { font-size: 1.25rem; }
.sub-chip .sub-info .name { font-weight: 700; font-size: 0.85rem; }
.sub-chip .sub-info .url { font-size: 0.7rem; color: var(--text-light); }

/* OTP / Terms */
.terms-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; max-height: 260px; overflow-y: auto; font-size: 0.83rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1rem; }

/* UTILS */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.d-flex{display:flex}.align-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.5rem}.gap-2{gap:1rem}
@media(max-width:640px){ .section{padding:2rem 1rem;} }
