/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Transparent Royal Blue with Fluorescent Glow colors */
    --royal-blue: rgba(65, 105, 225, 0.85);
    --dark-royal-blue: rgba(25, 25, 112, 0.9);
    --light-royal-blue: rgba(176, 196, 222, 0.6);
    --fluorescent-glow: rgba(0, 191, 255, 0.7);
    --sparkling-gold: #ffd700;
    --gold-light: #ffec8b;
    --dark-text: #333;
    --light-text: #fff;
    --gray-bg: #f5f5f5;
    --border-color: #ddd;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --danger-red: #dc3545;
    --info-cyan: #17a2b8;
    --secondary-gray: #6c757d;
    --glow-effect: 0 0 15px var(--fluorescent-glow), 0 0 25px rgba(0, 191, 255, 0.4);
}

/* Layout */
html,
body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--gray-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background-color: var(--royal-blue);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), var(--glow-effect);
    width: 100%;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(65, 105, 225, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

.nav-link:hover {
    color: var(--gold-light);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px var(--fluorescent-glow);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px var(--fluorescent-glow);
}

/* Sections */
.section {
    display: none;
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.section.active {
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--royal-blue), var(--dark-royal-blue));
    color: var(--light-text);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--glow-effect);
    border: 1px solid rgba(65, 105, 225, 0.3);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.9);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 20px rgba(65, 105, 225, 0.1);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--royal-blue);
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 10px var(--fluorescent-glow);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: var(--royal-blue);
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.4);
}

.form-footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--fluorescent-glow);
}

/* Buttons */
.btn-primary {
    background-color: var(--royal-blue);
    color: var(--light-text);
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    border: 1px solid rgba(65, 105, 225, 0.3);
}

