/* Optimized CSS with preserved original appearance */
:root {
    --primary-color: #4a90e2;
    --primary-hover: #357bd8;
    --bg-dark: #1a2332;
    --bg-darker: #1e293b;
    --border-color: #334155;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --card-bg: #1a2332;
}

/* Base button style */
.btn-primary,
.auth-button,
.cta-button,
.popup-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover,
.auth-button:hover,
.cta-button:hover,
.popup-button:hover {
    background-color: var(--primary-hover);
}

/* Base card style */
.card-base,
.card,
.admin-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* Base input style */
.input-base,
.input-group input,
.referral-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.input-base:focus,
.input-group input:focus,
.referral-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* New rule for the content inside the cards */
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f172a;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
    flex-direction: column;
    overflow-x: hidden;
}

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    background-size: cover;
    filter: brightness(50%);
    opacity: 0.5;
}

.container,
.dashboard {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

/* Auth Container */
.form-card {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 2.5em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 14px;
}

.auth-form h2 {
    font-size: 1.8em;
    margin-bottom: 18px;
    color: #e2e8f0;
}

.input-group {
    margin-bottom: 14px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.9em;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

.error-message {
    color: var(--error-color);
    margin-top: 10px;
    font-size: 0.9em;
    display: none;
}

.success-message {
    color: var(--success-color);
    margin-top: 10px;
    font-size: 0.9em;
    display: none;
}

.toggle-link {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.9em;
}

.toggle-link a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.toggle-link a:hover {
    color: var(--primary-hover);
}

/* Dashboard Styles */
.dashboard {
    max-width: 1200px;
    padding: 40px;
    background-color: var(--bg-darker);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

header .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #64748b;
}

.user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.user-info span {
    font-size: 1.1em;
    font-weight: 500;
    color: #e2e8f0;
}

#dashboard-timer {
    font-size: 1em;
    color: var(--text-muted);
    font-weight: 400;
}

.logout-button {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #dc2626;
}

main {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Dashboard Grid Layout */
.dashboard-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Specific styling for the left-aligned cards */
.card.invest-now,
.card.profits,
.card.total-withdrawal {
    margin-left: 25%;
}

/* Specific styling for the right-aligned cards */
.card.total-investment,
.card.withdrawal,
.card.referral {
    margin-right: 25%;
}

.card,
.admin-card {
    padding: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3,
.admin-card h3 {
    margin: 0;
    font-size: 1.2em;
    color: #e2e8f0;
}

.amount {
    font-size: 2em;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.currency-symbol {
    font-weight: 500;
    margin-right: 5px;
    font-size: 0.7em;
}

.card.profits .amount {
    color: var(--success-color);
}

.card.profits .amount .currency-symbol {
    color: var(--success-color);
}

.card.total-withdrawal .amount {
    color: var(--error-color);
}

.card.total-withdrawal .amount .currency-symbol {
    color: var(--error-color);
}

.chart-container {
    background-color: #0d121c;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748b;
}

.admin-note {
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-top: 30px;
}

/* Zipper Overlay Styles */
.zipper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    transition: opacity 1.5s ease-in-out;
}

.zipper-path,
.zipper-path-right {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.8);
    transition: transform 1.5s ease-in-out;
    transform-origin: center center;
}

.zipper-path {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    left: 0;
}

.zipper-path-right {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    right: 0;
}

.zipper-handle {
    width: 50px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 10px;
    position: absolute;
    z-index: 1001;
    transition: transform 1.5s ease-in-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.open-button {
    padding: 15px 30px;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    background-color: rgba(74, 144, 226, 0.9);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1002;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.zipper-opened .zipper-path {
    transform: translateX(-50vw);
}

.zipper-opened .zipper-path-right {
    transform: translateX(50vw);
}

.zipper-opened .zipper-handle {
    transform: translateY(100vh);
}

.zipper-hidden {
    display: none;
}

/* Zipper Overlay Video Background */
#zipper-overlay #zipper-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    background-size: cover;
    filter: brightness(30%) blur(2px);
    object-fit: cover;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 20;
}

.hamburger-bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    margin: 4px 0;
    transition: 0.4s;
}

.hamburger-menu.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar2 {
    opacity: 0;
}

.hamburger-menu.active .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile menu container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    background-color: var(--bg-darker);
    z-index: 15;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu .card {
    padding-top: 20px;
    width: 90%;
    margin: 15px auto;
}

/* Media Query for Mobile responsiveness*/
@media (max-width: 768px) {
    .dashboard {
        padding: 20px;
    }

    .card.invest-now,
    .card.profits,
    .card.total-withdrawal,
    .card.total-investment,
    .card.withdrawal,
    .card.referral {
        margin-left: 0;
        margin-right: 0;
    }

    .dashboard-grid {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    header {
        justify-content: flex-start;
        gap: 20px;
        padding-bottom: 10px;
        margin-bottom: 20px;
        width: 100%;
    }

    #auth-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .form-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 20px;
    }

    .dashboard .card {
        transform: scale(0.75);
        transform-origin: center;
        margin: -15px 0 !important;
    }

    .dashboard-grid {
        gap: 5px;
        margin-bottom: 20px;
    }

    .dashboard {
        padding: 15px;
        overflow: hidden;
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .user-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    body,
    html {
        max-width: 100%;
        overflow-x: hidden;
    }

    .chart-container {
        height: 300px;
        padding: 10px;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .form-card {
        padding: 15px;
    }

    .logo {
        font-size: 2em;
    }

    .auth-form h2 {
        font-size: 1.5em;
    }

    .dashboard .card {
        transform: scale(0.7);
        margin: -20px 0 !important;
    }

    header .logo {
        font-size: 1.5em;
    }

    .user-info span {
        font-size: 0.9em;
    }
}

/* Ensure login form is completely hidden when not active */
#auth-container.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1000 !important;
}

/* Ensure dashboard is properly shown when active */
.dashboard:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.timer-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffc8;
    margin-left: 20px;
    align-self: center;
}

/* --- New styles for investment and payment pages --- */
.sub-heading {
    color: #e2e8f0;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.investment-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.package-card {
    background-color: #2e3a4e;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    width: 150px;
    cursor: pointer;
    transition: all 0.3s;
}

.package-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.package-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
    background-color: var(--bg-dark);
    transform: translateY(0);
}

.package-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
}

