* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif
}

body {
    background: #121212;
    color: #fff;
    padding-bottom: 90px;
    transition: .3s;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, .8)
}

body.light-mode {
    background-color: #f3f4f6;
    color: #1e293b
}

body.light-mode header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05)
}

body.light-mode .logo {
    color: #f59e0b
}

body.light-mode .bottom-nav {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, .03)
}

body.light-mode .nav-item {
    color: #64748b
}

body.light-mode .nav-item.active {
    color: #10b981
}

body.light-mode .auth-box,
body.light-mode .balance-box,
body.light-mode .contact-tabs,
body.light-mode .info-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .02)
}

body.light-mode .square-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
    background-color: #fff
}

body.light-mode .square-card h3 {
    background: linear-gradient(to top, rgba(255, 255, 255, .95), rgba(255, 255, 255, .7));
    color: #1e293b;
    text-shadow: none;
    font-weight: 800
}

body.light-mode .history-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .02)
}

body.light-mode .hist-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0
}

body.light-mode .hist-val {
    color: #0f172a
}

body.light-mode .hist-key {
    color: #64748b
}

body.light-mode .auth-input,
body.light-mode .search-input {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .02)
}

body.light-mode .search-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .2)
}

body.light-mode .setting-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .02)
}

body.light-mode .pack-box {
    background: #fff;
    border: 1px solid #e2e8f0
}

body.light-mode .pack-box.selected {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 0 0 1px #10b981
}

body.light-mode .pack-name {
    color: #1e293b;
    font-weight: 700
}

body.light-mode .auth-btn,
body.light-mode .buy-btn {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 6px rgba(16, 185, 129, .2)
}

body.light-mode .topup-btn {
    border-color: #10b981;
    color: #10b981
}

body.light-mode .topup-btn:hover {
    background: #10b981;
    color: #fff
}

body.light-mode .contact-tab {
    color: #4b5563;
    border-color: #e2e8f0
}

body.light-mode .contact-tab.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981
}

body.light-mode .section-title {
    color: #f59e0b
}

body.light-mode .floating-circle {
    border-color: #f3f4f6
}

body.light-mode .stylish-back-btn {
    background: #e2e8f0;
    color: #1e293b
}

body.light-mode .stylish-back-btn:hover {
    background: #f59e0b;
    color: #fff
}

body.light-mode .fullscreen-overlay {
    background: #f3f4f6
}

body.light-mode .reject-reason {
    color: #dc2626;
    background: rgba(239, 68, 68, .1);
    border-color: #dc2626
}

body.light-mode .mt-amt-card,
body.light-mode .mt-op-card {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

body.light-mode .mt-amt-card.selected,
body.light-mode .mt-op-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 0 0 1px #10b981
}

body.light-mode .mt-amt-val,
body.light-mode .mt-op-name {
    color: #1f2937
}

body.light-mode #mobile-topup-page .info-box {
    background: #fff;
    border-color: #e5e7eb
}

body.light-mode #mt-phone {
    color: #1f2937
}

body.light-mode #mobile-topup-page>.info-box>div:first-of-type {
    background: #f9fafb;
    border-color: #d1d5db
}

header {
    background: #1e1e1e;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    left: 0;
    right: 0
}

.logo {
    color: #FFD700;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center
}

.header-actions {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: center
}

.icon-btn {
    position: relative;
    font-size: 20px;
    cursor: pointer
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    width: 14px;
    height: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700
}

.stylish-back-btn {
    position: absolute;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #2a2a2a;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    color: #FFD700
}

.stylish-back-btn:active,
.stylish-back-btn:hover {
    background: #FFD700;
    color: #000;
    transform: scale(.95)
}

.back-icon {
    font-size: 14px
}

.back-text {
    font-size: 13px;
    font-weight: 700
}

main,
.sub-page {
    padding-top: 20px;
    width: 100%
}

.section-title {
    font-size: 16px;
    margin: 0 20px 20px;
    color: #FFD700
}

.search-container {
    margin: 0 20px 20px;
    position: relative
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: .3s
}

.search-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, .3)
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 15px;
    padding: 0 20px;
    width: 100%
}

.square-card {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #222;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 1px solid #333;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform .2s
}

.square-card:active {
    transform: scale(.95);
    border-color: #FFD700
}

.square-card h3 {
    position: absolute;
    bottom: 0;
    z-index: 2;
    width: 100%;
    text-align: center;
    font-size: 11px;
    padding: 10px 5px 8px;
    font-weight: 700;
    background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
    color: #fff
}

.sub-page,
.tab-content {
    display: none
}

.active {
    display: block
}

.auth-box,
.info-box {
    background: #1e1e1e;
    margin: 0 20px 20px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #444;
    background: #121212;
    color: #fff
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 15px
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888
}