.btn-primary:hover {
    background-color: var(--dark-royal-blue);
    box-shadow: var(--glow-effect);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--secondary-gray);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: var(--danger-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Dashboard Components */
.dashboard-welcome {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(65, 105, 225, 0.1);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

/* Wallet Section */
.wallet-container {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(65, 105, 225, 0.1);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wallet-item {
    border: 2px solid rgba(65, 105, 225, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9));
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.wallet-item:hover {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    border-color: rgba(65, 105, 225, 0.5);
}

.wallet-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.wallet-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--royal-blue);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

/* Packages Section */
.packages-container {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(65, 105, 225, 0.1);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-card {
    border: 1px solid rgba(65, 105, 225, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.95);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), var(--glow-effect);
    border-color: rgba(65, 105, 225, 0.5);
}

.package-card h4 {
    color: var(--royal-blue);
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
}

.package-return {
    font-weight: 600;
    margin-bottom: 10px;
}

.package-status {
    color: #4169E1;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.4);
}

/* Investment Items */
.investment-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid rgba(65, 105, 225, 0.2);
    background-color: rgba(249, 249, 249, 0.9);
    margin-bottom: 10px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.investment-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.investment-item strong {
    color: var(--royal-blue);
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.investment-item small {
    color: #666;
    display: block;
    margin-bottom: 3px;
}

.package-status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.package-status.active {
    background-color: rgba(232, 245, 232, 0.8);
    color: #4169E1;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.package-status.completed {
    background-color: rgba(227, 242, 253, 0.8);
    color: #1565c0;
}

.package-status.pending {
    background-color: #fff3e0;
    color: #ef6c00;
}

.no-investments,
.no-transactions {
    text-align: center;
    color: #777;
    padding: 20px;
}

/* Investment Summary */
.investment-summary {
    background: linear-gradient(135deg, var(--royal-blue), var(--dark-royal-blue));
    color: var(--light-text);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--glow-effect);
    border: 1px solid rgba(65, 105, 225, 0.3);
    backdrop-filter: blur(5px);
}

.investment-summary h4 {
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-align: center;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

.summary-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Transactions */
.transactions-container {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(65, 105, 225, 0.1);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(65, 105, 225, 0.2);
    background-color: rgba(249, 249, 249, 0.9);
    margin-bottom: 8px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.transaction-type {
    color: var(--royal-blue);
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.transaction-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.transaction-amount.credit {
    color: #4169E1;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.4);
}

.transaction-amount.debit {
    color: #c62828;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.transaction-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.transaction-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.transaction-status.completed {
    background-color: rgba(232, 245, 232, 0.8);
    color: #4169E1;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.transaction-status.pending {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Admin Dashboard */
.admin-controls {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(65, 105, 225, 0.1);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

/* Admin - Withdrawal & Pending Investments */
.withdrawal-management,
.pending-investments-section {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(65, 105, 225, 0.1);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.withdrawal-request-card,
.investment-approval-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(65, 105, 225, 0.3);
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.withdrawal-request-card:hover,
.investment-approval-card:hover {
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
    border-color: rgba(65, 105, 225, 0.5);
}

.req-info {
    flex: 1;
}

.req-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--royal-blue);
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
}

.req-bank {
    color: #666;
    margin: 5px 0;
    background: rgba(248, 249, 250, 0.8);
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
}

.req-actions {
    display: flex;
    gap: 10px;
}

.btn-approve,
.btn-approve-inv {
    background-color: var(--success-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-approve:hover,
.btn-approve-inv:hover {
    background-color: #218838;
}

.btn-reject,
.btn-reject-inv {
    background-color: var(--danger-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-reject:hover,
.btn-reject-inv:hover {
    background-color: #c82333;
}

.btn-view-proof {
    background-color: var(--info-cyan);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-view-proof:hover {
    background-color: #138496;
}

/* Admin - Package Management */
.package-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-control {
    border: 1px solid rgba(65, 105, 225, 0.3);
    border-radius: 10px;
    padding: 15px;
    background-color: rgba(249, 249, 249, 0.9);
    backdrop-filter: blur(5px);
}

.package-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.remove-package {
    background-color: var(--danger-red);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.remove-package:hover {
    background-color: #c82333;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--royal-blue);
    box-shadow: 0 0 10px var(--fluorescent-glow);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Admin - User Management */
.user-management-controls {
    margin-bottom: 20px;
}

.user-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-bottom: 1px solid rgba(65, 105, 225, 0.2);
    background-color: rgba(249, 249, 249, 0.9);
    margin-bottom: 10px;
    border-radius: 5px;
    gap: 10px;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-stats {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.user-stat {
    background: rgba(240, 249, 255, 0.8);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.user-action-btn {
    padding: 6px 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1 0 calc(50% - 5px);
    min-width: 120px;
}

.btn-credit {
    background-color: var(--success-green);
    color: white;
}

.btn-debit {
    background-color: #ffc107;
    color: black;
}

.btn-edit-bank {
    background-color: var(--info-cyan);
    color: white;
}

.btn-view-investments {
    background-color: #6f42c1;
    color: white;
}

.btn-suspend {
    background-color: var(--warning-orange);
    color: white;
}

.btn-unsuspend {
    background-color: var(--secondary-gray);
    color: white;
}

.btn-delete {
    background-color: var(--danger-red);
    color: white;
}

.user-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.user-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-active {
    background-color: rgba(232, 245, 232, 0.8);
    color: #4169E1;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.status-suspended {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--light-text);
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    margin-bottom: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2), var(--glow-effect);
    border: 1px solid rgba(65, 105, 225, 0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--royal-blue);
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

.close:hover {
    color: var(--dark-royal-blue);
    text-shadow: 0 0 10px var(--fluorescent-glow);
}

.investment-limits {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8rem;
}

.investment-preview {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--royal-blue);
    backdrop-filter: blur(5px);
}

.preview-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(233, 236, 239, 0.8);
}

.preview-label {
    font-weight: 500;
    color: #495057;
}

.preview-value {
    color: var(--royal-blue);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.warning-text {
    color: var(--danger-red);
    font-weight: 500;
    margin: 10px 0;
}

/* WhatsApp Community */
.community-container {
    background-color: #fff;
    border-left: 5px solid #25D366;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(65, 105, 225, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.community-info h3 {
    color: #075e54;
    margin-bottom: 5px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
    text-align: center;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        flex-direction: column;
        background-color: var(--royal-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1), var(--glow-effect);
        padding: 20px 0;
        z-index: 999;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(65, 105, 225, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 15px;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .packages-grid,
    .wallet-grid,
    .package-controls {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .investment-item,
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .transaction-info {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .community-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .btn-whatsapp {
        width: 100%;
    }

    .user-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .user-action-btn {
        flex: 1 0 100%;
        margin-bottom: 5px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .form-container {
        padding: 20px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ ZIPPER ANIMATION EFFECT ============ */

/* Container Positioning */
#zipper-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

/* The Fabric Mask */
.zipper-mask {
    position: relative;
    width: 100%;
    height: 100%;
    /* Royal Blue background to match theme */
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.9), rgba(0, 40, 85, 0.95));
    border-radius: 10px;
    overflow: hidden;
    transition: opacity 0.5s ease;
    pointer-events: all;
}

/* Left and Right Panels */
.zipper-left,
.zipper-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.85), rgba(0, 60, 120, 0.9));
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 10;
}

.zipper-left {
    left: 0;
    transform-origin: left center;
}

.zipper-right {
    right: 0;
    transform-origin: right center;
}

/* Gold Zipper Teeth */
.zipper-tooth {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #ffd700, #b8860b);
    /* Gold gradient */
    border-radius: 2px;
    z-index: 6;
    transition: all 0.3s ease;
}

.zipper-tooth:nth-child(odd) {
    transform: rotate(-3deg);
}

.zipper-tooth:nth-child(even) {
    transform: rotate(3deg);
}

/* The Zipper Puller (Handle) */
.zipper-pull {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 60px;
    height: 120px;
    z-index: 15;
    opacity: 0;
    /* Hidden until animation starts */
    pointer-events: none;
}

.pull-tab {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background: linear-gradient(to bottom, #c0c0c0, #888);
    border-radius: 4px;
}

.pull-ring {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    border: 4px solid #c0c0c0;
    border-radius: 50%;
}

/* Button Styling */
.zipper-click-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: opacity 0.5s ease;
}

.click-here-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.85), rgba(25, 25, 112, 0.9));
    color: #fff;
    border: 2px solid #ffec8b;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse-glow 2s infinite;
}

/* --- ANIMATION STATES --- */

/* 1. Move Panels Apart */
.zipper-mask.unzipping .zipper-left {
    transform: translateX(-100%) rotateY(-30deg);
}

.zipper-mask.unzipping .zipper-right {
    transform: translateX(100%) rotateY(30deg);
}

/* 2. Animate Puller Down */
.zipper-mask.unzipping .zipper-pull {
    opacity: 1;
    animation: pull-down 1.2s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes pull-down {
    0% {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    100% {
        transform: translate(-50%, 100%) rotate(90deg);
    }
}

/* 3. Animate Teeth Opening */
.zipper-mask.unzipping .zipper-tooth {
    animation: tooth-open 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
    animation-delay: calc(var(--tooth-index) * 0.03s);
    /* Staggered effect */
}

@keyframes tooth-open {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* 4. Hide Button */
.zipper-mask.unzipping .zipper-click-area {
    opacity: 0;
    pointer-events: none;
}

/* 5. Cleanup State */
.zipper-mask.complete {
    opacity: 0;
    pointer-events: none;
}

/* Pulse glow animation for button */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

/* Form container adjustments for zipper */
.form-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 20px rgba(65, 105, 225, 0.1);
    border: 1px solid rgba(65, 105, 225, 0.2);
    overflow: hidden;
}

/* Ensure the registration form is initially hidden */
#register-section .form-container form {
    opacity: 0;
    transition: opacity 0.5s ease 1.2s;
}

#register-section .form-container.form-visible form {
    opacity: 1;
}

/* ============ ENHANCED INVESTMENT & TRANSACTION STYLES (ISOLATED) ============ */

/* Investment Display - Scoped to user dashboard section only */
#user-dashboard-section .investment-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid rgba(65, 105, 225, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.08);
    position: relative;
    overflow: hidden;
}

#user-dashboard-section .investment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4169E1, #004d40);
    border-radius: 4px 0 0 4px;
}

#user-dashboard-section .investment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.15);
    border-color: rgba(65, 105, 225, 0.3);
}

#user-dashboard-section .investment-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

#user-dashboard-section .investment-details>div {
    padding: 8px 12px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 8px;
    border-left: 3px solid #4169E1;
}

#user-dashboard-section .investment-details strong {
    color: #4169E1;
    font-weight: 600;
    margin-right: 5px;
    font-size: 0.95em;
}

#user-dashboard-section .investment-details>div:first-child strong {
    color: #004d40;
}

/* Days Remaining Badge - Specific Styling */
#user-dashboard-section .investment-details>div:nth-child(6) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 3px solid #1976d2;
    font-weight: 600;
}

#user-dashboard-section .investment-details>div:nth-child(6) strong {
    color: #1565c0;
}

/* Package Status - Enhanced */
#user-dashboard-section .package-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

#user-dashboard-section .package-status.active {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

#user-dashboard-section .package-status.completed {
    background: linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* Transaction History - Scoped to user dashboard section only */
#user-dashboard-section .transaction-item {
    background: white;
    border: 1px solid rgba(65, 105, 225, 0.1);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

#user-dashboard-section .transaction-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.05) 0%, transparent 70%);
    border-radius: 0 12px 0 0;
}

#user-dashboard-section .transaction-item:hover {
    border-color: rgba(65, 105, 225, 0.25);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.1);
}

#user-dashboard-section .transaction-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

#user-dashboard-section .transaction-type {
    flex: 1;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    font-size: 0.95rem;
    padding-right: 10px;
}