.package-card p {
    font-size: 0.9em;
    color: var(--text-muted);
}

.cta-button:active {
    transform: scale(0.98);
    background-color: #2a6cb5;
}

.cta-button:disabled {
    background-color: #64748b;
    cursor: not-allowed;
    opacity: 0.7;
}

.payment-details {
    text-align: left;
}

.payment-method-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.payment-toggle-button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.payment-toggle-button:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.payment-toggle-button:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.payment-toggle-button.active {
    background-color: var(--primary-color);
    color: white;
}

.details-section {
    background-color: var(--bg-dark);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.details-section h3 {
    margin-top: 0;
    color: #e2e8f0;
}

.details-section p {
    margin: 5px 0;
    color: var(--text-muted);
}

.proof-of-payment {
    text-align: center;
    margin-bottom: 20px;
}

.proof-of-payment p {
    margin-bottom: 10px;
    color: #e2e8f0;
}

.usdt-address {
    font-family: monospace;
    word-wrap: break-word;
    font-size: 0.9em;
}

.min-max-usdt {
    font-style: italic;
    font-size: 0.8em;
}

/* Mobile adjustments for new pages */
@media (max-width: 768px) {
    .investment-options {
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        width: 80%;
    }

    .payment-method-toggle {
        width: 100%;
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--error-color);
}

/* --- Success Popup Styles --- */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 15px;
}

.popup-content {
    background: var(--bg-darker);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.popup-title {
    color: var(--success-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

.popup-message {
    color: #e2e8f0;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Specific styles for the withdrawal container */
#withdrawal-container .form-card {
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
}

#withdrawal-container .sub-heading {
    margin-bottom: 15px;
    font-size: 20px;
}

/* Compact account details */
.account-details-card {
    padding: 15px;
    margin-bottom: 15px;
}

.details-title {
    margin-bottom: 10px;
    font-size: 16px;
}

.detail-row {
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-size: 14px;
}

.edit-notice {
    margin-top: 10px;
    padding: 8px;
    font-size: 12px;
}

/* Compact form elements */
#withdrawal-container .input-group {
    margin-bottom: 15px;
}

#withdrawal-container .input-group label {
    margin-bottom: 5px;
    font-size: 14px;
}

