/* Global professional theme for the project */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --accent: #7c3aed;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #10b981;
    --border: #e2e8f0;
    --radius-lg: 32px;
    --radius-md: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: min(1200px, 100%); margin: 0 auto; padding: 20px; }

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--primary);
}

.btn {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn:hover {
    background: #4338ca;
    transform: scale(1.03);
    box-shadow: 0 8px 20px var(--primary-glow);
}

input, select {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    padding: 14px;
    border-radius: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-glow);
}
        gap: 6px;
    }
    .profile-action {
        border-radius: 8px;
        font-size: 0.98rem;
        padding: 8px 0;
    }
    .profile-action-icon {
        width: 24px;
        height: 24px;
        font-size: 0.98rem;
        margin-bottom: 2px;
    }
    .list {
        margin: -10px auto 18px auto;
        padding: 0 1vw;
    }
    .item {
        border-radius: 10px;
        margin-bottom: 12px;
    }
    .item-header {
        padding: 12px 6px;
        font-size: 0.98rem;
    }
    .item-content.show {
        padding: 10px 6px;
    }
    .content-row {
        font-size: 0.95rem;
        padding: 7px 0;
    }
    .empty-state {
        font-size: 0.95rem;
        padding: 18px 2px;
    }
}
/* Modern Records Section (mine.php) */
.list {
    max-width: 900px;
    margin: -30px auto 48px auto;
    padding: 0 12px;
}
.item {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(79,70,229,0.07);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    animation: fadeInUp 0.6s ease-out;
}
.item:hover {
    box-shadow: 0 8px 32px rgba(79,70,229,0.13);
    transform: translateY(-2px);
}
.item-header {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1.5px solid #e5e7eb;
    font-size: 1.13rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.01em;
    transition: background 0.2s;
}
.item-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f1f5f9 100%);
}
.item-header span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.13rem;
    color: #4f46e5;
}
.item-header span#deposits-arrow,
.item-header span#withdrawals-arrow {
    font-size: 1.3rem;
    color: #64748b;
    transition: transform 0.3s;
}
.item-content {
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s, padding 0.4s;
    padding: 0;
}
.item-content.show {
    max-height: 1000px;
    padding: 24px 28px;
}
.content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 1.05rem;
    transition: background 0.2s, padding-left 0.2s;
}
.content-row:hover {
    background: #f8f9fa;
    padding-left: 12px;
    border-radius: 8px;
}
.content-row:last-child {
    border-bottom: none;
}
.content-label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}
.content-label i {
    color: #4f46e5;
    width: 18px;
}
.content-value {
    color: #222;
    font-weight: 500;
}
.empty-state {
    text-align: center;
    padding: 48px 12px;
    color: #64748b;
    font-size: 1.13rem;
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
    color: #4f46e5;
}
/* Modern Bottom Navigation (footer) */
.bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    border-top: 1.5px solid #e5e7eb;
    box-shadow: 0 -2px 16px rgba(79,70,229,0.06);
    z-index: 1000;
    gap: 0;
    transition: box-shadow 0.3s;
}
.bottom div {
    text-align: center;
    font-size: 1.01rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px 2px;
    flex: 1;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, font-weight 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.bottom div:active {
    background: #f1f5f9;
    color: #4f46e5;
}
.bottom div.active {
    color: #4f46e5;
    font-weight: 700;
    background: rgba(79,70,229,0.08);
    box-shadow: 0 2px 8px rgba(79,70,229,0.08);
}
@media (max-width: 600px) {
    .bottom div {
        font-size: 0.97rem;
        min-height: 40px;
    }
    .bottom {
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    }
}
/* Profile Section (mine.php) */
.profile-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 48px 0 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}
.profile-card {
    display: flex;
    align-items: center;
    max-width: 420px;
    margin: 0 auto 18px auto;
    background: rgba(255,255,255,0.08);
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 18px 28px;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}
.profile-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    transform: translateY(-2px);
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    margin-right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.22);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: border 0.3s, box-shadow 0.3s;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-info {
    flex: 1;
    min-width: 0;
}
.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.profile-vip {
    background: #fbbf24;
    color: #2c3e50;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.profile-invite {
    font-size: 1rem;
    opacity: 0.92;
    font-weight: 500;
    color: #e0e7ff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.profile-balance {
    background: rgba(255,255,255,0.13);
    padding: 22px 0;
    border-radius: 18px;
    max-width: 340px;
    margin: 0 auto 22px auto;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1.5px solid rgba(255,255,255,0.18);
    cursor: pointer;
    transition: box-shadow 0.3s, background 0.3s;
}
.profile-balance span {
    font-size: 2.1rem;
    font-weight: 800;
    display: block;
    color: #fff;
    margin-top: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.profile-balance:hover {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.profile-action {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 14px;
    padding: 18px 28px;
    font-weight: 700;
    font-size: 1.08rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    border: 1.5px solid rgba(255,255,255,0.18);
}
.profile-action:hover {
    background: rgba(255,255,255,0.28);
    color: #4f46e5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.profile-action-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.22);
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.3s, transform 0.3s;
}
.profile-action:hover .profile-action-icon {
    background: #fff;
    color: #4f46e5;
    transform: scale(1.08);
}
.profile-logout {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
    border: none;
}
.profile-logout:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e74c3c 100%);
    color: #fff;
}
/* Global professional theme for the project */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --accent: #7c3aed;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #10b981;
    --border: #e2e8f0;
    --radius-lg: 32px;
    --radius-md: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 64px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    transition: background 0.3s;
}

.container { width: min(1200px, 100%); margin: 0 auto; padding: 20px; }

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--primary);
}

.btn {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 12px var(--primary-glow);
    font-size: 1.08rem;
    outline: none;
    cursor: pointer;
}

.btn:hover {
    background: #4338ca;
    transform: scale(1.03);
    box-shadow: 0 8px 20px var(--primary-glow);
    color: #fff;
}

input, select {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    padding: 14px;
    border-radius: 14px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--text-main);
}

input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

label {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

/* Modern header */
.header {
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .logo {
    height: 36px;
    width: 36px;
    object-fit: contain;
    margin-right: 12px;
}
.header nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    margin: 0 18px;
    font-size: 1.08rem;
    transition: color 0.2s;
}
.header nav a:hover {
    color: var(--primary);
}

/* Modern footer */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px 0 16px 0;
    margin-top: 48px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}
.footer .logo {
    height: 28px;
    width: 28px;
    vertical-align: middle;
    margin-right: 8px;
}
.footer .brand {
    font-weight: 600;
    color: var(--text-main);
}

/* Modern table */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    font-size: 1rem;
}
th, td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
th {
    background: #f1f5f9;
    color: var(--text-main);
    font-weight: 700;
}
tr:last-child td {
    border-bottom: none;
}

/* Modern form */
.form-group {
    margin-bottom: 22px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: 1rem;
    color: var(--text-main);
    background: var(--surface);
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

/* Responsive */
@media (max-width: 900px) {
    .container { padding: 10px; }
    .header { padding: 0 10px; }
}
@media (max-width: 600px) {
    .header { flex-direction: column; height: auto; padding: 10px 0; }
    .header nav { margin-top: 8px; }
    .footer { font-size: 13px; padding: 18px 0 8px 0; }
    .card { padding: 14px; }
}
}