#user-dashboard-section .transaction-amount {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: right;
}

#user-dashboard-section .transaction-amount.credit {
    color: #4CAF50;
    position: relative;
    padding-left: 20px;
}

#user-dashboard-section .transaction-amount.credit::before {
    content: '+';
    position: absolute;
    left: 0;
    font-weight: 700;
}

#user-dashboard-section .transaction-amount.debit {
    color: #f44336;
}

#user-dashboard-section .transaction-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed rgba(65, 105, 225, 0.15);
}

#user-dashboard-section .transaction-date {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

#user-dashboard-section .transaction-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#user-dashboard-section .transaction-status.completed {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2E7D32;
    border: 1px solid #a5d6a7;
}

#user-dashboard-section .transaction-status.pending {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    color: #ef6c00;
    border: 1px solid #ffb74d;
}

/* Investment Summary Grid Enhancement */
#user-dashboard-section #investment-summary .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.03) 0%, rgba(0, 77, 64, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid rgba(65, 105, 225, 0.1);
}

#user-dashboard-section #investment-summary .summary-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

#user-dashboard-section #investment-summary .summary-item:hover {
    transform: translateY(-3px);
}

#user-dashboard-section #investment-summary .summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4169E1;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#user-dashboard-section #investment-summary .summary-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #user-dashboard-section .investment-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #user-dashboard-section .package-status {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 15px;
        display: inline-block;
    }

    #user-dashboard-section .transaction-details {
        flex-direction: column;
        gap: 10px;
    }

    #user-dashboard-section .transaction-amount {
        text-align: left;
        min-width: auto;
        align-self: flex-start;
    }

    #user-dashboard-section #investment-summary .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }

    #user-dashboard-section #investment-summary .summary-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    #user-dashboard-section .investment-item,
    #user-dashboard-section .transaction-item {
        padding: 15px;
    }

    #user-dashboard-section #investment-summary .summary-grid {
        grid-template-columns: 1fr;
    }

    #user-dashboard-section .transaction-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #user-dashboard-section .transaction-status {
        align-self: flex-start;
    }
}