#withdrawal-container .input-group input {
    padding: 10px 12px;
    font-size: 14px;
}

.max-amount {
    margin-top: 3px;
    font-size: 12px;
}

/* Compact buttons */
.modal-buttons {
    margin-top: 20px;
}

.cancel-button,
.submit-button {
    padding: 10px 20px;
    font-size: 14px;
}

/* Hide unnecessary elements if needed */
.account-details-card .detail-row:last-child {
    border-bottom: none;
}

/* Scrollbar styling for the container */
#withdrawal-container .form-card::-webkit-scrollbar {
    width: 6px;
}

#withdrawal-container .form-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#withdrawal-container .form-card::-webkit-scrollbar-thumb {
    background: rgba(233, 69, 96, 0.5);
    border-radius: 3px;
}

#withdrawal-container .form-card::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 69, 96, 0.7);
}

/* Mobile optimization */
@media (max-width: 768px) {
    #withdrawal-container .form-card {
        max-height: 90vh;
        padding: 15px;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-value {
        margin-top: 3px;
    }
}

/* Forgot Password Form Styling */
#forgot-password-form {
    display: flex;
    flex-direction: column;
}

#forgot-password-form p {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    line-height: 1.5;
}

#reset-error,
#reset-success {
    text-align: center;
    margin: 15px 0;
}

/* Reset Password Form Styling */
#reset-password-form {
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments for the new forms */
@media (max-width: 768px) {

    #forgot-password-form h2,
    #reset-password-form h2 {
        font-size: 1.5rem;
    }

    #forgot-password-form p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

/* Animation for form transitions */
.auth-form {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-form.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

/* Additional styling for the back to login link */
#forgot-password-form .toggle-link,
#reset-password-form .toggle-link {
    margin-top: 20px;
}

/* Enhanced focus states for accessibility */
#reset-email:focus,
#new-password:focus,
#confirm-new-password:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Referral Link Styles */
.referral-input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.referral-input {
    flex: 1;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.referral-input:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
}

.copy-referral-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.copy-referral-btn:hover {
    color: #0056b3;
}

.copy-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.copy-tooltip.show {
    opacity: 1;
}

.referral-earnings {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.bonus-percentage {
    font-weight: bold;
    color: #28a745;
}

.referral-stats {
    margin-top: 10px;
}

.referral-stats p {
    margin: 5px 0;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .referral-input {
        font-size: 12px;
        padding: 8px 35px 8px 8px;
    }

    .copy-referral-btn {
        font-size: 14px;
    }

    .referral-stats p {
        font-size: 12px;
    }
}

/* Add responsive button styling */
.transfer-button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3a8ffe 0%, #9651ff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.transfer-button:hover {
    background: linear-gradient(135deg, #2a7bed 0%, #8540f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.transfer-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure button is touch-friendly on mobile */
@media (max-width: 768px) {
    .transfer-button {
        padding: 16px;
        font-size: 18px;
    }
}

/* Add focus state for accessibility */
.transfer-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 143, 254, 0.4);
}

/* Mobile-friendly notification styles */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4d4d;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-icon {
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        max-width: 90%;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .notification {
        top: 5px;
        max-width: 95%;
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Target the notification box specifically for "No referral bonuses available to transfer" */
.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    padding: 6px 16px;
    /* Reduced padding to decrease height */
    min-height: auto;
    /* Remove any minimum height */
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
}

.notification-icon {
    font-size: 16px;
    /* Slightly smaller icon */
}

.notification-text {
    font-size: 13px;
    /* Slightly smaller text */
    line-height: 1.3;
    /* Tighter line height */
}

/* Additional specific selector for the referral bonus message */
.notification[data-type="referral-bonus"] {
    padding: 4px 12px;
    /* Even more reduced padding */
}

.notification[data-type="referral-bonus"] .notification-content {
    gap: 6px;
    /* Even smaller gap */
}

.notification[data-type="referral-bonus"] .notification-icon {
    font-size: 14px;
    /* Even smaller icon */
}

.notification[data-type="referral-bonus"] .notification-text {
    font-size: 12px;
    /* Even smaller text */
}

.referral-confirmation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 10px;
}

.confirmation-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    border: 1px solid #333;
}

