/* ===== রুট ভেরিয়েবল ===== */
:root {
    --primary: #0a3d2e;
    --primary-light: #1a5a44;
    --secondary: #d4a017;
    --secondary-light: #f0d080;
    --accent: #2b6e4a;
    --bg: #f5f2eb;
    --card: #ffffff;
    --text: #1e2a2f;
    --text-light: #6b7a6f;
    --shadow: 0 20px 60px rgba(10,61,46,0.12);
    --shadow-hover: 0 30px 70px rgba(10,61,46,0.18);
    --radius: 16px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans Bengali', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ===== বাটন ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(10,61,46,0.25);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(10,61,46,0.35);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
}
.btn-secondary:hover { background: var(--secondary-light); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.btn-danger {
    background: #c0392b;
    color: #fff;
}
.btn-danger:hover { background: #e74c3c; }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== টপবার ===== */
.topbar {
    background: var(--primary);
    color: #fff;
    padding: 12px 0;
    border-bottom: 4px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
}
.logo i { color: var(--secondary); font-size: 2rem; }
.logo span { color: var(--secondary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    border-bottom-color: var(--secondary);
}
.nav-links .btn { padding: 8px 24px; }

/* ===== হিরো ===== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,168,71,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--secondary); }
.hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-badge {
    display: inline-block;
    background: rgba(212,168,71,0.2);
    border: 1px solid rgba(212,168,71,0.3);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image .card-glass {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
}
.hero-image .card-glass i {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 16px;
}
.hero-image .card-glass h3 { font-size: 1.4rem; margin-bottom: 8px; }
.hero-image .card-glass p { opacity: 0.7; font-size: 0.95rem; }

/* ===== সেকশন ===== */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
}
.section-title h2 span { color: var(--secondary); }
.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* ===== ফিচার ===== */
.features-modern {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f5f2eb 0%, #ffffff 100%);
}
.feature-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-card-modern {
    background: var(--card);
    border-radius: 20px;
    padding: 40px 28px 32px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(10,61,46,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212,160,23,0.08);
}
.feature-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}
.feature-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    z-index: 1;
}
.feature-icon i {
    font-size: 3.2rem;
    color: var(--secondary);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}
.feature-card-modern:hover .feature-icon i {
    transform: scale(1.15) rotate(-5deg);
    color: var(--primary);
}
.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(212,160,23,0.10);
    border-radius: 50%;
    z-index: 0;
    transition: var(--transition);
}
.feature-card-modern:hover .icon-bg {
    width: 100px;
    height: 100px;
    background: rgba(212,160,23,0.18);
}
.feature-card-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.feature-card-modern p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}
.feature-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: width 0.5s ease;
    border-radius: 0 4px 0 0;
}
.feature-card-modern:hover .feature-hover-line { width: 100%; }

.feature-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 2px solid rgba(212,160,23,0.15);
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1.1;
}
.stat-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

/* ===== সদস্যপদ ===== */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.membership-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}
.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.membership-card.featured { border: 2px solid var(--secondary); }
.membership-card.featured::before {
    content: 'জনপ্রিয়';
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--secondary);
    color: var(--primary);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.membership-card .icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 16px;
}
.membership-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.membership-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0;
}
.membership-card .price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}
.membership-card ul {
    text-align: left;
    margin: 20px 0 28px;
}
.membership-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}
.membership-card ul li i {
    color: var(--secondary);
    width: 20px;
}

/* ===== ফর্ম ===== */
.form-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 50px 48px;
    box-shadow: var(--shadow);
    max-width: 680px;
    margin: 0 auto;
}
.form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.form-card .sub {
    color: var(--text-light);
    margin-bottom: 30px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.form-group label .required { color: #c0392b; }
.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0ded9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fafcf9;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(43,110,74,0.1);
}
.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-otp {
    display: flex;
    gap: 12px;
}
.form-otp input { flex: 1; }
.form-otp .btn { flex-shrink: 0; }

/* ===== ড্যাশবোর্ড ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}
.dashboard-sidebar {
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}
.dashboard-sidebar .avatar { text-align: center; margin-bottom: 24px; }
.dashboard-sidebar .avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(212,160,23,0.25);
}
.dashboard-sidebar .avatar h4 { margin-top: 12px; }
.dashboard-sidebar .avatar p { color: var(--text-light); font-size: 0.85rem; }
.dashboard-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active {
    background: rgba(43,110,74,0.06);
    color: var(--primary);
    border-left-color: var(--secondary);
}
.dashboard-sidebar nav a i { width: 22px; }
.dashboard-main {
    background: var(--card);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.dashboard-main .welcome { margin-bottom: 30px; }
.dashboard-main .welcome h2 { font-size: 1.6rem; }
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.stats-row .stat {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.stats-row .stat h4 { font-size: 1.8rem; color: var(--primary); }
.stats-row .stat p { font-size: 0.85rem; color: var(--text-light); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table th {
    text-align: left;
    padding: 14px 12px;
    background: var(--bg);
    font-weight: 700;
    border-bottom: 2px solid #e0ded9;
}
table td { padding: 14px 12px; border-bottom: 1px solid #e0ded9; }
.status-badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-badge.pending { background: #fef3c7; color: #b45309; }
.status-badge.approved { background: #d1fae5; color: #065f46; }
.status-badge.rejected { background: #fee2e2; color: #991b1b; }
.profile-info { display: grid; gap: 12px; max-width: 400px; margin-top: 16px; }
.profile-info div { padding: 8px 0; border-bottom: 1px solid #e0ded9; }

/* ===== মোডাল ===== */
.modal-box {
    background: #fff;
    max-width: 480px;
    width: 90%;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.payment-methods .method {
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.payment-methods .method:hover,
.payment-methods .method.selected {
    border-color: var(--secondary);
    background: rgba(212,168,71,0.06);
}
.payment-methods .method i { font-size: 2rem; color: var(--primary); margin-bottom: 6px; }
.payment-methods .method p { font-weight: 700; font-size: 0.85rem; }
.notification-item {
    background: var(--bg);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}
.notification-item.unread {
    background: #fef3c7;
    border-left-color: #d4a017;
}
.notification-item:hover { transform: translateX(4px); }

/* ===== রেসপনসিভ ===== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .feature-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 768px) {
    .feature-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .feature-card-modern { padding: 30px 20px 24px; }
    .feature-icon i { font-size: 2.6rem; }
    .feature-stats { gap: 30px; }
    .stat-number { font-size: 2.2rem; }
    .hero h1 { font-size: 2.4rem; }
    .form-card { padding: 30px 20px; }
    .dashboard-sidebar .avatar img { width: 100px; height: 100px; }
}
@media (max-width: 480px) {
    .topbar .container { flex-direction: column; align-items: stretch; }
    .nav-links { justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .feature-grid-modern { grid-template-columns: 1fr 1fr; gap: 16px; }
    .feature-card-modern h3 { font-size: 1.1rem; }
    .feature-card-modern p { font-size: 0.85rem; }
    .membership-grid { grid-template-columns: 1fr; }
}