* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    background: #0b0f19;
    color: #f1f5f9;
    min-height: 100vh;
}

.header-container {
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    padding-bottom: 25px;
    border-bottom: 1px solid #1e293b;
}

#accountSelect{
    margin-top: 7px;
}

#withdrawAmount{
    margin-top: 7px;
}

#addAccountBtn{
    margin-top: 7px;
}

#totalLimitInput{
    margin-top: 7px;
    margin-bottom: 7px;
}
#confirmBuyBtn{
    margin-top: 7px;
}

.filter-section input, 
.filter-section select, 
.filter-section button {
    border-radius: 30px;
    padding: 10px 15px;
    border: none;
    background: #1f2937;
    color: white;
}
.filter-section input:focus, 
.filter-section select:focus {
    outline: 2px solid #3b82f6;
}

.pagination-controls select, 
.pagination-controls button {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}
.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.due-link {
    text-align: center;
    margin: 15px 0;
}
.due-link a {
    color: #f97316;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    background: #1f2937;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    transition: 0.2s;
}
.due-link a:hover {
    background: #f97316;
    color: #0f172a;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    gap: 15px;
}

@media screen and (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 15px 20px;
        gap: 12px;
    }
    .top-bar .right-side,
    .top-bar .center-side,
    .top-bar .left-side {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    #openModalBtn {
        width: 100%;
        max-width: 200px;
    }
}

.center-side h1 {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(to right, #f1c40f, #f39c12);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.right-side #liveClock {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 30px;
    color: #38bdf8;
}

#openModalBtn {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.account-select-box {
    max-width: 650px;
    margin: 15px auto 0;
    text-align: center;
    padding: 0 20px;
}

.account-select-box select {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    color: white;
}

.balance-display, 
.free-send-button,
.limit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 30%;
    min-width: 145px;
    padding: 0px;
    border-radius: 30px;        
    font-size: 13px;
    font-weight: 600;
    border: none;               
    color: white;               
    box-sizing: border-box;     
    vertical-align: middle;     
    line-height: 1;             
    margin: 5px;
    line-height: 46px;
    padding-top: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

@media screen and (max-width: 520px) {
    .balance-display, 
    .free-send-button,
    .limit-button {
        width: 100%;
        margin: 5px 0;
    }
}

.limit-bg-green { background: #10b981 !important; cursor: pointer; }
.limit-bg-yellow { background: #facc15 !important; color: #000 !important; cursor: pointer; }
.limit-bg-red { background: #ef4444 !important; cursor: pointer; }

.limit-button {
    transition: 0.2s;
    font-family: system-ui, sans-serif;
    padding-top: 0px;
}
.limit-button:hover {
    transform: scale(1.03);
}

.balance-display {
    background: #059669;
}

.free-send-button {
    background: #f97316;
    cursor: pointer;
    transition: 0.5s;
    font-family: system-ui, sans-serif;
    padding-top: 0px;
}

.free-send-button:hover {
    background: #ea580c;
    transform: scale(1.03);
}

.expiry-warning {
    font-size: 1rem;
    margin-left: 0px;
}

.expiry-green {
    color: #4ade80;
}

.expiry-yellow {
    color: #facc15;
}

.expiry-red {
    color: #f87171;
}

.main-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 25px 15px;
}

.transaction-box,
.history-box {
    background: #111827;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid #1f2937;
}

h2 {
    color: #f1c40f;
    margin-bottom: 20px;
    border-bottom: 1px solid #1f2937;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dash-card {
    background: #1f2937;
    padding: 20px;
    border-radius: 16px;
    border-left: 5px solid;
}

.dash-title-flex {
    display: flex;
    justify-content: space-between;
}

.eye-btn {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    font-size: 1.2rem;
}

.capital-section {
    background: #1e1b4b;
    margin-top: 25px;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
}

.withdraw-form-box {
    background: #0f172a;
    border: 1px dashed #ef4444;
    padding: 20px;
    border-radius: 14px;
    margin-top: 25px;
}

.withdraw-flex {
    display: flex;
    gap: 12px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.btn-withdraw {
    background: #dc2626 !important;
    width: auto !important;
    padding: 0 25px !important;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    color: white;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

#transactionList li {
    background: #1f2937;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trx-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-trx-edit {
    background: #2563eb;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    color: white;
}

.btn-trx-delete {
    background: #dc2626;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #111827;
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #273549;
}

.suggestions-box {
    position: absolute;
    width: 100%;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #374151;
}

.suggestion-item:hover {
    background: #374151;
}

.filter-btn {
    background: #1f2937;
    border: 1px solid #374151;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}
.filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
}
.filter-btn:hover {
    background: #374151;
}

#profitHistoryList li {
    background: #1f2937;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .withdraw-flex {
        flex-direction: column;
    }
    .btn-withdraw {
        width: 100% !important;
    }
    .account-form-grid {
        grid-template-columns: 1fr;
    }
    .filter-buttons {
        justify-content: center;
    }
}