/* ===== CSS Variables ===== */
:root {
    --primary: #0a66c2;
    --secondary: #0560a9;
    --light: #f3f2ef;
    --dark: #1d2226;
    --success: #0a8a3c;
    --warning: #e7a33e;
    --danger: #d11124;
    --gray: #86888a;
    --border: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header & Navigation FIXES ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo i {
    color: var(--primary);
    font-size: 28px;
}

.logo h1 {
    font-size: 22px;
    color: var(--primary);
}

/* FIXED NAVIGATION MENU */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 5px;
    position: relative;
    white-space: nowrap;
    /* CRITICAL: Ensure links are always clickable */
    pointer-events: auto !important;
    cursor: pointer;
    z-index: 10;
}

nav a:hover {
    color: var(--primary);
    background: rgba(10, 102, 194, 0.1);
}

nav a.active {
    color: var(--primary);
    background: rgba(10, 102, 194, 0.1);
    /* CRITICAL: Active links must remain clickable */
    pointer-events: auto !important;
    cursor: pointer;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: var(--primary);
    /* CRITICAL: Prevent pseudo-element from blocking clicks */
    pointer-events: none;
    z-index: -1;
}

/* Ensure all navigation states are clickable */
nav a:focus,
nav a:active,
nav a:visited {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Fix for any potential overlay issues */
nav li {
    position: relative;
}

nav li::before,
nav li::after {
    pointer-events: none;
}

.admin-dashboard .admin-badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.admin-dashboard nav ul {
    gap: 20px;
}

.admin-dashboard nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    /* Double ensure admin nav links are clickable */
    pointer-events: auto !important;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.admin-info {
    text-align: right;
    margin-right: 15px;
}

.admin-info span {
    display: block;
}

#admin-name {
    font-weight: 600;
    color: var(--dark);
}

.admin-role {
    font-size: 12px;
    color: var(--gray);
}

/* ===== Button Styles ===== */
.btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    /* Ensure buttons are always clickable */
    pointer-events: auto !important;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(10, 102, 194, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(10, 102, 194, 0.1);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    padding: 12px;
}

/* ===== Main Content & Layout ===== */
main {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary), #004182);
    color: white;
    padding: 60px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 102, 194, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    color: var(--primary);
    font-size: 24px;
}

/* ===== Card Styles ===== */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 24px;
    color: var(--dark);
}