.confirmation-content p {
    margin-bottom: 20px;
    color: #fff;
    font-size: 16px;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.confirmation-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.confirmation-buttons .cancel-btn {
    background: #555;
    color: #fff;
}

.confirmation-buttons .confirm-btn {
    background: #4CAF50;
    color: #fff;
}

/* Referral Team Styles */
.referral-team-section {
    margin-top: 15px;
    border-top: 1px solid #34495e;
    padding-top: 15px;
}

.referral-team-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #ecf0f1;
    text-align: center;
}

.team-level {
    margin-bottom: 15px;
}

.team-level h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #bdc3c7;
}

.referral-list {
    max-height: 120px;
    overflow-y: auto;
    background-color: #2c3e50;
    border-radius: 5px;
    padding: 8px;
}

.referral-item {
    display: flex;
    flex-direction: column;
    padding: 5px;
    border-bottom: 1px solid #34495e;
}

.referral-item:last-child {
    border-bottom: none;
}

.referral-name {
    font-weight: bold;
    color: #ecf0f1;
    font-size: 12px;
}

.referral-email {
    color: #bdc3c7;
    font-size: 11px;
}

.no-referrals {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin: 5px 0;
    font-size: 12px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    color: #ffd700;
    font-size: 18px;
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
}

.notification[data-type="referral-bonus"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.notification[data-type="referral-bonus"] .notification-icon {
    color: #ffa500;
}

/* Transactions Card Styles */
.card.transactions {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.transactions:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.card.transactions .view-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 8px;
}

/* Transactions Page Styles */
#transactions-container .form-card {
    max-width: 800px;
}

.transaction-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

#transaction-filter {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    flex: 1;
}

.export-button {
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.export-button:hover {
    opacity: 0.9;
}

.transactions-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background-color: #f9f9f9;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.transaction-details {
    flex: 1;
}

.transaction-description {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.transaction-date {
    font-size: 0.85rem;
    color: #666;
}

.transaction-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

.transaction-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.transaction-status.completed {
    background-color: #d4edda;
    color: #155724;
}

.transaction-status.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.amount-positive {
    color: #28a745;
}

.amount-negative {
    color: #dc3545;
}

.amount-neutral {
    color: #6c757d;
}

/* Transaction type specific styles */
.transaction-item.investment {
    border-left: 4px solid #007bff;
}

.transaction-item.withdrawal {
    border-left: 4px solid #dc3545;
}

.transaction-item.profit {
    border-left: 4px solid #28a745;
}

.transaction-item.referral_bonus {
    border-left: 4px solid #ffc107;
}

.transaction-item.referral_transfer {
    border-left: 4px solid #6f42c1;
}

.transaction-item.transfer {
    border-left: 4px solid #17a2b8;
}

.no-transactions {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-transactions i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.no-transactions p {
    font-size: 1.1rem;
}

/* Responsive design for transactions */
@media (max-width: 768px) {
    .transaction-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .transaction-amount {
        align-self: flex-end;
    }

    .transaction-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .transaction-filters {
        gap: 10px;
    }

    #transaction-filter {
        padding: 8px 12px;
    }

    .export-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .transaction-item {
        padding: 12px;
    }

    .transaction-amount {
        font-size: 1rem;
    }
}

/* Animation for transaction items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.transaction-item {
    animation: slideIn 0.3s ease-out;
}

/* Scrollbar styling for transactions list */
.transactions-list::-webkit-scrollbar {
    width: 6px;
}

.transactions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.transactions-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* NEW STYLES FOR FUNCTIONALITY */
/* Investment list styles */
.investment-list {
    max-height: 120px;
    overflow-y: auto;
    width: 100%;
    margin-top: 10px;
}

.investment-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #334155;
    font-size: 0.8em;
}

.investment-item:last-child {
    border-bottom: none;
}

.package-info {
    color: var(--primary-color);
    font-weight: 500;
}

/* Withdrawal method toggle */
.withdrawal-method-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.method-toggle-button {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.method-toggle-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Insufficient funds message */
.insufficient-funds-message {
    color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.insufficient-funds {
    opacity: 0.6;
    pointer-events: none;
}

/* QR Code Container */
.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
}

/* Referral Team Page Styles */
.referral-team-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.referral-level-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

/* Mobile menu styles */
#mobile-menu .card {
    margin: 10px 0;
    padding: 15px;
}

