

/* --- Main Layout --- */
.dashboard-grid {
    width: 100%;
    max-width: 1400px; /* Max width for large screens */
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px; /* Consistent gap between rows */
    padding: 40px 20px 40px 20px;
}

.dashboard-row {
    display: flex;
    flex-wrap: wrap; /* This is key for responsiveness */
    gap: 24px; /* Consistent gap between items */
}

/* --- Panel Base Styles --- */
.panel {
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden; /* To contain background effects */
}

.panel-content {
    display: flex;
    flex-direction: column;
}

/* --- Typography --- */
.panel-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f9f9f9; /* Lighter gray for titles */
    margin-bottom: 6px;
}

.panel-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.panel-value-large {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
}

/* --- Top Row: Balance Panel --- */
.balance-panel {
    /* Flex: Grow 1, Shrink 1, Basis 350px */
    flex: 1 1 350px; 
    background: linear-gradient(130deg, #a75ef0, #f767ae);
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the top */
    padding-top: 30px;
}

.balance-panel .panel-title {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1rem;
}

/* Faint background wallet icon */
.balance-panel .panel-icon-bg {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 120px;
    opacity: 0.1;
    z-index: 1;
}

/* Faint top-left circle */
.balance-panel .panel-circle-bg {
    content: '';
    position: absolute;
    top: -40px;
    left: 20px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 1;
}

.balance-panel .panel-content {
    z-index: 2; /* Ensures text is above bg elements */
}


/* --- Top Row: Stats Collection (2x2) --- */
.stats-collection {
    /* Flex: Grow 2, Shrink 1, Basis 500px */
    flex: 2 1 500px; 
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-panel {
    /* Flex: Grow 1, Shrink 1, Basis 45% (calc for gap) */
    /* This forces the 2x2 layout */
    flex: 1 1 calc(50% - 12px); 
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 93px; /* Matches the (210px / 2) - gap */
}

.stat-panel .panel-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: #fff;
}

/* --- Bottom Row: Detail Panels --- */
.detail-panel {
    /* Flex: Grow 1, Shrink 1, Basis 250px */
    /* This creates 4 columns on wide screens, 2 on tablet, 1 on mobile */
    flex: 1 1 250px; 
    background-color: #2b2b31; /* Darker panel background */
}

.detail-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.detail-icon-wrap span {
    font-size: 1.4rem;
    color: #1a1a1e; /* Dark icon to match bg */
}

.detail-panel .panel-title {
    display: block;
}

.detail-panel .panel-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 0.3;
}