/* Add to style.css - Fix package status positioning */
.package-card {
    position: relative;
    border: 1px solid rgba(65, 105, 225, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.95);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.package-status {
    margin: 10px 0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.package-status.available {
    background-color: rgba(232, 245, 232, 0.8);
    color: #4169E1;
    border: 1px solid rgba(65, 105, 225, 0.3);
}

.package-status.unavailable {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffb74d;
}

/* Disabled button styling */
.package-card .btn-primary:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid #999999;
}

.package-card .btn-primary:disabled:hover {
    background-color: #cccccc;
    transform: none;
}

/* Fix nav menu positioning */
.nav-menu {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 100;
}

.nav-menu .nav-link {
    position: relative;
    z-index: 101;
}

/* Ensure no overlapping with logout button */
#nav-logout {
    position: relative;
    z-index: 102;
}

/* Add these media queries for better mobile handling */
@media (max-width: 768px) {
    .package-card {
        min-height: 250px;
        margin-bottom: 20px;
    }

    .package-status {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Add to prevent any text overlap in navigation */
.navbar {
    position: relative;
    z-index: 1000;
}

.nav-container {
    position: relative;
    z-index: 1001;
}

/* =========================================
   USER DASHBOARD GOLDEN THEME OVERRIDES
   ========================================= */

/* Target all main containers/cards within the user dashboard */
#user-dashboard-section .dashboard-welcome,
#user-dashboard-section .bank-details-container,
#user-dashboard-section .referral-upline-container,
#user-dashboard-section .community-container,
#user-dashboard-section .wallet-container,
#user-dashboard-section .investment-summary,
#user-dashboard-section .packages-container,
#user-dashboard-section .transactions-container {
    /* Transparent Golden Background */
    background: rgba(255, 215, 0, 0.15) !important;

    /* Glassmorphism Blur Effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Golden Border */
    border: 1px solid rgba(255, 215, 0, 0.4) !important;

    /* Soft Gold Glow Shadow */
    box-shadow: 0 8px 32px 0 rgba(218, 165, 32, 0.2) !important;
}

/* Update text colors inside these golden cards for better contrast */
#user-dashboard-section h2,
#user-dashboard-section h3,
#user-dashboard-section h4 {
    color: #8a6d0b !important;
    /* Darker Gold/Bronze for headers */
    text-shadow: none !important;
}

