:root {
    --primary-color: #4e73df;
    --primary-dark: #2e59d9;
    --secondary-color: #858796;
    --background-color: #f0f2f5;
    --surface-color: #ffffff;
    --text-color: #333333;
    --text-light: #888888;
    --border-color: #e3e6f0;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --radius-md: 15px;
    --radius-lg: 25px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    margin: 0;
    min-height: 100vh;
    position: relative;
    background: #f4f6f9;
}

/* Header */
header {
    background-color: #fff;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.toggle-switch {
    display: flex;
    background: #f1f3f5;
    border-radius: 20px;
    padding: 2px;
    position: relative;
    width: 140px;
    height: 36px;
}

.toggle-switch input {
    display: none;
}

.toggle-switch label {
    flex: 1;
    text-align: center;
    line-height: 32px;
    z-index: 2;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    color: #888;
    transition: color 0.3s;
}

.toggle-switch input:checked+label {
    color: #fff;
}

.toggle-switch .slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 50%;
    height: 32px;
    background: var(--primary-color);
    border-radius: 18px;
    transition: transform 0.3s;
    z-index: 1;
}

.toggle-switch input#trust:checked~.slider {
    transform: translateX(100%);
}

/* Profile Section */
.profile-section {
    background: #fff;
    padding: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.user-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-avatar {
    width: auto;
    height: 50px;
    /*border-radius: 50%;*/
    margin-right: 10px;
    position: relative;
}

.user-avatar img {
    width: auto;
    height: 100%;
    border-radius: 40%;
    object-fit: contain;
}

.user-info h2 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.user-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #888;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding: 0 10px;
}

.stat-item .label {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
    display: block;
}

