:root {
    --primary-color: #f97316;
    --secondary-color: #f59e0b;
    --text-color: #111827;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --dark-purple: #ea580c;
    --font-family: 'Poppins', sans-serif;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #fff7ed;
    --border-color: rgba(17, 24, 39, 0.08);
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 10px 25px rgba(17, 24, 39, 0.10);
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--dark-purple);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
}

.btn-purple {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-purple:hover {
    background-color: var(--dark-purple);
    transform: translateY(-1px);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,247,237,0.88) 100%);
    padding: 15px 0;
    color: var(--text-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 14px 35px rgba(17,24,39,0.10);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 70%, var(--secondary-color) 130%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: rgba(17, 24, 39, 0.72);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-dropdown {
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 70% 45%, rgba(249, 115, 22, 0.22) 0%, rgba(245, 158, 11, 0.12) 35%, #ffffff 70%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 0;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.hero-image img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    z-index: 2;
    position: relative;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vh;
    height: 80vh;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 100px rgba(255,255,255,0.1);
}

/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: #fff7ed;
    position: relative;
}

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

.about-images {
    position: relative;
}

.img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.img-grid img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.img-3 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    height: 200px;
}

.about-images .badge {
    position: absolute;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.secure-badge {
    top: -15px;
    left: 20px;
    background-color: #d63031; /* Red/Pinkish */
}

.since-badge {
    bottom: 20px;
    right: -20px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--primary-color);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
}

.about-content p {
    color: #666;
    margin-bottom: 25px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.shape-decoration {
    position: absolute;
    right: 50px;
    bottom: 50px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff7ed 0%, rgba(249, 115, 22, 0.15) 45%, rgba(245, 158, 11, 0.12) 100%);
    color: var(--text-color);
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}

.step-item {
    flex: 1;
    min-width: 200px;
}

.step-circle {
    width: 180px;
    height: 180px;
    background-color: var(--white);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 5px solid rgba(255,255,255,0.3);
}

.step-circle img {
    width: 80%;
    height: auto;
    border-radius: 50%;
}