.pwd-field {
    padding-left: 45px;
    padding-right: 45px;
    margin: 0
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888;
    cursor: pointer
}

.contact-tabs {
    display: flex;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #121212
}

.contact-tab {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    border-right: 1px solid #444;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px
}

.contact-tab:last-child {
    border-right: none
}

.contact-tab.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 20px
}

.pack-box {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer
}

.pack-box.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, .1)
}

.pack-name {
    font-size: 12px;
    color: #FFD700;
    margin-bottom: 5px
}

.auth-btn,
.buy-btn {
    width: 90%;
    margin: 20px 5%;
    padding: 15px;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s
}

.auth-btn:active,
.buy-btn:active {
    transform: scale(.98)
}

.mt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
}

.mt-op-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s
}

.mt-op-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, .1);
    box-shadow: 0 0 0 1px #10b981
}

.mt-op-card img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px
}

.mt-op-name {
    font-weight: 700;
    font-size: 13px;
    color: #fff
}

.mt-amt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.mt-amt-card {
    padding: 12px 5px;
    text-align: center;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s
}

.mt-amt-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, .1);
    box-shadow: 0 0 0 1px #10b981
}

.mt-amt-val {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px
}

.mt-amt-mmk {
    font-size: 10px;
    color: #888;
    font-weight: 700
}

.mt-amt-pay {
    font-size: 11px;
    color: #10b981;
    margin-top: 6px;
    font-weight: 700;
    min-height: 14px
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    max-width: 480px;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 100%;
    background: #1e1e1e;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 10px 0 15px;
    z-index: 100;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, .5)
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    transition: .3s
}

.nav-item.active {
    color: #FFD700
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 3px
}

.text-icon {
    background: #FFD700;
    color: #000;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    display: inline-block
}

.nav-item.active .text-icon {
    background: #fff
}

.center-float {
    position: relative;
    top: -25px
}

.floating-circle {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #10b981, #047857);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    box-shadow: 0 5px 15px rgba(16, 185, 129, .4);
    border: 5px solid #121212;
    transition: .3s;
    color: #fff
}

.floating-circle:active {
    transform: scale(.9)
}

.mt-float {
    margin-top: 5px
}

.profile-header {
    text-align: center;
    padding: 30px 20px
}

.profile-avatar-container {
    position: relative;
    width: 95px;
    height: 95px;
    margin: 0 auto 15px;
    cursor: pointer;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #FFD700;
    border: 2px solid #FFD700;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3)
}

.edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #FFD700;
    color: #000;
    font-size: 12px;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .5)
}

.balance-box {
    background: #1e1e1e;
    margin: 0 20px 20px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
}

.topup-btn {
    background: transparent;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: .3s
}

.topup-btn:hover {
    background: #FFD700;
    color: #000
}

.settings-list {
    padding: 0 20px
}

.settings-title {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
    padding-left: 5px
}

.setting-item {
    background: #1e1e1e;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .2s
}

.setting-item:active {
    transform: scale(.98)
}

.lang-select {
    background: transparent;
    color: inherit;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 5px 10px;
    outline: none;
    font-size: 13px;
    cursor: pointer
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #121212;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center
}

.overlay-content {
    padding: 30px
}

.auth-modal {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000
}

.modal-content {
    background: #1e1e1e;
    padding: 25px;
    width: 85%;
    max-width: 400px;
    border-radius: 15px;
    border: 1px solid #333
}

.payment-method {
    border: 1px solid #444;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .2s
}

.payment-method:active {
    background: #333
}

.file-upload-box {
    border: 2px dashed #FFD700;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 215, 0, .05);
    transition: .3s
}

#history-list {
    padding: 0 20px
}

.history-card {
    background: #1e1e1e;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2)
}

.hist-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(0, 0, 0, .2);
    border-bottom: 1px dashed #444;
    align-items: center
}

.hist-status {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px
}

.hist-date {
    font-size: 11px;
    color: #aaa
}

.hist-body {
    padding: 15px
}

.hist-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px
}

.hist-key {
    color: #888
}

.hist-val {
    color: #fff;
    text-align: right;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px
}

.hist-copy {
    cursor: pointer;
    color: #888;
    font-size: 16px;
    margin-right: 5px
}

.status-success {
    color: #10b981;
    background: rgba(16, 185, 129, .1)
}

.status-pending {
    color: #f59e0b;
    background: rgba(245, 158, 11, .1)
}

.status-rejected {
    color: #ef4444;
    background: rgba(239, 68, 68, .1)
}

.reject-reason {
    margin-top: 12px;
    background: rgba(239, 68, 68, .1);
    border: 1px dashed #ef4444;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #fca5a5
}

#main-header {
    padding-top: 40px !important;
    height: 105px !important;
}