/* ============================================================
   OmadaCRM — Custom Styles
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-lg: 16px;
}

/* ---------- General ---------- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1f2937;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ---------- Navbar ---------- */
.bg-gradient-primary {
    background: var(--gradient) !important;
}
.navbar { padding: .6rem 0; }
.navbar .nav-link { font-weight: 500; }
.navbar .nav-link.active { font-weight: 700; }

/* ---------- Buttons ---------- */
.btn-gradient {
    background: var(--gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, .4);
    color: #fff;
}
.btn-gradient:active { transform: translateY(0); }

/* ---------- Hero Section ---------- */
.hero-section {
    background: var(--gradient);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}

/* ---------- Pricing Cards ---------- */
.pricing-card {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    transition: transform .3s, box-shadow .3s;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
    border-color: var(--primary);
}
.pricing-card.featured .badge-featured {
    position: absolute;
    top: 0; right: 0;
    background: var(--gradient);
    color: #fff;
    padding: 6px 22px;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 0 14px 0 14px;
}
.pricing-header {
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f9fafb;
}
.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}
.pricing-price small {
    font-size: .95rem;
    font-weight: 400;
    color: #6b7280;
}
.pricing-body {
    padding: 1.5rem 2rem;
}
.pricing-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pricing-body li {
    padding: .55rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: .95rem;
}
.pricing-body li:last-child { border-bottom: none; }
.pricing-body li i {
    color: #10b981;
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* ---------- WiFi / Package Cards ---------- */
.wifi-card {
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    transition: transform .2s, box-shadow .2s;
}
.wifi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ---------- Stat Cards ---------- */
.stat-card {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-sm);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---------- Feature Icons ---------- */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ---------- Auth Forms ---------- */
.auth-container { max-width: 480px; margin: 0 auto; }
.auth-card {
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-md);
    background: #fff;
}

/* ---------- Step Badges ---------- */
.step-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ---------- Table ---------- */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}
.table-modern th {
    background: #f9fafb;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    border-top: none;
}
.table-modern td { vertical-align: middle; }

/* ---------- Status Badges ---------- */
.badge-active   { background: #dcfce7; color: #166534; }
.badge-expired  { background: #fee2e2; color: #991b1b; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-paid     { background: #dbeafe; color: #1e40af; }
.badge-cancelled { background: #f3f4f6; color: #4b5563; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp .55s ease forwards;
}

/* ---------- Misc ---------- */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.divider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--gradient);
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .hero-section { padding: 3rem 0 2.5rem; }
    .pricing-price { font-size: 2rem; }
    .stat-card .fs-4 { font-size: 1.1rem !important; }
}

/* ---------- Policy / Content Pages ---------- */
.policy-content {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.8;
}
.policy-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: .75rem;
    color: #1f2937;
}
.policy-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}
.policy-content p,
.policy-content li {
    color: #4b5563;
    font-size: .95rem;
}
.policy-content ul,
.policy-content ol {
    padding-left: 1.25rem;
}
.policy-content .table {
    font-size: .9rem;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-button:not(.collapsed) {
    background: rgba(99,102,241,.06);
    color: var(--primary);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(99,102,241,.25);
}