.step-number {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.price-card {
    background-color: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.featured {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-best {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-desc {
    color: #777;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.featured .plan-desc {
    color: rgba(255,255,255,0.7);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.price .period {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.featured .price .period {
    color: rgba(255,255,255,0.7);
}

.plan-features {
    margin-top: 30px;
    text-align: left;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.plan-features i {
    color: var(--primary-color);
}

.featured .plan-features i {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: #ffffff;
    color: rgba(17, 24, 39, 0.75);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(249, 115, 22, 0.22);
}

/* Dashboard Styles */
.dashboard-body {
    display: flex;
    background-color: var(--bg);
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--surface);
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    z-index: 1000;
    transition: all 0.3s;
    border-right: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    transition: all 0.3s;
    font-size: 0.95rem;
    gap: 15px;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: rgba(79, 70, 229, 0.10);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    font-weight: 500;
    transition: all 0.3s;
}

.logout-btn:hover {
    color: #c0392b;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 250px);
}

.dashboard-header {
    background-color: rgba(255,255,255,0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.content-wrapper {
    padding: 30px;
}

.alert {
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.alert-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 16px 40px rgba(2,6,23,0.12);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stat-card .icon-bg {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Colors */
.card-purple {
    background: linear-gradient(135deg, #f97316 0%, #fdba74 115%);
}

.card-blue {
    background: linear-gradient(135deg, #fb923c 0%, #fed7aa 120%);
}

.card-green {
    background: linear-gradient(135deg, #f59e0b 0%, #fde68a 120%);
}

.card-red {
    background: linear-gradient(135deg, #ef4444 0%, #fca5a5 110%);
}

.card-orange {
    background: linear-gradient(135deg, #ea580c 0%, #fdba74 120%);
}

.card-teal {
    background: linear-gradient(135deg, #ff7a18 0%, #ffd1a6 120%);
}

/* Verification Alert */
.verification-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.verification-alert i {
    font-size: 1.5rem;
    color: #fdcb6e;
}

.verification-alert h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

.verification-alert p {
    margin: 0;
    font-size: 0.9rem;
}

.verification-alert a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.recent-transactions h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
    background-color: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #999;
}

.empty-content i {
    margin-bottom: 15px;
    color: #eee;
}

/* Subscriptions Page */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 1.5rem;
    color: #333;
}

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

.plan-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.featured-dark {
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: #fff;
}

.plan-header {
    margin-bottom: 20px;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.plan-header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.featured-dark .plan-price {
    color: #fff;
}

.plan-price .duration {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.featured-dark .plan-price .duration {
    color: rgba(255, 255, 255, 0.8);
}

.plan-features {
    margin-top: 25px;
    list-style: none;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.plan-features i {
    color: var(--secondary-color);
}

.featured-dark .plan-features i {
    color: #fff;
}

.badge-best {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-white-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.btn-white-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-purple-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-purple-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Fund Transfer Page */
.transfer-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.transfer-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.transfer-form-grid .form-group {
    display: flex;
    flex-direction: column;
}

.transfer-form-grid label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.transfer-form-grid .required {
    color: red;
}

.transfer-form-grid .form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

.transfer-form-grid .form-control:focus {
    border-color: var(--primary-color);
}

.transfer-form-grid .input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.transfer-form-grid .input-group .form-control {
    border: none;
    border-radius: 0;
}

.helper-text-red {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.btn-wide {
    padding: 12px 40px;
    font-size: 1rem;
}

/* Ads Page */
.ads-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 10px 25px;
    border: none;
    background-color: transparent;
    border-radius: 8px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(72, 52, 212, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.empty-state-container {
    padding: 50px 0;
    text-align: center;
    color: #ccc;
}

.empty-state-container .empty-content i {
    color: #ddd;
    margin-bottom: 15px;
}

.search-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.search-filter-grid-simple {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .search-filter-grid, .search-filter-grid-simple {
        grid-template-columns: 1fr;
    }
}

.btn-dark {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-dark:hover {
    background-color: #000;
}

.table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #555;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #eee;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
}

/* Transactions Page */
.transactions-filter-bar {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 0.5fr;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .transactions-filter-bar {
        grid-template-columns: 1fr;
    }
}

.page-size-select {
    width: 100%;
}

/* Withdraw Page */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 1.5rem;
    color: #333;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Referral Page */
.referral-banner {
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: #fff;
    border-radius: 15px;
    padding: 50px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(72, 52, 212, 0.2);
}

.referral-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.referral-steps {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.step-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.step-item:hover .step-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 200px;
}

.referral-link-box {
    display: flex;
    align-items: center;
    margin-top: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 5px;
}

.referral-link-box input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: #555;
    padding: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.copy-action {
    display: flex;
    gap: 5px;
}

.copy-action .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.text-muted {
    color: #777;
}

.text-right {
    text-align: right;
}

@media (max-width: 768px) {
    .step-arrow {
        display: none;
    }
    
    .referral-link-box {
        flex-direction: column;
        padding: 15px;
    }
    
    .referral-link-box input {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }
    
    .copy-action {
        width: 100%;
        justify-content: center;
    }
}

/* Portfolios Page */
.portfolios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.portfolio-card {
    background: linear-gradient(135deg, #2d3436 0%, #000000 100%);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.level-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.level-1 { background-color: #f59e0b; color: #fff; }
.level-2 { background-color: var(--primary-color); color: #fff; }
.level-3 { background-color: #ef4444; color: #fff; }

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-content .subtitle {
    font-size: 0.9rem;
    color: #b2bec3;
    margin-bottom: 20px;
    min-height: 40px;
}

.level-features {
    list-style: none;
    padding: 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.level-features li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #dfe6e9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-features li:last-child {
    margin-bottom: 0;
}

.level-features li i {
    color: var(--secondary-color);
}

/* Support Page & Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2000;
}

.modal-backdrop.active {
    opacity: 1;
}

/* Modal Styles - Unified */
.modal-content {
    background-color: var(--surface);
    margin: 20px auto; /* Default margin */
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px; /* Compromise between 500 and 600 */
    position: relative;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px auto;
        max-width: 95%;
    }
    
    /* Ensure modal containers allow scrolling on mobile */
    .modal-backdrop, 
    .password-modal, 
    .modal-overlay {
        /* Default state is hidden for these */
        align-items: flex-start; /* Align to top to allow scrolling */
        overflow-y: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .custom-confirm-overlay {
        /* This one is always flex when present in DOM */
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .modal-backdrop.active,
    .password-modal.active {
        display: flex;
    }
    
    /* Override for specific containers that might differ */
    .modal-overlay[style*="display: flex"],
    .modal-overlay[style*="display: block"],
    .modal-backdrop[style*="display: flex"],
    .modal-backdrop[style*="display: block"],
    .password-modal[style*="display: flex"],
    .password-modal[style*="display: block"] {
        display: flex !important;
        align-items: flex-start !important;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: none;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #95a5a6;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    background-color: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.form-control:focus {
    background-color: var(--surface);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

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

.upload-area {
    border: 2px dashed rgba(79, 70, 229, 0.55);
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    background: rgba(79, 70, 229, 0.06);
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-area:hover {
    background: rgba(79, 70, 229, 0.10);
}

.upload-placeholder p {
    margin-bottom: 5px;
    font-size: 1rem;
}

.upload-placeholder small {
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-footer {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: transparent;
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-purple);
    border-color: transparent;
}

/* Rewards Page */
.reward-points-card {
    background: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
    color: #fff;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.reward-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.points-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.reward-icon {
    font-size: 5rem;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.btn-light-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-light-outline:hover {
    background: #fff;
    color: #e67e22;
}

.rewards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .rewards-grid {
        grid-template-columns: 1fr;
    }
}

.empty-state-small {
    padding: 30px;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #95a5a6;
}

/* ID Verification */
.verification-options {
    display: flex;
    gap: 15px;
}

.btn-purple {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn-purple:hover {
    background: var(--dark-purple);
    color: var(--white);
    transform: translateY(-1px);
}

.upload-area {
    border: 2px dashed rgba(15, 23, 42, 0.18);
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background: var(--surface-2);
    transition: all 0.3s;
    color: #636e72;
}

.upload-area:hover {
    border-color: rgba(79, 70, 229, 0.55);
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary-color);
}

.upload-area i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 0;
    font-weight: 500;
}

/* Settings Page Redesign */
.settings-container {
    max-width: 1000px;
    margin: 0 auto;
}

.settings-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 30px;
}

[data-theme='dark'] .settings-card {
    background: #2d3436;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

[data-theme='dark'] .profile-header {
    border-bottom-color: #444;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), #a5b4fc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

.profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

[data-theme='dark'] .profile-info h3 {
    color: #ecf0f1;
}

.profile-info p {
    margin: 0;
    color: rgba(15, 23, 42, 0.70);
    font-size: 0.95rem;
}

[data-theme='dark'] .profile-info p {
    color: #b2bec3;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
    display: block;
}

[data-theme='dark'] .form-label {
    color: #dfe6e9;
}

.settings-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.settings-input:focus {
    border-color: var(--primary-color);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
    outline: none;
}

[data-theme='dark'] .settings-input {
    background: #353b48;
    border-color: #485460;
    color: #ecf0f1;
}

[data-theme='dark'] .settings-input:focus {
    background: #2d3436;
    border-color: #a29bfe;
}

.settings-input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.8;
}

[data-theme='dark'] .settings-input[readonly] {
    background-color: #2f3640;
}

.btn-update {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a5b4fc 120%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.30);
}

.danger-zone-card {
    border: 1px solid #fab1a0;
    background: #fff5f5;
}

[data-theme='dark'] .danger-zone-card {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.alert-warning-custom {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Sidebar */
.close-sidebar {
    display: none;
    cursor: pointer;
}

/* Deposit Page */
.deposit-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .deposit-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.card-top-header h3 {
    font-size: 1.2rem;
    color: #333;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.form-section label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

.gateway-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.gateway-option {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-option:hover {
    border-color: rgba(9, 132, 227, 0.3);
}

.gateway-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(9, 132, 227, 0.05);
}

.gateway-option img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.input-group-wrapper {
    margin-bottom: 20px;
}

.input-group-wrapper .input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.input-group-wrapper .form-control {
    flex: 1;
    border: none;
    padding: 15px;
    outline: none;
    font-size: 1rem;
}

.input-group-text {
    padding: 0 20px;
    background-color: #f8f9fa;
    border-left: 1px solid #ddd;
    color: #555;
    font-weight: 600;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Review Details */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
    color: #555;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-item .value {
    font-weight: 600;
    color: #333;
}

.review-item.total, .review-item.payable {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.review-item.total .value, .review-item.payable .value {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .sidebar {
        left: -250px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .close-sidebar {
        display: block;
    }
}

.auth-navbar {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.auth-navbar .logo {
    color: var(--secondary-color);
}

.auth-navbar .logo i {
    color: var(--secondary-color);
}

.auth-navbar .nav-right {
    color: #555;
}

.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
}

.auth-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 50px 0; /* Add margin for scrolling */
}

.register-card {
    max-width: 550px; /* Slightly wider for registration form */
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h3 {
    font-size: 1.8rem;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.required {
    color: #e74c3c;
}

.input-group {
    position: relative;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background-color: #f9f9f9;
}

.input-group select {
    padding: 12px 15px; /* Adjust padding for select as it has no icon usually */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4l128-128c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.form-check label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.phone-group {
    display: flex;
    align-items: center;
}

.country-code {
    background-color: #eee;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.95rem;
    color: #555;
    white-space: nowrap;
}

.phone-group input {
    border-radius: 0 5px 5px 0;
    padding-left: 15px; /* Override default padding since icon is gone */
}

.terms-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

.auth-footer p {
    color: #666;
    margin-bottom: 10px;
}

.link-primary {
    color: var(--primary-color);
    font-weight: 600;
}

.link-secondary {
    color: #888;
    text-decoration: underline;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 15px;
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    display: none;
    z-index: 1000;
    margin-top: 10px;
    animation: fadeIn 0.2s ease;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.profile-dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.profile-dropdown-item i {
    width: 20px;
    text-align: center;
    color: #b2bec3;
}

.profile-dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

/* Dark Mode Profile Dropdown */
[data-theme='dark'] .profile-dropdown {
    background: #2d3436;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

[data-theme='dark'] .profile-dropdown-item {
    color: #ecf0f1;
}

[data-theme='dark'] .profile-dropdown-item:hover {
    background-color: #353b48;
}

[data-theme='dark'] .profile-dropdown-divider {
    background-color: #485460;
}

/* Password Change Modal */
.password-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.password-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

/* --- Dark Mode Implementation --- */
[data-theme="dark"] {
    --primary-color: #fb923c;
    --secondary-color: #fbbf24;
    --text-color: #e5e7eb;
    --light-gray: #0b1220;
    --white: #111827;
    --dark-purple: #f97316;
    --bg: #0b1220;
    --surface: #111827;
    --surface-2: #0f172a;
    --border-color: rgba(148, 163, 184, 0.14);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
    --shadow-md: 0 18px 45px rgba(0,0,0,0.45);
}

[data-theme="dark"] body {
    background-color: var(--light-gray);
    color: var(--text-color);
}

[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .dashboard-header,
[data-theme="dark"] .navbar,
[data-theme="dark"] .price-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .table-responsive,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .plan-card,
[data-theme="dark"] .transfer-card,
[data-theme="dark"] .referral-link-box,
[data-theme="dark"] .admin-sidebar,
[data-theme="dark"] .admin-header,
[data-theme="dark"] .reward-points-card,
[data-theme="dark"] .referral-banner,
[data-theme="dark"] .portfolio-card {
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

[data-theme="dark"] .admin-sidebar {
    background-color: #2d3436;
}

[data-theme="dark"] .stat-card h3,
[data-theme="dark"] .stat-card .value,
[data-theme="dark"] .stat-card .desc {
    color: #fff;
}

[data-theme="dark"] .sidebar-menu li a {
    color: #b2bec3;
}
[data-theme="dark"] .sidebar-menu li a:hover,
[data-theme="dark"] .sidebar-menu li a.active {
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-color);
}

[data-theme="dark"] .table th {
    background-color: #353b48;
    color: #ecf0f1;
    border-bottom-color: #485460;
}
[data-theme="dark"] .table td {
    color: #dfe6e9;
    border-bottom-color: #485460;
}

[data-theme="dark"] .form-control {
    background-color: #353b48;
    border-color: #485460;
    color: #ecf0f1;
}
[data-theme="dark"] .form-control:focus {
    background-color: #2f3640;
    border-color: var(--primary-color);
}

[data-theme="dark"] .page-header h2,
[data-theme="dark"] .section-title,
[data-theme="dark"] .auth-header h3,
[data-theme="dark"] .card-top-header h3,
[data-theme="dark"] .reward-info h3,
[data-theme="dark"] .plan-header h3 {
    color: #ecf0f1;
}

[data-theme="dark"] .referral-link-box {
    background-color: #353b48;
    border-color: #485460;
}
[data-theme="dark"] .referral-link-box input {
    color: #ecf0f1;
}

[data-theme="dark"] .country-code {
    background-color: #353b48;
    border-color: #485460;
    color: #ecf0f1;
}

[data-theme="dark"] .input-group-text {
    background-color: #353b48;
    border-color: #485460;
    color: #ecf0f1;
}

[data-theme="dark"] .input-group input, 
[data-theme="dark"] .input-group select {
    background-color: #353b48;
    border-color: #485460;
    color: #ecf0f1;
}

[data-theme="dark"] .upload-area {
    background-color: #353b48;
    border-color: #485460;
}

[data-theme="dark"] .close-modal {
    color: #ecf0f1;
}

/* Toggle Button Style */
.theme-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    margin-left: 15px;
    color: var(--text-color);
}
.theme-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}
[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .support-hero {
    background: linear-gradient(135deg, #2d3436 0%, #000000 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Chat & Support Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.contact-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-telegram { background: linear-gradient(135deg, #0088cc, #005f8f); }
.contact-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.contact-info h4 { margin: 0; font-size: 1.1rem; }
.contact-info p { margin: 5px 0 0; font-size: 0.9rem; opacity: 0.9; }
.contact-icon { font-size: 2.5rem; margin-left: auto; opacity: 0.8; }

.support-hero {
    background: linear-gradient(135deg, #0b1220 0%, var(--primary-color) 85%, var(--secondary-color) 160%);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(2,6,23,0.18);
}
.support-hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.support-hero p {
    font-size: 1rem;
    opacity: 0.9;
}

.chat-interface {
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.chat-layout {
    display: flex;
    height: 100%;
}
.chat-sidebar {
    width: 300px;
    border-right: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}
.chat-search { padding: 15px; border-bottom: 1px solid #eee; }
.chat-search input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 20px; }
.chat-users-list { flex: 1; overflow-y: auto; }
.chat-user-item {
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f1f1;
}
.chat-user-item:hover, .chat-user-item.active { background: #fff; border-left: 4px solid var(--primary-color); }
.chat-user-avatar {
    width: 40px; height: 40px;
    background: #dfe6e9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    color: #636e72;
}
.chat-user-info h5 { margin: 0; font-size: 0.95rem; color: #2d3436; }
.chat-user-info p { margin: 0; font-size: 0.8rem; color: #b2bec3; }
.unread-count {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: auto;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-messages-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-msg { display: flex; flex-direction: column; max-width: 70%; }
.chat-msg.sent { align-self: flex-end; align-items: flex-end; }
.chat-msg.received { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}
.chat-msg.sent .msg-bubble {
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 2px;
}
.chat-msg.received .msg-bubble {
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    border-bottom-left-radius: 2px;
}
.msg-time { font-size: 0.75rem; color: #b2bec3; margin-top: 5px; }

.chat-input-wrapper {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: #fff;
}
.chat-input-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}
.chat-send-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.chat-send-btn:hover { transform: scale(1.1); }

/* Modern Tabs */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f2f6;
}

.nav-link {
    padding: 12px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #636e72;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(9, 132, 227, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.nav-link i {
    font-size: 1.1rem;
}

/* Dark Mode Overrides */
[data-theme="dark"] .chat-interface { border-color: #485460; background: var(--white); }
[data-theme="dark"] .chat-sidebar { border-right-color: #485460; background: #2d3436; }
[data-theme="dark"] .chat-search { border-bottom-color: #485460; }
[data-theme="dark"] .chat-search input { background: #353b48; border-color: #485460; color: #ecf0f1; }
[data-theme="dark"] .chat-user-item { border-bottom-color: #353b48; }
[data-theme="dark"] .chat-user-item:hover, [data-theme="dark"] .chat-user-item.active { background: #353b48; }
[data-theme="dark"] .chat-user-info h5 { color: #ecf0f1; }
[data-theme="dark"] .chat-main { background: var(--white); }
[data-theme="dark"] .chat-header { border-bottom-color: #485460; }
[data-theme="dark"] .chat-messages-area { background: #1e272e; }
[data-theme="dark"] .chat-msg.received .msg-bubble { background: #353b48; border-color: #485460; color: #ecf0f1; }
[data-theme="dark"] .chat-input-wrapper { border-top-color: #485460; background: var(--white); }
[data-theme="dark"] .chat-input-field { background: #353b48; border-color: #485460; color: #ecf0f1; }

[data-theme="dark"] .nav-tabs {
    border-bottom-color: #2d3436;
}

[data-theme="dark"] .nav-link {
    color: #b2bec3;
}

[data-theme="dark"] .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Generic Badge Styles (Fixed) --- */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    line-height: 1.2;
}

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: #95a5a6 !important; }
.bg-success { background-color: var(--secondary-color) !important; }
.bg-danger { background-color: #ef4444 !important; }
.bg-warning { background-color: #f59e0b !important; color: #0b1220; }
.bg-info { background-color: #2563eb !important; }

/* --- Additional Buttons --- */
.btn-danger {
    background-color: #ef4444;
    color: #fff;
    border: none;
}
.btn-danger:hover {
    background-color: #dc2626;
    color: #fff;
}

.btn-success {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
}
.btn-success:hover {
    background-color: #16a34a;
    color: #fff;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: var(--surface);
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    border-left: 5px solid #ddd;
    animation: slideInRight 0.3s ease forwards;
}

.toast.success { border-left-color: var(--secondary-color); }
.toast.success .toast-icon { color: var(--secondary-color); }

.toast.error { border-left-color: #ef4444; }
.toast.error .toast-icon { color: #ef4444; }

.toast.warning { border-left-color: #f59e0b; }
.toast.warning .toast-icon { color: #f59e0b; }

.toast.info { border-left-color: #2563eb; }
.toast.info .toast-icon { color: #2563eb; }

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-close {
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}
.toast-close:hover { color: #333; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* --- Custom Confirm Modal --- */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.custom-confirm-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.confirm-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2d3436;
}

.confirm-message {
    color: #636e72;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-confirm-cancel {
    padding: 10px 25px;
    border: 1px solid #ddd;
    background: #f1f2f6;
    color: #636e72;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-confirm-cancel:hover { background: #dfe6e9; }

.btn-confirm-ok {
    padding: 10px 25px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-confirm-ok:hover { opacity: 0.9; }

.btn-confirm-danger {
    padding: 10px 25px;
    border: none;
    background: #d63031;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-confirm-danger:hover { background: #c0392b; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- Dark Mode for New Elements --- */
[data-theme="dark"] .toast {
    background: var(--surface);
    color: var(--text-color);
    border-left-color: #485460; /* Default border in dark */
}
[data-theme="dark"] .toast.success { border-left-color: var(--secondary-color); }
[data-theme="dark"] .toast.error { border-left-color: #ef4444; }
[data-theme="dark"] .custom-confirm-box {
    background: #2d3436;
    color: #ecf0f1;
}
[data-theme="dark"] .confirm-title { color: #ecf0f1; }
[data-theme="dark"] .confirm-message { color: #b2bec3; }
[data-theme="dark"] .btn-confirm-cancel {
    background: #353b48;
    border-color: #485460;
    color: #ecf0f1;
}
[data-theme="dark"] .btn-confirm-cancel:hover { background: #2f3640; }

/* --- Badge Compatibility --- */
.badge-primary { background-color: var(--primary-color) !important; }
.badge-secondary { background-color: #95a5a6 !important; }
.badge-success { background-color: var(--secondary-color) !important; }
.badge-danger { background-color: #ef4444 !important; }
.badge-warning { background-color: #f59e0b !important; color: #0b1220; }
.badge-info { background-color: #2563eb !important; }

/* --- Language Switcher Styles --- */
#google_translate_element {
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.custom-lang-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.custom-lang-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.custom-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 150px;
    display: none;
    z-index: 1001;
    overflow: hidden;
    margin-top: 5px;
}

.custom-lang-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.lang-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #333;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #f1f2f6;
    color: var(--primary-color);
}

.lang-option img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* Dark Mode Support for Language Switcher */
[data-theme='dark'] .custom-lang-btn {
    border-color: #485460;
    color: #ecf0f1;
}

[data-theme='dark'] .custom-lang-btn:hover {
    background: #353b48;
}

[data-theme='dark'] .custom-lang-dropdown {
    background: #2d3436;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

[data-theme='dark'] .lang-option {
    color: #ecf0f1;
}

[data-theme='dark'] .lang-option:hover {
    background: #353b48;
}

/* --- Subscription Modal Styles --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

/* Removed redundant modal-content definition */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.file-upload-wrapper {
    position: relative;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.3s;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10; /* Ensure it's on top */
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777;
    pointer-events: none;
}

.file-upload-placeholder i {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Dark Mode Modal */
[data-theme='dark'] .modal-content {
    background-color: #2d3436;
    color: #ecf0f1;
}

[data-theme='dark'] .file-upload-wrapper {
    background: #353b48;
    border-color: #485460;
}

[data-theme='dark'] .close-modal:hover {
    color: #fff;
}