.card-header h3 {
    font-size: 20px;
    color: var(--dark);
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 15px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.input-with-icon .form-control {
    padding-left: 45px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    pointer-events: auto !important;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    pointer-events: auto !important;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ===== Table Styles ===== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.no-data {
    text-align: center;
    color: var(--gray);
}

.activity-table th,
.pending-accounts-table th,
.referrals-table th,
.bonus-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.activity-table td,
.pending-accounts-table td,
.referrals-table td,
.bonus-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.bonus-table {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.bonus-table th {
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.bonus-table td {
    text-align: center;
}

.highlight-row {
    background-color: rgba(10, 102, 194, 0.05);
    font-weight: 600;
}

.highlight-row td {
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active {
    background-color: rgba(10, 138, 60, 0.1);
    color: var(--success);
}

.status-pending {
    background-color: rgba(231, 163, 62, 0.1);
    color: var(--warning);
}

.status-restricted {
    background-color: rgba(209, 17, 36, 0.1);
    color: var(--danger);
}

.status-completed {
    background-color: rgba(10, 102, 194, 0.1);
    color: var(--primary);
}

/* ===== Stats & Dashboard ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stats-grid .stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 25px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.primary { background: rgba(10, 102, 194, 0.1); color: var(--primary); }
.stat-icon.success { background: rgba(10, 138, 60, 0.1); color: var(--success); }
.stat-icon.warning { background: rgba(231, 163, 62, 0.1); color: var(--warning); }
.stat-icon.danger { background: rgba(209, 17, 36, 0.1); color: var(--danger); }
.stat-icon.info { background: rgba(134, 136, 138, 0.1); color: var(--gray); }
.stat-icon.secondary { background: rgba(5, 96, 169, 0.1); color: var(--secondary); }

.stat-content {
    flex: 1;
}

.stat-change {
    font-size: 12px;
    margin-top: 5px;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.full-width {
    grid-column: 1 / -1;
}

/* ===== Countdown Timer ===== */
.countdown-timer {
    background: var(--dark);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.timer-item {
    text-align: center;
}

.timer-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.timer-label {
    font-size: 12px;
    opacity: 0.8;
}

/* ===== Referral Page Styles ===== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: var(--gray);
}

.referral-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-card.highlight {
    background: linear-gradient(135deg, var(--primary), #004182);
    color: white;
}

.stat-main {
    margin-bottom: 15px;
}

.stats-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card.highlight .stat-value {
    color: white;
}

.stats-card .stat-label {
    color: var(--gray);
    font-size: 14px;
}

.stats-card.highlight .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stat-secondary {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item .label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.stat-item .value {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

.stats-card.highlight .stat-item .label {
    color: rgba(255, 255, 255, 0.8);
}

.stats-card.highlight .stat-item .value {
    color: white;
}

.referral-code-section {
    text-align: center;
    padding: 20px 0;
}

.code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#referral-code {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(10, 102, 194, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.code-instructions {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.share-options {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    margin-top: 25px;
}

.share-options h3 {
    margin-bottom: 15px;
    text-align: center;
    color: var(--dark);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    pointer-events: auto !important;
    cursor: pointer;
}

.bonus-structure {
    margin-top: 20px;
}

.terms-note {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.terms-note h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.terms-note ul {
    padding-left: 20px;
}

.terms-note li {
    margin-bottom: 8px;
    color: var(--gray);
    line-height: 1.5;
}

.filter-options select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-info {
    font-weight: 600;
    color: var(--dark);
}

.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 18px;
}

.step-content h3 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 18px;
}

.step-content p {
    color: var(--gray);
    line-height: 1.5;
}

/* FAQ Section Styles */
.faq-section {
    margin: 2rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #6b7280;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust based on your content */
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Remove any conflicting styles */
.faq-item .faq-answer {
    display: block !important; /* Override any display: none */
}

/* Animation for smooth opening/closing */
.faq-answer {
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.faq-item:not(.active) .faq-answer {
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

/* ===== Terms Page Styles ===== */
.last-updated {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

.terms-nav {
    position: sticky;
    top: 80px;
    z-index: 90;
    margin-bottom: 30px;
}

.nav-sticky {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.nav-sticky h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 16px;
}

.nav-sticky ul {
    list-style: none;
}

.nav-sticky li {
    margin-bottom: 8px;
}

.nav-sticky a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
    display: block;
    padding: 5px 0;
    /* Ensure terms nav links are clickable */
    pointer-events: auto !important;
    cursor: pointer;
}

.nav-sticky a:hover,
.nav-sticky a.active {
    color: var(--primary);
}

.terms-content {
    display: grid;
    gap: 30px;
}

.terms-section {
    line-height: 1.7;
}

.intro-text {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.requirement-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.req-icon {
    width: 50px;
    height: 50px;
    background: rgba(10, 102, 194, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.req-icon i {
    color: var(--primary);
    font-size: 20px;
}

.req-content h4 {
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 16px;
}

.req-content p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

.terms-list {
    margin: 25px 0;
}

.terms-list h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

.terms-list ul {
    padding-left: 20px;
}

.terms-list li {
    margin-bottom: 10px;
    color: var(--gray);
    line-height: 1.6;
}

.payment-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.payment-tier {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.payment-tier:hover {
    transform: translateY(-2px);
}

.tier-header {
    padding: 20px;
    text-align: center;
    color: white;
}

.tier-header.success {
    background: linear-gradient(135deg, var(--success), #0a6e32);
}

.tier-header.warning {
    background: linear-gradient(135deg, var(--warning), #d18d1a);
}

.tier-header.primary {
    background: linear-gradient(135deg, var(--primary), #004182);
}

.tier-header h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.amount {
    font-size: 28px;
    font-weight: 700;
}

.tier-conditions {
    padding: 20px;
    background: white;
}

.tier-conditions p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 14px;
}

.tier-conditions p:last-child {
    margin-bottom: 0;
}

.tier-conditions i {
    font-size: 16px;
}

.responsibilities-list {
    display: grid;
    gap: 20px;
    margin: 25px 0;
}

.responsibility-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.resp-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 20px;
}

.resp-icon.danger {
    background-color: var(--danger);
}

.resp-icon.warning {
    background-color: var(--warning);
}

.resp-icon.primary {
    background-color: var(--primary);
}

.resp-icon.success {
    background-color: var(--success);
}

.resp-content h4 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 16px;
}

.resp-content p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

.restriction-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.flow-step {
    text-align: center;
    padding: 20px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.warning-header i {
    color: #856404;
    font-size: 20px;
}

.warning-header h4 {
    margin: 0;
    color: #856404;
}

.warning-box p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

.privacy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.privacy-item h4 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 16px;
}

.privacy-item ul {
    padding-left: 20px;
}

.privacy-item li {
    margin-bottom: 8px;
    color: var(--gray);
}

.violation-list {
    display: grid;
    gap: 20px;
    margin: 25px 0;
}

.violation-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
}

.violation-item.critical {
    background: #f8d7da;
    border-left: 4px solid var(--danger);
}

.violation-item.warning {
    background: #fff3cd;
    border-left: 4px solid var(--warning);
}

.violation-icon {
    flex-shrink: 0;
    font-size: 24px;
}

.violation-item.critical .violation-icon {
    color: var(--danger);
}

.violation-item.warning .violation-icon {
    color: var(--warning);
}

.violation-content h4 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 16px;
}

.violation-content ul {
    padding-left: 20px;
    margin: 0;
}

.violation-content li {
    margin-bottom: 5px;
    color: var(--gray);
}

.appeal-process {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.appeal-process h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.appeal-process p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

.assistance-program {
    margin: 20px 0;
}

.assistance-options {
    margin: 25px 0;
}

.assistance-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.assistance-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.assistance-checkbox label {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.assistance-item p {
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.acceptance-section {
    margin-top: 40px;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.agreement-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.agreement-checkbox label {
    font-size: 16px;
    color: var(--dark);
    line-height: 1.5;
    margin: 0;
}

.agreement-note {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 25px;
    padding-left: 35px;
}

.agreement-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== Admin Dashboard Styles ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin: 0;
    color: var(--dark);
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.time-filter select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: white;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    /* Ensure action buttons are clickable */
    pointer-events: auto !important;
}

.action-btn:hover {
    border-color: var(--primary);
    background: rgba(10, 102, 194, 0.05);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 24px;
    color: var(--primary);
}

.action-btn span {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-item.online .status-indicator { background: var(--success); }
.status-item.warning .status-indicator { background: var(--warning); }
.status-item.offline .status-indicator { background: var(--danger); }

.status-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--dark);
}

.status-content p {
    margin: 0;
    font-size: 12px;
    color: var(--gray);
}

/* ===== Admin Login Styles ===== */
.admin-login-page {
    background: linear-gradient(135deg, var(--primary), #004182);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    max-width: 1000px;
    width: 100%;
    align-items: center;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.login-header h2 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 24px;
}

.login-header p {
    color: var(--gray);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-footer p {
    color: var(--gray);
    margin: 0;
}

.security-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.security-notice i {
    color: #ffc107;
    margin-right: 8px;
}

.security-notice span {
    color: #856404;
    font-weight: 600;
    font-size: 14px;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo i {
    color: white;
    font-size: 24px;
}

.footer-logo h3 {
    color: white;
    font-size: 20px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
    /* Ensure footer links are clickable */
    pointer-events: auto !important;
    cursor: pointer;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== Modal System ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.large {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

/* Form Group Styles for Modals */
.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.modal-body .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-body .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

/* ===== ADMIN DASHBOARD ENHANCEMENTS ===== */

/* Fix for dashboard grid layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-grid .card {
    margin-bottom: 0;
}

/* Payment Settings Form Fixes */
.settings-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.settings-form .form-group label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.settings-form .form-control {
    margin-bottom: 10px;
}

/* Agent Info Styles */
.agent-info {
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.info-item span {
    color: #111827;
    font-size: 1rem;
}

/* Agent Stats Grid */
.agent-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.agent-stats-grid .stat-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.agent-stats-grid .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.agent-stats-grid .stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Section Header */
.section-header {
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1.125rem;
}

/* Payment Settings Specific Styles */
.payment-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.payment-setting-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.payment-setting-card h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1rem;
}

.setting-control {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.setting-control .form-group {
    flex: 1;
    margin-bottom: 0;
}

.setting-control .form-control {
    margin-bottom: 0;
}

/* Enhanced Table Styles */
.agents-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.agents-table th,
.agents-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.agents-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
}

.agents-table tr:hover {
    background-color: #f9fafb;
}

/* User Info in Tables */
.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    color: #111827;
    margin-bottom: 0.25rem;
}

.user-info span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Action Buttons in Tables */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    white-space: nowrap;
    pointer-events: auto !important;
}

/* Status Badges Enhancement */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-restricted {
    background-color: #f8d7da;
    color: #721c24;
}

.status-suspended {
    background-color: #f5f5f5;
    color: #6c757d;
}

.btn-sm {
    padding: 4px 8px;
    margin: 0 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-view {
    background-color: #007bff;
    color: white;
}

.btn-edit {
    background-color: #6c757d;
    color: white;
}

/* Payment Settings Card Specific Fix */
.card .settings-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card .settings-form .form-group {
    background: white;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
}

/* Ensure all admin buttons work */
.admin-dashboard .btn,
.admin-dashboard .action-btn,
.admin-dashboard .modal-close,
.admin-dashboard .tab-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Fix for any z-index issues */
.modal-overlay {
    z-index: 10000;
}

.modal {
    z-index: 10001;
}

.notification {
    z-index: 10002;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success States */
.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid #a7f3d0;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid #fecaca;
}

/* ===== RESPONSIVE DESIGN FIXES ===== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header and Navigation Mobile Fixes */
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    nav {
        position: static;
        transform: none;
        width: 100%;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        padding: 6px 12px;
        font-size: 14px;
    }

    main {
        margin-top: 120px;
    }

    /* Modal fixes */
    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal.large {
        max-width: calc(100vw - 2rem);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .setting-control {
        flex-direction: column;
        align-items: stretch;
    }
    
    .setting-control .btn {
        align-self: flex-start;
    }
    
    .card .settings-form {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .agent-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-settings-grid {
        gap: 1rem;
    }

    nav ul {
        gap: 5px;
    }

    nav a {
        padding: 5px 8px;
        font-size: 12px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .recent-activity {
        padding: 30px 20px;
    }

    .activity-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.hidden { display: none; }
.visible { display: block; }

/* Payment Settings Styles */
.settings-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-form .form-group label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.settings-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 14px;
}

.info-item i {
    color: var(--primary);
}

.badge {
    background: var(--success);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Ensure buttons are properly styled */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    align-self: flex-start;
    margin-top: 5px;
}

/* Responsive design for settings form */
@media (max-width: 768px) {
    .settings-form {
        grid-template-columns: 1fr;
    }
}

/* CRITICAL FIX: Ensure all interactive elements are clickable */
button, 
a, 
input[type="button"], 
input[type="submit"], 
input[type="reset"],
.select2-container,
.tab-btn,
.faq-question,
.action-btn,
.share-btn,
.modal-close,
.password-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Fix for any potential overlay blocking clicks */
*:not(button):not(a):not(input):not(.btn):not(.action-btn):not(.share-btn):not(.faq-question):not(.tab-btn):not(.modal-close):not(.password-toggle) {
    pointer-events: none;
}

button *, a *, input * {
    pointer-events: none;
}