/* Animation for dashboard cards when moving to mobile menu */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#mobile-menu .card {
    animation: slideInFromRight 0.3s ease-out;
}

/* Timer display fix */
#timer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffc8;
    margin-left: 20px;
}

/* Admin dashboard styles */
.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.admin-card {
    cursor: pointer;
    padding: 20px;
}

.admin-card:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

/* Form validation styles */
input:invalid {
    border-color: var(--error-color);
}

input:valid {
    border-color: var(--success-color);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile notification positioning fix */
@media (max-width: 768px) {
    .notification {
        top: 60px;
    }
}

/* --- My Investment Card Beautification --- */

/* Main card style with a subtle gradient and refined shadow */
.card.my-investment {
    background: linear-gradient(145deg, #252830, #1e2026);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3),
        inset 0px 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Adds a subtle glow to the main header text */
.card.my-investment h3 {
    color: #00bfff;
    /* Deep Sky Blue */
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

/* Enhances the total investment amount with a text shadow */
.card.my-investment .amount {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* --- Individual Investment Item Styling --- */

/* Styles each investment row with a hover effect for interactivity */
.investment-item {
    background-color: rgba(42, 46, 55, 0.7);
    /* Slightly transparent background */
    border-left: 4px solid #00bfff;
    backdrop-filter: blur(3px);
    /* Frosted glass effect */
    transition: all 0.25s ease-in-out;
}

/* On hover, the item lifts and glows, providing user feedback */
.investment-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-left-color: #ffffff;
}

/* Makes the descriptive labels slightly more subtle */
.item-label {
    color: #b0b0b0;
    font-weight: 400;
    /* Lighter than the value */
}

/* --- Specific Value Styling --- */

/* Applies a vibrant green color for the investment amount */
.item-value.amount {
    color: #28a745;
    /* Bootstrap success green */
    font-weight: 700;
}

/* Applies a striking amber color for the package name */
.item-value.package {
    color: #ffc107;
    /* Bootstrap warning amber */
    font-weight: 600;
}

/* --- Status Pill Enhancement --- */

/* Base style for the status pill */
.item-value.status {
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* A modern, gradient blue for "Active" status */
.item-value.status.active {
    background: linear-gradient(45deg, #007bff, #00bfff);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* A sleek, metallic gray for "Completed" status */
.item-value.status.completed {
    background: linear-gradient(45deg, #6c757d, #495057);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* --- Placeholder for No Investments --- */

.no-investments-placeholder {
    opacity: 0.7;
    /* Makes it slightly less prominent */
}

/* Applies a gradient to the placeholder icon and a subtle animation */
.no-investments-placeholder i {
    color: #555;
    background: linear-gradient(145deg, #444, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite ease-in-out;
}

/* Simple pulse animation for the icon */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* --- Scrollbar Customization --- */

.investment-list::-webkit-scrollbar-thumb {
    background: #555;
    border: 1px solid #2a2e37;
}

.investment-list::-webkit-scrollbar-thumb:hover {
    background: #00bfff;
}

/* Apply this globally to prevent box-model issues */
* {
    box-sizing: border-box;
}

/* This targets the main popup container */
.popup-container,
.modal-container {
    /* This is the key to centering the content perfectly */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Force the container to take up the full viewport */
    width: 100vw;
    height: 100vh;

    /* Ensure it's fixed in the middle of the screen */
    position: fixed;
    top: 0;
    left: 0;

    /* Add padding to the parent, not the child, to prevent overflow */
    padding: 0 15px;
}

/* This targets the content inside the popup, making it responsive */
.popup-content,
#withdrawal-container .form-card {
    /* Remove the width: 100% rule if it exists */
    width: 100%;
    /* Set a max-width for larger screens, like tablets */
    max-width: 400px;
    /* This margin ensures the inner content has space from the edges */
    margin: 0 auto;
}

/* Add this to your existing style.css file */

/* Styling for the disabled state of the withdrawal card */
.card.withdrawal.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #3a3a3a, #5a5a5a);
    pointer-events: none;
    /* This is crucial to prevent clicks */
    box-shadow: none;
    transform: none;
}

.card.withdrawal.disabled::before {
    opacity: 0;
    /* Hide hover effect */
}

.card.withdrawal.disabled h3,
.card.withdrawal.disabled .icon {
    color: #888;
}

/* Styling for the new Manage Deposits card in the admin panel */
.admin-card.manage-deposits .icon {
    color: #f0ad4e;
    /* A distinct color for deposits */
}

/* Styling for the payment proof modal */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
}

#proof-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
}

.close-modal-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

/* --- Receipt Modal Styles --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 75vh;
    /* Limit image height */
    border: 1px solid #ddd;
    border-radius: 4px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
}

/* Admin List Items */
.admin-list-item {
    background: #1e293b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #334155;
}

.admin-list-item .item-details p {
    margin: 5px 0;
    font-size: 14px;
}

.admin-list-item .item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Admin Forms */
.admin-toolbar {
    margin-bottom: 20px;
}

.admin-toolbar input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #334155;
    background: #1e293b;
    color: white;
}

/* Form Sections */
#admin-invest-form-section,
#admin-profit-form-section,
#admin-referral-form-section {
    margin-top: 20px;
    padding: 15px;
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
}

/* Wide form cards for lists */
.form-card.wide {
    max-width: 800px;
}

/* Make the referral card look clickable */
.card.referral {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

/* Optional: Add a subtle press-down effect on click */
.card.referral:active {
    transform: scale(0.98);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin: 10px 0;
}

.mobile-menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-list a:hover {
    color: #00ffcc;
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.investment-timer {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #007bff;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 12px;
    height: 6px;
    margin-top: 3px;
    overflow: hidden;
}

.progress-fill {
    background: #28a745;
    height: 100%;
    width: 0;
    transition: width 1s linear;
}

/* WhatsApp floating button styles */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

.whatsapp-float:hover+.whatsapp-tooltip {
    opacity: 1;
}

/* Hide dashboard logout button on screens <= 768px */
@media (max-width: 768px) {
    #dashboard .logout-btn {
        display: none !important;
    }
}

/* Add this to your responsive.css file */
@media (max-width: 768px) {
    #logout-button {
        display: none;
        /* Hides the original button on mobile */
    }
}

/* Style the new logout link in the menu */
#mobile-menu-logout {
    cursor: pointer;
    color: #ff4d4d;
    /* Make it stand out */
    font-weight: bold;
}

/* Add this CSS to your primary stylesheet */
#mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    /* Start off-screen */
    width: 250px;
    height: 100%;
    background-color: #1e2a38;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 60px;
}

body.menu-open #mobile-menu {
    left: 0;
    /* Slide into view */
}