#user-dashboard-section strong,
#user-dashboard-section b {
    color: #5c4905 !important;
    /* Deep brown-gold for emphasis */
}

/* Specific fix for Wallet Items to match the theme */
#user-dashboard-section .wallet-item {
    background: rgba(255, 255, 255, 0.25) !important;
    /* Slightly lighter inner card */
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
}

#user-dashboard-section .wallet-amount {
    color: #b8860b !important;
    /* Dark Goldenrod text */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

/* Specific fix for Package Cards to blend in */
#user-dashboard-section .package-card {
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
}

/* Fix Transaction and Investment items lists */
#user-dashboard-section .transaction-item,
#user-dashboard-section .investment-item {
    background: rgba(255, 255, 255, 0.4) !important;
    border-left: 4px solid #ffd700 !important;
    /* Gold indicator strip */
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* --- Mobile Navigation Height Fix --- */
@media screen and (max-width: 768px) {
    nav {
        /* Reduce vertical padding to shrink height (adjust 10px as needed) */
        padding: 10px 20px !important;

        /* Optional: Set a max-height to ensure it stays compact */
        height: 60px !important;
        min-height: auto !important;
    }

    /* Adjust Logo size to fit the smaller bar */
    .logo {
        font-size: 1.3rem !important;
    }

    /* Ensure Hamburger menu remains vertically centered */
    .hamburger {
        transform: scale(0.8);
        /* Slightly reduce hamburger icon size */
    }
}