/* /assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', calibri, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

/* Header */
.header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
}

.header a {
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-primary {
    background: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Dashboard */
.dashboard {
    padding: 40px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.referral-code {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2ecc71;
    padding: 10px;
    background: #f0fff4;
    border-radius: 5px;
    display: inline-block;
}

.referral-link {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    word-break: break-all;
}

.copy-btn {
    padding: 5px 15px;
    font-size: 14px;
}

.referral-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.referral-count-item {
    background: #e8f4fd;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.referral-count-item .level {
    font-weight: bold;
    color: #3498db;
}

.referral-count-item .count {
    font-size: 1.5rem;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* Admin Panel Specific Styling */
.admin-header {
    background: #c0392b !important; /* Deep Red for Admin */
}
.admin-header h1 {
    color: white !important;
}
.admin-header a {
    color: white !important;
}
.admin-header a:hover {
    background: rgba(255,255,255,0.2) !important;
}
.stat-card {
    border-left: 4px solid #3498db; /* Adds a colored bar to stats */
}
/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', calibri;
    color: #1a1a2e;
    line-height: 1.6;
    background: #f8fafc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* =========================================
   HEADER & NAVIGATION
========================================= */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: #e67e22;
}

.logo h1 {
    font-family: 'calibri', arial;
    font-size: 1.5rem;
    color: #1a1a2e;
    line-height: 1.2;
}

.logo span {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #e67e22;
    font-weight: 600;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e67e22;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e67e22;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: #e67e22;
    color: white !important;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e67e22;
    color: #e67e22;
}

.btn-outline:hover {
    background: #e67e22;
    color: white !important;
}

.btn-light {
    background: white;
    color: #1a1a2e;
}

.btn-light:hover {
    background: #f8f9fa;
}

.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; text-align: center; }

/* =========================================
   FORMS & ALERTS (Legacy Support)
========================================= */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #333; }
.form-group input, .form-group select {
    width: 100%; padding: 12px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 16px; transition: 0.3s;
}
.form-group input:focus { border-color: #e67e22; outline: none; box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1); }

.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* =========================================
   DASHBOARD & CARDS
========================================= */
.dashboard-card h3 { color: #1a1a2e; margin-bottom: 15px; font-family: 'calibri', arial; }
.referral-code { font-size: 1.2rem; font-weight: bold; color: #e67e22; padding: 10px; background: #fff8f0; border-radius: 5px; display: inline-block; border: 1px dashed #e67e22; }
.referral-link { background: #f8f9fa; padding: 10px; border-radius: 5px; margin: 10px 0; word-break: break-all; font-size: 0.9rem; }
.referral-counts { display: flex; flex-wrap: wrap; gap: 10px; }
.referral-count-item { background: #e8f4fd; padding: 10px 15px; border-radius: 5px; text-align: center; flex: 1; min-width: 80px; }
.referral-count-item .level { font-weight: bold; color: #3498db; }
.referral-count-item .count { font-size: 1.5rem; color: #1a1a2e; }
.status-badge { padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; display: inline-block; }
.status-badge.available { background: #d4edda; color: #155724; }
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.reversed { background: #f8d7da; color: #721c24; }
.status-badge.completed { background: #d4edda; color: #155724; }
.status-badge.cancelled { background: #f8d7da; color: #721c24; }

/* =========================================
   HERO SECTION
========================================= */
.hero {
    background: linear-gradient(135deg, #fdf6f0 0%, #fff8f3 100%);
    padding: 60px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #e67e22;
    border: 1px solid #f0d5b8;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'calibri', arial;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.hero h1 .highlight {
    color: #e67e22;
}

.hero-text {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    color: #e67e22;
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0d6cc;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-label {
    font-size: 0.85rem;
    color: #777;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.overlay-item {
    background: rgba(255,255,255,0.95);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.overlay-item i {
    color: #2ecc71;
}

.floating-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   SECTIONS COMMON
========================================= */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-title {
    font-family: 'calibri', serif;
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 1.05rem;
}

/* =========================================
   HOW IT WORKS
========================================= */
.how-it-works {
    padding: 80px 0;
    background: #fff;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: #f8fafc;
    transition: 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e67e22;
    opacity: 0.2;
    margin-bottom: 10px;
}

.step-icon {
    font-size: 2.5rem;
    color: #e67e22;
    margin-bottom: 15px;
}

.step h3 {
    font-family: 'calibri', serif;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.step p {
    color: #666;
    font-size: 0.95rem;
}

/* =========================================
   MENU
========================================= */
.menu-section {
    padding: 80px 0;
    background: #f8fafc;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.menu-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.menu-image {
    position: relative;
    height: 200px;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2ecc71;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.menu-badge.popular {
    background: #e67e22;
}

.menu-content {
    padding: 24px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.menu-header h3 {
    font-family: 'calibri', serif;
    color: #1a1a2e;
}

.menu-header .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e67e22;
}

.menu-content ul {
    margin-bottom: 15px;
}

.menu-content ul li {
    padding: 4px 0;
    color: #555;
    font-size: 0.9rem;
}

.menu-content ul li i {
    color: #2ecc71;
    margin-right: 8px;
    font-size: 0.8rem;
}

.menu-btn-container {
    text-align: center;
    margin-top: 40px;
}

/* =========================================
   SUBSCRIPTIONS
========================================= */
.subscriptions {
    padding: 80px 0;
    background: #fff;
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pricing-card.popular {
    border-color: #e67e22;
    background: #fff;
    position: relative;
}

.pricing-card.popular .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #e67e22;
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pricing-header h3 {
    font-family: 'calibri', serif;
    color: #1a1a2e;
}

.plan-icon {
    color: #e67e22;
    font-size: 1.2rem;
}

.meals {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.per-meal {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.plan-features {
    text-align: left;
    margin-bottom: 25px;
}

.plan-features li {
    padding: 6px 0;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li i {
    color: #2ecc71;
}

.pricing-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pricing-features span {
    color: #555;
    font-size: 0.9rem;
}

.pricing-features i {
    color: #e67e22;
    margin-right: 6px;
}

/* =========================================
   WHY SWAADAM
========================================= */
.why-swaadam {
    padding: 80px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: #e67e22;
}

.feature-box h4 {
    font-family: 'calibri', serif;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.feature-box p {
    color: #666;
    font-size: 0.9rem;
}

/* =========================================
   TESTIMONIALS
========================================= */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
}

.testimonial-stars {
    color: #f1c40f;
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    background: #e67e22;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.author strong {
    display: block;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.author span {
    color: #777;
    font-size: 0.8rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.control-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: 0.3s;
}

.control-btn:hover {
    background: #e67e22;
    color: white;
    border-color: #e67e22;
}

/* =========================================
   CTA BAR
========================================= */
.cta-bar {
    background: #1a1a2e;
    padding: 50px 0;
}

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

.cta-badge {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-content h3 {
    color: white;
    font-family: 'calibri', serif;
    font-size: 1.8rem;
}

.cta-content p {
    color: #aaa;
    margin-top: 5px;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: #0f0f1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 1.8rem;
    color: #e67e22;
}

.footer-logo h2 {
    font-family: 'calibri', serif;
    color: white;
    font-size: 1.5rem;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #e67e22;
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-family: 'calibri', serif;
    margin-bottom: 15px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #888;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #e67e22;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #888;
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
    color: #e67e22;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 100%; margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-features { align-items: center; }
    .hero-stats { justify-content: center; }
    .hero-image-wrapper { max-width: 500px; margin: 0 auto; }
    .floating-badge { right: 0; top: -10px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .steps-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; }
    .nav-links { display: none; flex-direction: column; width: 100%; gap: 15px; padding: 20px 0; }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .steps-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .pricing-container { grid-template-columns: 1fr; }
    .cta-container { flex-direction: column; text-align: center; }
}