.special-trade-btn {
    font-family: 'Pacifico', cursive;
    font-size: 1.4rem;
    color: #fff;
    background: transparent;
    border: none;
    padding: 10px 30px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    max-width: 0;
    transform: translateX(-1.8%);
    animation: handwriting 4s steps(40, end) forwards, blink 0.8s step-end infinite;
}

.zipper-overlay {
    text-align: center;
}

@keyframes handwriting {
    from {
        max-width: 0;
    }

    to {
        max-width: 40ch;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Add this CSS to your style.css file */

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #c82333;
}

.role-admin {
    color: #ff6b6b;
    font-weight: bold;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.role-user {
    color: #4ecdc4;
    font-weight: bold;
    background-color: rgba(78, 205, 196, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Ensure buttons are properly spaced */
.suspend-btn,
.reactivate-btn,
.delete-btn {
    min-width: 80px;
}

.admin-list-item {
    border-left: 4px solid transparent;
}

.admin-list-item .role-admin {
    border-left: 4px solid #ff6b6b;
}

/* Investment Management Styles */
.investment-management-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #334;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.investment-item {
    border-left: 4px solid #4a90e2;
}

.investment-item .status-active {
    color: #4caf50;
}

.investment-item .status-completed {
    color: #ff9800;
}

.progress-bar-container {
    display: inline-block;
    width: 100px;
    height: 8px;
    background: #334;
    border-radius: 4px;
    margin: 0 10px;
    vertical-align: middle;
}

.progress-bar {
    display: block;
    height: 100%;
    background: #4caf50;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.adjust-btn {
    background: #ff9800;
}

.mature-btn {
    background: #4caf50;
}

.mature-button {
    background: #4caf50;
    margin-left: 10px;
}

.investment-details {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #4a90e2;
}