/* --- Color Utility Classes --- */
.bg-blue { background-color: #50a1ff; }
.bg-red { background-color: #ff6b81; }
.bg-green { background-color: #4ade80; }
.bg-orange { background-color: #fa8231; }

.bg-light-orange { background-color: #ffbda1; }
.bg-light-blue { background-color: #a4d8ff; }
.bg-light-green { background-color: #a7f3d0; }

/* GLOW EFFECTS */
.glow-purple { box-shadow: 0 0 15px #d148ff; }
.glow-blue { box-shadow: 0 0 15px #2ea3ff; }
.glow-green { box-shadow: 0 0 15px #42ff76; }
.glow-pink { box-shadow: 0 0 15px #ff5f8f; }
.glow-orange { box-shadow: 0 0 15px #ffa342; }



.dashboard-referral {
    width: 100%;
}
p.dash-ref-p {
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
}
.dashboard-referral-container {
    display: flex;
}
.dashboard-referral-container input {
    width: 95%;
    padding: 15px 15px;
    background: #77ff77;
    border: none;
}
.dashboard-referral-container input:focus {
    outline: none;
    background: #99ff99;
}
.dashboard-referral-container span {
    width: 5%;
    background: linear-gradient(95deg, #33ff33, #009900);
    padding: 10px 15px;
    color: #fff;
    font-weight: 600;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.dashboard-referral-container span:hover {
    background: linear-gradient(95deg, #009900, #33ff33);
}

/* --- Responsive Container --- */
.dashboard-referral-list-container {
    background: #99ff99;
    width: 100%;
    /* This makes the table scrollable horizontally on small screens */
    overflow-x: auto;
    /* Adds a nice shadow to hint at scrollable content */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background-color: #ffffff;
}

/* --- Table Styling --- */
.dashboard-referral-list-container table {
    width: 100%; /* Ensures table tries to fill its container */
    /*
      'min-width' is optional but good for tables with few columns
       to ensure they don't look cramped on wider screens.
       You can set it to a value like 600px.
    */
    /* min-width: 600px; */
    border-collapse: collapse; /* Removes default spacing between cells */
    white-space: nowrap; /* Prevents text from wrapping */
}

/* --- Table Header --- */
.dashboard-referral-list-container thead tr {
    background-color: #f8f9fa; /* Light grey header background */
    border-bottom: 2px solid #dee2e6; /* Bolder bottom border for header */
}

/* --- Table Header & Data Cells --- */
.dashboard-referral-list-container th, td {
    padding: 12px 16px; /* Comfortable padding */
    text-align: left; /* Aligns text to the left */
    vertical-align: middle;
}

.dashboard-referral-list-container th {
    font-weight: 600; /* Makes header text bold */
    color: #495057;
    text-transform: uppercase; /* Optional: styles header text */
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* --- Striped Body Rows --- */
.dashboard-referral-list-container tbody tr {
    border-bottom: 1px solid #e9ecef; /* Light border for each row */
}

.dashboard-referral-list-container tbody tr:nth-of-type(even) {
    /* This creates the "stripes" */
    background-color: #f8f9fa; 
}

/* --- Hover Effect --- */
.dashboard-referral-list-container tbody tr:hover {
    background-color: #e9ecef; /* Adds a hover effect for better UX */
    cursor: pointer;
}
.dashboard-referral-list-container .no-more {
    padding: 30px 0;
    text-align: center;
    font-size: 12px;
    color: grey;
}





/* ✅ Mobile Responsive */
@media (max-width: 900px) {


    .dashboard-grid {
        padding: 40px 10px;
    }

    .panel.stat-panel .panel-icon {
        display: none;
    }
    .dashboard-referral-container input {
        width: 80%;
    }
    .dashboard-referral-container span {
        width: 20%;
    }
    .dashboard-referral-list-container tbody tr {
        font-size: 14px;
    }
}




/* --- Plans Section Layout --- */
.plans-section {
    width: 100%;
}

.plans-container {
    display: flex;
    flex-wrap: wrap; /* Allows plans to stack on smaller screens */
    gap: 24px; /* Space between each plan item */
    justify-content: center; /* Center items when they wrap */
}

.plan-item {
    flex: 1 1 340px; /* Grow, shrink, and base width. Allows 3 per row on wide screens, 1 on mobile */
    max-width: 450px; /* Prevents items from getting too wide in a row */
    background-color: #2b2b31; /* Darker background for each plan box */
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* For ROI tag positioning */
}

/* --- Plan Header & ROI Tag --- */
.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.plan-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.plan-subtitle {
    font-size: 0.9rem;
    color: #c1c1c1;
    margin-bottom: 25px;
}

.roi-tag {
    background: linear-gradient(95deg, #33ff33, #009900); /* Gradient for the ROI tag */
    border-radius: 10px;
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute; /* Positioned to the top right */
    top: 20px;
    right: 20px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.roi-tag span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.roi-tag strong {
    font-size: 1.0rem;
    color: #ffffff;
}

/* --- Plan Features --- */
.plan-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-icon {
    color: #4ade80; /* Green checkmark */
    font-size: 1rem;
    margin-right: 10px;
    min-width: 20px; /* Ensure icon doesn't shrink */
}

.feature-label {
    flex-grow: 1; /* Pushes value to the right */
    font-size: 0.95rem;
    color: #c1c1c1;
}

.feature-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

/* --- Affiliate Section --- */
.affiliate-section {
    margin-top: auto; /* Pushes to the bottom above the button */
    margin-bottom: 30px;
}

.affiliate-title {
    font-size: 0.9rem;
    color: #c1c1c1;
    margin-bottom: 15px;
}

.affiliate-levels {
    display: flex;
    flex-wrap: wrap; /* Allows levels to wrap if too many */
    gap: 10px;
}

.level-tag {
    background-color: #3b3b42; /* Darker background for level tags */
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    line-height: 1.2;
    min-width: 60px; /* Ensures consistent width */
    text-align: center;
}

.level-tag span:first-child {
    font-weight: 600;
    color: #99ff99; /* Pinkish color for percentage */
    margin-bottom: 2px;
}

.level-tag span:last-child {
    color: #c1c1c1;
    font-size: 0.65rem;
}

/* --- Invest Button --- */
.invest-button {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(95deg, #33ff33, #009900); /* Gradient button */
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.invest-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}






/* --- Main Page Container --- */
.payment-page-container {
    width: 100%;
     /* Max width for the whole content area */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Gap between sections */
}

/* --- Shared Panel Styles --- */
.panel-box {
    background-color: #27272a; /* Darker background for panels */
    border-radius: 12px;
    padding: 25px;
}

.panel-box .panel-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 15px; /* Spacing for the line */
    border-bottom: 1px solid #3a3a3e; /* Separator line for title */
}

.panel-box .panel-content {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Default gap for content rows */
}
.panel-box .panel-content select {
    padding: 10px;
    margin: 10px 0;
    color: #27272a;
    cursor: pointer;
}

.address-input {
    width: 100%;
    display: flex;
    margin-bottom: 10px;
}
#btcaddd, #soladdd, #bnbaddd, #trcaddd, #ethaddd, #btcadd, #bnbadd, #ethadd, #trcadd, #soladd {
    display: none;
}
.address-input input {
    width: 85%;
    padding: 0 10px;
    color: #27272a;
    cursor: not-allowed;
}
.address-input span {
    width: 15%;
    background: linear-gradient(95deg, #33ff33, #009900);
    padding: 10px 15px;
    color: #fff;
    font-weight: 600;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border: none;
    cursor: pointer;
}

.panel-box .panel-content select:focus, .address-input input:focus {
    outline: none;
}

/* --- Info Panels Section (Top Row) --- */
.info-panels {
    display: flex;
    flex-wrap: wrap; /* Allows panels to stack on smaller screens */
    gap: 25px;
}

.bank-info-panel,
.payment-details-panel {
    flex: 1 1 calc(50% - 12.5px); /* Allows two panels side-by-side or one full width */
    min-width: 300px; /* Ensures panels don't get too small before wrapping */
}

/* --- Bank Info Panel Specifics --- */
.bank-info-panel .panel-content {
    gap: 0; /* Remove default gap to control spacing manually */
}

.field-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.field-row-header .field-label {
    font-size: 0.95rem;
    color: #c1c1c1;
}

.field-row-header .field-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
}

.address-box {
    background-color: #3b3b42; /* Slightly lighter background for the address */
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 25px;
    word-break: break-all; /* Ensures long address wraps */
}

.address-value {
    font-family: 'monospace'; /* Use monospace for address string */
    font-size: 0.9rem;
    color: #ffffff;
    text-align: center;
}

.qr-code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #3b3b42;
    border-radius: 8px;
    padding: 20px;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    object-fit: contain; /* Ensures image fits well */
    margin-bottom: 15px;
    border-radius: 8px; /* Slightly rounded corners for the QR code image */
}

.qr-address {
    font-family: 'monospace';
    font-size: 0.85rem;
    color: #ffffff;
    word-break: break-all;
    max-width: 90%; /* Limits width for better wrapping */
}

/* --- Payment Details Panel Specifics --- */
.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0; /* Spacing between rows */
    border-bottom: 1px dashed #3a3a3e; /* Dashed separator for rows */
}

.field-row:last-of-type {
    border-bottom: none; /* No border for the last row */
}

.field-row .field-label {
    font-size: 0.95rem;
    color: #c1c1c1;
}

.field-row .field-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}
.field-note {
    color: #fff;
    font-size: 15px;
}
.field-note .head {
    color: #c1c1c1;
    font-size: 18px;
}
.field-note p {
    margin: 10px 0 0 0;
}
.total-row {
    margin-top: 15px; /* Extra space before total */
    border-top: 1px solid #3a3a3e; /* Solid line before total */
    padding-top: 15px;
}

.total-row .field-label {
    font-weight: 600;
    color: #ffffff;
}

.total-row .field-value {
    font-weight: 600;
    color: #4ade80; /* Green color for total amount */
}

/* --- Requirements Panel Specifics (File Upload) --- */
.file-upload-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow elements to wrap on very small screens */
}

.file-upload-label {
    font-size: 0.95rem;
    color: #c1c1c1;
    min-width: 150px; /* Ensure label doesn't get too small */
}

.hidden-file-input {
    display: none; /* Hides the actual file input */
}

.custom-file-upload-button {
    background-color: #4b4b52; /* Button background color */
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.custom-file-upload-button:hover {
    background-color: #5d5d64;
}

.file-name-display {
    font-size: 0.9rem;
    color: #888888;
    flex-grow: 1; /* Allows it to take up remaining space */
}

/* --- Deposit Button --- */
.deposit-button {
    width: 200px; /* Fixed width for the button */
    padding: 15px 20px;
    background: linear-gradient(90deg, #ac62e1, #f966ac); /* Gradient button */
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    align-self: flex-start; /* Aligns to the left */
    margin-top: 10px; /* Space above button */
}

.deposit-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}





.investment-page-grid {
    display: flex;
    width:100%;
}
/* --- Main Container --- */
.investment-container {
    width: 60%;
    margin: auto 0 auto 10px;
    /*max-width: 600px;*/ /* Constraints the form width */
    background-color: #27272a; /* White background for the main form area */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Soft shadow */
    overflow: hidden; /* To contain the tab buttons */
}

/* --- Tab Navigation --- */
.tab-navigation {
    display: flex;
    /* Uses the top part of the container's background for tabs */
    background-color: #ffffff; 
    border-bottom: 1px solid #dee2e6; /* Separator line below tabs */
}

.tab-button {
    flex: 1 1 50%; /* Ensures two buttons take up 50% each */
    padding: 15px 10px;
    text-align: center;
    border: none;
    background-color: transparent;
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    border-bottom: 3px solid transparent; /* Placeholder for active tab underline */
}

.tab-button:hover:not(.active) {
    color: #007bff;
}

.tab-button.active {
    color: #007bff; /* Bright blue for active text */
    font-weight: 600;
    border-bottom-color: #007bff; /* Blue underline for active tab */
}

/* --- Form Panel Content --- */
.form-panel {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

/* Balance Text */
.balance-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.balance-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

/* Available Balance Tag (Orange) */
.available-balance-tag {
    background-color: #ff9800; /* Bright orange */
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content; /* Only takes up necessary space */
    margin-bottom: 25px;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da; /* Light grey border */
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 10px 15px;
}

.input-group input {
    flex-grow: 1;
    border: none;
    padding: 0;
    font-size: 1rem;
    color: #c1c1c1;
    background-color: transparent;
    outline: none; /* Removes default focus outline */
}

.input-group input[type=number]::-webkit-outer-spin-button,
.input-group input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
.input-group input[type=number] {
    -moz-appearance: textfield;
}


.input-group input::placeholder {
    color: #adb5bd;
}

.input-suffix {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    padding-left: 10px;
    border-left: 1px solid #ced4da; /* Separator line for suffix */
    height: 100%;
    display: flex;
    align-items: center;
}

/* Daily Earning Text */
.daily-earning {
    font-size: 0.9rem;
    color: #c1c1c1;
    margin-bottom: 25px;
}

/* Deduction Note */
.deduction-note {
    display: flex;
    align-items: flex-start;
    justify-content: center; /* Centers the whole note */
    text-align: center;
    font-size: 0.9rem;
    color: #c1c1c1;
    margin-bottom: 25px;
}

.deduction-note .info-icon {
    font-style: normal;
    font-weight: 600;
    color: #007bff; /* Blue color for info icon */
    margin-right: 5px;
}

/* Invest Now Button (Green) */
.invest-now-button {
    width: 100%;
    padding: 15px 20px;
    background-color: #28a745; /* Green color */
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.invest-now-button:hover {
    background-color: #218838;
}




/* --- Main Container for Layout --- */
.status-container {
    width: 40%;
    margin: auto 10px auto 0;
    /*max-width: 500px; /* Constraints the panel width */*/
}

/* --- Status Panel (The White Box) --- */
.status-panel {
    background-color: #27272a; /* White background */
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Spacing between sections */
}
.status-panel h3 {
    color: #fff;
}

/* --- Information Sections (Investment Capital, Daily Earnings) --- */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Spacing between label and value */
}

.info-label {
    font-size: 0.9rem;
    /*color: #6c757d;*/ /* Grey color for label */
    color: #fff;
    font-weight: 400;
}

.info-value {
    font-size: 1.15rem;
    color: #c1c1c1;
    font-weight: 400;
}

.bold-value {
    font-weight: 600;
}

/* --- Stop Button (Red) --- */
.stop-button {
    width: 100%;
    padding: 15px 20px;
    background-color: #dc3545; /* Prominent red color */
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px; /* Extra space above the button */
}

.stop-button:hover {
    background-color: #c82333;
}


/* ✅ Mobile Responsive */
@media (max-width: 900px) {

    .investment-page-grid {
        display: block;
    }
    .status-container, .investment-container {
        width: 100%;
        margin: 10px 0;
    }
    .address-input input {
        width: 75%;
    }
    .address-input span {
        width: 25%;
    }
    .field-note p {
        font-size: 13px;
    }
}








/* --- Global Reset & Body --- */

.settings-container {
    width: 100%;
    /*max-width: 1400px;*/
}

/* --- Header --- */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    /* Optional: If there's a light border under the header, add it here */
    /* border-bottom: 1px solid #3b3b42; */
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.change-password-link {
    color: #a75ef0; /* Purple accent color */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.change-password-link .icon {
    font-size: 1.1rem;
    margin-right: 5px;
}

/* --- Main Layout (Two Columns) --- */
.profile-layout {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on small screens */
    gap: 25px;
    margin-top: 50px;
}

.profile-column {
    /* Base styling for the column background */
    background-color: #27272a; 
    border-radius: 12px;
    padding: 30px;
    min-height: 500px; /* Ensures columns are visually aligned */
}

/* --- Left Column: Profile Picture Section --- */
.profile-picture-section {
    flex: 1 1 300px; /* Takes up minimum 300px, allows other column to grow */
    display: flex;
    flex-direction: column;
}

.profile-picture-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f9f9f9;
}

.image-box {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a square container */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #3b3b42; /* Darker background for image area */
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the box */
}

.hidden-file-input {
    display: none;
}

.choose-file-button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: linear-gradient(95deg, #33ff33, #009900); /* Gradient button */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
}

/* --- Right Column: Form Section --- */
.profile-form-section {
    flex: 2 1 600px; /* Allows this column to take up most of the remaining space */
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Gap between form rows/columns */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group.full-width {
    flex: 1 1 100%; /* Full width on any screen */
}

.form-group.half-width {
    /* 50% width minus the gap */
    flex: 1 1 calc(50% - 10px); 
}

.form-group label {
    font-size: 0.9rem;
    color: #c1c1c1;
    font-weight: 500;
}

.form-group input {
    background-color: #1a1a1e; /* Black background for input fields */
    border: 1px solid #3b3b42; /* Subtle border */
    border-radius: 6px;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #a75ef0; /* Purple focus ring */
    outline: none;
}

.form-group input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Update Button --- */
.update-button {
    width: 200px; /* Fixed width as seen in the image */
    padding: 15px 20px;
    background: linear-gradient(95deg, #33ff33, #009900); /* Gradient button */
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.update-button:hover {
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* --- Responsiveness (Optional adjustments for smaller screens) --- */
@media (max-width: 768px) {
    .profile-column {
        min-height: auto; /* Allow columns to shrink height on mobile */
        flex: 1 1 100%; /* Columns stack vertically */
    }
    
    .profile-form-section .form-group.half-width {
        flex: 1 1 100%; /* Half-width fields become full-width */
    }
    .profile-layout {
        margin-top: 0;
    }
}






/* --- Global Reset & Body --- */


/* --- Main Container --- */
.password-container {
    width: 100%;
    margin-top: 50px; /* Visual spacing from the top of the screen */
    display: flex;
}

/* --- Password Panel (The Black Box) --- */
.password-panel {
    background-color: #27272a; /* Slightly lighter dark background for the panel */
    border-radius: 12px;
    padding: 30px;
    width: 50%;
    margin: 10px;
.panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 10px;
    color: #ffffff;
}

/* --- Form Structure --- */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Spacing between form groups */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Spacing between label and input */
}
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


.form-group label {
    font-size: 1rem;
    color: #c1c1c1; /* Grey color for labels */
    font-weight: 500;
}

.form-group input {
    width: 100%;
    background-color: #1a1a1e; /* Black background for input fields */
    border: 1px solid #3b3b42; /* Subtle border */
    border-radius: 6px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input::placeholder {
    color: #6c757d;
}

.form-group input:focus {
    border-color: #a75ef0; /* Purple focus ring */
    outline: none;
}

/* --- Update Button (Gradient) --- */
.update-button {
    width: 100%;
    padding: 15px 20px;
    /* Gradient from previous designs */
    background: linear-gradient(95deg, #33ff33, #009900); /* Gradient button */
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px; /* Space above the button */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.update-button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}







/* --- Modal Background and Layout --- */
.modal-backdrop {
    /* Covers the entire screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black overlay */
    z-index: 1000;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #27272a; /* Dark background of the modal box */
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px; /* Constraints the modal size */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px); /* Initial state for animation */
    transition: transform 0.3s ease-out;
}

/* Class added by JS when modal is open */
.modal-backdrop.is-open .modal-content {
    transform: translateY(0);
}

/* --- Modal Header --- */
.modal-header {
   /* display: flex;
    justify-content: space-between;
    align-items: center;*/
    /*margin-bottom: 25px;*/
    margin: 25px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.modal-close-button {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #c1c1c1;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 15px;
    
}

/* --- Form Fields --- */
.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    font-size: 0.9rem;
    color: #c1c1c1;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.ticket-form input[type="text"],
.ticket-form textarea {
    width: 100%;
    background-color: #1a1a1e; /* Black background for input fields */
    border: 1px solid #3b3b42; 
    border-radius: 6px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 1rem;
    resize: none; /* Prevent manual resizing of textarea */
}

/* --- File Upload Styling --- */
.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-file-upload-button {
    background-color: #4b4b52; 
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.file-name-display {
    font-size: 0.9rem;
    color: #888888;
}

.hidden-file-input {
    display: none;
}

/* --- Modal Footer Buttons --- */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 10px;
}

.close-button {
    background-color: #4b4b52;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.create-button {
    padding: 10px 20px;
    /* Gradient from image */
    background: linear-gradient(5deg, #009900, #33ff33); /* Gradient button */
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

/* --- Placeholder Dashboard Button to Open Modal --- */
.create-ticket-button {
    /* Reusing the button class to open the modal */
    padding: 10px 20px;
    background: linear-gradient(90deg, #ac62e1, #f966ac);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {

    .password-container {
        display: block;
        margin-top: 0;
    }
    .password-panel {
        width: 100%;
        margin: 20px 0 0 0;
    }
}












.support-dashboard-container {
    width: 100%;
    /*max-width: 1200px;*/
}

.support-panel {
    background-color: #99ff99; /* Main panel background color */
    border-radius: 12px;
    padding: 20px 20px 5px 20px;
    margin-bottom: 20px;
}

/* --- Ticket Header & Tabs --- */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align tabs to the bottom of the section */
    margin-bottom: 25px;
}

.ticket-tabs {
    display: flex;
    gap: 20px;
    position: relative;
    /* Create the horizontal line under the tabs */
    padding-bottom: 5px;
    border-bottom: 1px solid #004d00; 
    width: 100%;
}

.tab {
    background: none;
    border: none;
    color: grey;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tab:hover:not(.active) {
    /*color: #ffffff;*/
    color: #004d00;
}

.tab.active {
    color: #004d00; /* Active tab text color */
    font-weight: 600;
}

/* Active tab underline */
.tab.active::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Position right above the border line */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #004d00;
    border-radius: 2px;
}

.tab .icon {
    font-size: 1.1rem;
    line-height: 1;
}

.tab .count {
    background-color: #4b4b52;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 5px;
}

/* --- Create Ticket Button (Gradient) --- */
.create-ticket-button {
    padding: 12px 20px;
    background: linear-gradient(95deg, #33ff33, #009900); /* Gradient button */
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-left: 20px; /* Space between tabs and button */
}

.create-ticket-button .icon {
    font-size: 1rem;
    transform: rotate(-10deg);
}

.create-ticket-button:hover {
    opacity: 0.9;
}


/* --- Table Styles --- */
.ticket-table-container {
    border-radius: 10px;
    overflow: hidden; /* Important to contain the gradient header and rounded corners */
}

.table-header-gradient {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(5deg, #009900, #33ff33); /* Gradient button */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Column Widths (Flex Basis ensures alignment) */
.table-header-gradient > span {
    flex: 1;
    text-align: left;
}

.col-id { flex: 0.5 0 100px; }
.col-subject { flex: 2 1 200px; }
.col-reply { flex: 1 0 120px; }
.col-action { flex: 1 0 120px; text-align: right; } /* Action column right alignment */


/* --- Table Body / No Data Found --- */
.table-body {
    background-color: #27272a;
    padding: 30px 20px;
    min-height: 100px; /* Gives some height to the no data message */
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-data-found {
    color: #c1c1c1;
    font-size: 1rem;
    font-style: italic;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ticket-tabs {
        border-bottom: none; /* Remove line under tabs */
    }

    .tab.active::after {
        display: none; /* Remove active underline on small screens */
    }

    .create-ticket-button {
        margin-left: 0;
        width: 100%;
    }
    
    .table-header-gradient {
        /* Stack the table headers vertically on small screens */
        display: none; 
    }
    
    /* In a real scenario, you'd use a different mobile table view here */
}