.stat-item .value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Cards */
.content-padding {
    padding: 0 2px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.attendance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.attendance-icon {
    width: 40px;
    height: 40px;
    background: #ffebee;
    color: #e74a3b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.attendance-text h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.attendance-text p {
    margin: 2px 0 0;
    font-size: 16px;
    font-weight: bold;
    color: #e74a3b;
}

.page-register .check-btn {
    width: 36px;
    height: 36px;
    background: #e74a3b;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Asset Cards */
.asset-card {
    color: #fff;
    padding: 25px;
}

.card-blue {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.card-dark {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}

.card-purple {
    background: linear-gradient(135deg, #8e24aa 0%, #4a148c 100%);
}

.card-mall {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
    opacity: 0.9;
}

.asset-amount {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.asset-sub {
    font-size: 13px;
    opacity: 0.8;
}

/* Action Links */
.action-links {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.action-link {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
}

.action-link i {
    margin-left: 5px;
    font-size: 10px;
    color: #999;
}

/* QR Section */
.qr-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.qr-card {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.qr-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 10px;
}

.qr-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.qr-green {
    background: #e8f5e9;
    color: #388e3c;
}

.qr-text span {
    display: block;
    font-size: 11px;
    color: #888;
}

.qr-text strong {
    font-size: 14px;
    color: #333;
}

/* Grid Menu */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #fff;
    padding: 10px 6px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.grid-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.grid-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 8px;
    border: 1px solid #eee;
    color: #555;
}

.grid-item span {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* Partner Banner */
.partner-banner {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    border-radius: 20px;
    padding: 25px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.partner-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.partner-content p {
    margin: 0 0 15px 0;
    font-size: 12px;
    opacity: 0.8;
}

.partner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
    display: inline-block;
}

/* Notice List */
.notice-section {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.notice-header h3 {
    margin: 0;
    font-size: 16px;
}

.notice-header a {
    font-size: 12px;
    color: #4e73df;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-badge {
    background: #333;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
}

.notice-content div {
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}

.notice-content span {
    font-size: 11px;
    color: #999;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 10px;
}

.nav-item.active {
    color: #4e73df;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-center {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4e73df 0%, #2e59d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-top: -30px;
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
}

/* Sidebar Styles (Preserved) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1002;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile .avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.user-profile .info .name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.user-profile .info .id {
    font-size: 12px;
    opacity: 0.8;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.sidebar-menu a:active {
    background: #f8f9fa;
}

.sidebar-menu a i {
    width: 24px;
    color: #999;
    margin-right: 10px;
    text-align: center;
}

.sidebar-menu .menu-category {
    padding: 15px 20px;
    font-size: 13px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-menu .menu-category:hover {
    background-color: #f8f9fa;
}

.sidebar-menu .menu-category i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.sidebar-menu .menu-category.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.sidebar-menu .submenu {
    display: none;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.sidebar-menu .submenu a {
    padding-left: 30px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.sidebar-menu .submenu a:last-child {
    border-bottom: none;
}

.sidebar-menu .menu-divider {
    height: 10px;
    background: #f5f5f5;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.sidebar-menu .logout-link {
    color: var(--danger-color);
}

.sidebar-menu .logout-link i {
    color: var(--danger-color);
}

/* Horizontal Scroll */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 5px;
    margin-bottom: 5px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE/Edge */
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    display: none !important;
}

.horizontal-card {
    flex: 0 0 auto;
    width: 50%;
    min-width: 150px;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Deposit History Styles */
.page-deposit-history .filter-section {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-deposit-history .filter-btn-group {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.page-deposit-history .filter-btn {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}

.filter-btn.active {
    background: #4e73df;
    color: #fff;
    border-color: #4e73df;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    background: #f9f9f9;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px;
    background: #fff;
}

.search-box input {
    border: none;
    outline: none;
    padding: 10px;
    flex: 1;
    font-size: 13px;
}

.summary-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: bold;
}

.summary-total {
    color: #e74a3b;
    font-size: 16px;
}

.page-deposit-history .history-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.page-deposit-history .history-card .row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.page-deposit-history .history-card .label {
    width: 80px;
    color: #888;
    flex-shrink: 0;
}

.page-deposit-history .history-card .value {
    color: #333;
    font-weight: 500;
}

.page-deposit-history .history-card .amount {
    color: #e74a3b;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-deposit-history .history-card .status {
    float: right;
    font-size: 12px;
    color: #888;
}

.page-deposit-history .pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.page-link {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    color: #666;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-link.active {
    background: #4e73df;
    color: #fff;
}

/* Deposit Notice Styles */
.page-deposit-notice .deposit-form-card {
    padding: 10px;
}

.page-deposit-notice .custom-input-group {
    margin-bottom: 15px;
    position: relative;
}

.page-deposit-notice .custom-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #333;
    outline: none;
}

.custom-input:focus {
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.2);
}

.page-deposit-notice .input-group-row {
    display: flex;
    gap: 10px;
}

.required-dot {
    color: #e74a3b;
    position: absolute;
    top: 18px;
    left: 15px;
    font-size: 8px;
    z-index: 1;
}

.custom-input.has-dot {
    padding-left: 30px;
}

.page-deposit-notice .status-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #5a5c69;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 13px;
    z-index: 1000;
}

.refresh-icon {
    font-size: 16px;
    color: #4e73df;
    margin-left: 5px;
    cursor: pointer;
}

/* Withdraw Request Styles */
.page-withdraw-request .balance-gradient-card {
    background: linear-gradient(135deg, #4e73df 0%, #8e24aa 100%);
    border-radius: 20px;
    padding: 30px 20px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

.page-withdraw-request .balance-gradient-card h2 {
    font-size: 32px;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.page-withdraw-request .balance-gradient-card p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.page-withdraw-request .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.page-withdraw-request .condition-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 11px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-withdraw-request .condition-table th,
.page-withdraw-request .condition-table td {
    padding: 8px;
    border: 1px solid #eee;
    text-align: center;
}

.bg-beige {
    background-color: #fff8e1;
}

.bg-green-light {
    background-color: #e8f5e9;
}

.bg-pink-light {
    background-color: #fce4ec;
}

.page-withdraw-request .calc-section {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.page-withdraw-request .calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.calc-row.total {
    font-size: 16px;
    font-weight: bold;
    color: #e74a3b;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.page-withdraw-request .bank-account-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.page-withdraw-request .income-tax-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.page-withdraw-request .security-pw-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e74a3b;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    color: #e74a3b;
}

.page-withdraw-request .bottom-warning-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #5a5c69;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    z-index: 1000;
}

/* Payment Confirm Styles */
.page-payment-confirm .payment-summary-banner {
    background-color: #e8eaf6;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
}

.payment-count {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.page-payment-confirm .payment-label {
    font-size: 14px;
    color: #666;
}

.page-payment-confirm .empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    color: #ccc;
}

/* Today Deposit Styles */
.page-today-deposit .today-deposit-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 20px;
}

.page-today-deposit .card-header-total {
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
}

.card-body-empty {
    padding: 60px 20px;
    text-align: center;
    color: #333;
    font-size: 14px;
}

.card-footer-amount {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.footer-amount-value {
    color: #e74a3b;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-amount-label {
    font-size: 12px;
    color: #888;
}

/* Withdraw History Styles */
.page-deposit-history .history-card .amount.red {
    color: #e74a3b;
    font-size: 20px;
    font-weight: bold;
}

.page-deposit-history .history-card .sub-info {
    font-size: 12px;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.page-deposit-history .history-card .sub-info.blue {
    color: #4e73df;
}

.page-deposit-history .history-card .sub-info.red {
    color: #e74a3b;
}

.page-deposit-history .history-card .divider {
    border-top: 1px solid #eee;
    margin: 10px 0;
}

/* Login & Register Styles */
.page-login .login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.page-login .login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.page-login .lang-select {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.page-login .input-colored-border {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    outline: none;
}

.border-green {
    border-left-color: #20c997;
}

.border-red {
    border-left-color: #e74a3b;
}

.page-login .login-btn {
    width: 100%;
    padding: 15px;
    background: #002f87;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    cursor: pointer;
}

.page-login .login-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.page-login .action-btn {
    flex: 1;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

/* Terms Page Styles */
.terms-box {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.terms-content {
    height: 150px;
    overflow-y: auto;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Register Page Styles */
.page-register .register-form-group {
    margin-bottom: 15px;
}

.page-register .input-with-btn {
    display: flex;
    gap: 10px;
}

.page-register .input-with-btn input {
    flex: 1;
}

.page-register .check-btn {
    background: #5a5c69;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 15px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.page-register .register-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    outline: none;
}

.page-register .required-mark {
    color: #e74a3b;
    margin-right: 5px;
}

/* Terms Page Buttons */
.btn-secondary {
    background: #f1f3f5;
    color: #333;
    border: none;
}

.terms-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.terms-actions .btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-actions .btn-primary {
    background: #002f87;
    color: #fff;
    border: none;
}

/* Terms Page Specific Styles */
.page-terms .terms-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.terms-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.terms-header h3 {
    color: #002f87;
    font-size: 18px;
    margin: 0;
    font-weight: bold;
}

.terms-body {
    padding: 20px;
}

.terms-content-box {
    height: 150px;
    overflow-y: auto;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-right: 10px;
}

.terms-radio-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.terms-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.terms-radio-label input[type='radio'] {
    width: 20px;
    height: 20px;
    accent-color: #333;
}

.page-terms .btn-prev {
    flex: 1;
    padding: 15px;
    background: #e9ecef;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.page-terms .btn-next {
    flex: 1;
    padding: 15px;
    background: #002f87;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Terms Page Refined Styles */
.page-terms .terms-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-terms .terms-title {
    color: #002f87;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.page-terms .terms-scroll-box {
    height: 120px;
    overflow-y: auto;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-right: 5px;
}

.page-terms .radio-group-styled {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f9f9f9;
}

.page-terms .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    cursor: pointer;
}

.page-terms .radio-label input[type='radio'] {
    width: 20px;
    height: 20px;
    accent-color: #333;
}

.page-terms .bottom-btn-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-bottom: 40px;
}

.page-terms .btn-prev {
    flex: 1;
    padding: 15px;
    background: #eef1f6;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.page-terms .btn-next {
    flex: 1;
    padding: 15px;
    background: #002f87;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Refined Global Styles for Image Match */
:root {
    --primary-blue: #102770;
    --bg-color: #f0f4f8;
}

body {
    background-color: var(--bg-color) !important;
}

.btn,
.login-btn,
.page-terms .btn-next {
    background-color: var(--primary-blue) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(16, 39, 112, 0.3) !important;
    font-weight: bold !important;
    padding: 16px !important;
}

.page-terms .btn-prev,
.btn-reset {
    background-color: #e3e6ea !important;
    color: #333 !important;
    border-radius: 12px !important;
    font-weight: bold !important;
}

.page-register .check-btn {
    background-color: #4a5568 !important;
    border-radius: 8px !important;
    font-weight: normal !important;
}

.page-login .input-colored-border,
.register-input {
    border-radius: 12px !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.02) !important;
    padding: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #fff !important;
}

.input-colored-border.border-green {
    border-left: 5px solid #20c997 !important;
}

.input-colored-border.border-red {
    border-left: 5px solid #e74a3b !important;
}

.page-terms .terms-card {
    background-color: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 30px !important;
}

.page-terms .terms-title {
    color: #1a202c !important;
    font-size: 20px !important;
    border-bottom: 2px solid #edf2f7 !important;
}

.page-login .action-btn {
    background-color: #2d3748 !important;
    border-radius: 10px !important;
}

.page-login .lang-select {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* Final Visual Fixes for Terms Page */
.page-terms .terms-title {
    color: #102770 !important;
    /* Force Blue */
    font-size: 22px !important;
    font-weight: 800 !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

.page-terms .btn-prev {
    background-color: #fff !important;
    color: #102770 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eef1f6 !important;
}

.page-terms .radio-label {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
}

.page-terms .radio-label input[type='radio'] {
    width: 24px !important;
    height: 24px !important;
    margin-right: 8px !important;
    accent-color: #102770 !important;
}

.page-terms .terms-scroll-box {
    border: none !important;
    background-color: transparent !important;
    font-size: 14px !important;
    color: #666 !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    height: auto !important;
    max-height: 150px !important;
}

.page-terms .radio-group-styled {
    border-top: 1px solid #eee !important;
    padding-top: 20px !important;
    margin-top: 10px !important;
}




/* Register Page Styles (Restored) */
.page-register .register-form-group {
    margin-bottom: 15px;
}

.page-register .input-with-btn {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-register .register-input {
    width: 100%;
    padding: 15px;
    padding-left: 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    outline: none;
}

.page-register .check-btn {
    padding: 15px 20px;
    background: #4a5568;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.page-register .required-mark {
    color: #e74a3b;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
}

/* Refined Register Page Styles */
.page-register .register-input {
    padding: 18px 18px 18px 40px !important;
    /* More left padding for asterisk */
    font-size: 15px !important;
    color: #333 !important;
    height: 54px !important;
    display: flex;
    align-items: center;
}

.page-register .required-mark {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 20px !important;
}

.page-register .check-btn {
    height: 54px !important;
    padding: 0 25px !important;
    font-weight: bold !important;
    font-size: 15px !important;
    background-color: #4a5568 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-register .btn {
    height: 54px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
}

/* Register Page Layout Fix - Button Inside Input */
.page-register .input-with-btn {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    padding-right: 10px !important;
    border: 1px solid #eee !important;
}

.page-register .input-with-btn .register-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    height: 54px !important;
    flex: 1 !important;
}

.page-register .check-btn {
    height: 40px !important;
    border-radius: 8px !important;
    margin-left: 10px !important;
    font-size: 13px !important;
    padding: 0 15px !important;
}

.page-register .btn-reset {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.page-register .btn-submit {
    background-color: #102770 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(16, 39, 112, 0.3) !important;
}

/* Register Page Refactored Inline Styles */
.page-register {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-register h2 {
    text-align: center;
    margin-bottom: 30px;
}

.page-register .register-success-container {
    text-align: center;
    padding: 40px;
}

.page-register .success-icon {
    font-size: 60px;
    color: #20c997;
    margin-bottom: 20px;
}

.page-register .btn-login-link {
    margin-top: 20px;
    display: inline-block;
}

.page-register .error-message {
    color: #e74a3b;
    text-align: center;
    margin-bottom: 15px;
}

.page-register .input-wrapper {
    position: relative;
    flex: 1;
}

.page-register .register-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.page-register .required-mark {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 20px !important;
    margin: 0 !important;
}

.page-register .register-input {
    padding-left: 40px !important;
}

/* Login Page Styles (Refined) */
.page-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90vh;
    padding: 20px;
}

.page-login .login-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-login .login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*gap: 10px;*/
}

.page-login .logo-img {
    width: 60px;
    height: auto;
    /*border-radius: 50%;*/
}

.page-login .logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.page-login .lang-card {
    background: #f1f3f5;
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-login .lang-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.page-login .lang-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.page-login .lang-icon {
    color: #e74a3b;
    font-size: 24px;
}

.page-login .input-group-login {
    background: #fff;
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 5px solid transparent;
}

.page-login .input-group-login.border-green {
    border-left-color: #20c997;
}

.page-login .input-group-login.border-red {
    border-left-color: #e74a3b;
}

.page-login .login-input {
    width: 100%;
    border: none;
    padding: 15px;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.page-login .btn-login-submit {
    width: 100%;
    background: #102770;
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 18px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(16, 39, 112, 0.3);
}

.page-login .login-actions-row {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.page-login .btn-action-black {
    flex: 1;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.page-login .login-footer {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.page-login .login-footer a {
    color: #102770;
    font-weight: bold;
    margin-left: 5px;
}

/* Checked Button State */
.check-btn.checked {
    background-color: #20c997 !important;
    color: #fff !important;
    border-color: #20c997 !important;
    cursor: default !important;
    opacity: 0.8;
}

.check-btn:disabled {
    cursor: not-allowed;
}

/* Mobile Grid Menu Fix */
@media (max-width: 480px) {
    .grid-menu {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 15px 6px;
    }

    /*.grid-item {
        padding: 0;
    }*/

    .grid-icon {
        width: 100%;
        aspect-ratio: 1;
        font-size: 30px;
        border-radius: 12px;
        margin-bottom: 5px;
    }

    .grid-item span {
        font-size: 14px;
        letter-spacing: -0.5px;
    }
}

/* Re-adding Checked Button State */
.check-btn.checked {
    background-color: #20c997 !important;
    color: #fff !important;
    border-color: #20c997 !important;
    cursor: default !important;
    opacity: 0.8;
}

.check-btn:disabled {
    cursor: not-allowed;
}

.card-gold {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
}