* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d7377;
    --primary-dark: #0a5c5f;
    --secondary: #14a3a8;
    --accent: #32d7b7;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    padding-bottom: 80px;
}

.hidden {
    display: none !important;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%);
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo i {
    font-size: 60px;
    color: var(--accent);
    margin-bottom: 10px;
}

.auth-logo h1 {
    font-size: 28px;
    color: var(--text-light);
}

.auth-logo p {
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-size: 16px;
}

.auth-form input::placeholder {
    color: var(--text-muted);
}

.auth-link {
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--accent);
    text-decoration: none;
}

/* Buttons */
.btn-primary {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.02);
}

.btn-danger {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--danger);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.header-left i {
    font-size: 20px;
    cursor: pointer;
}

.header-right {
    font-weight: 600;
    color: var(--accent);
}

/* Slider */
.slider-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Notice Bar */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    margin: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
}

.notice-bar i {
    color: var(--accent);
    flex-shrink: 0;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.action-item span {
    font-size: 12px;
    text-align: center;
}

/* Section Title */
.section-title {
    padding: 15px 20px 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

/* Hotel Grid */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px 20px;
}

.hotel-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.hotel-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.hotel-card-info {
    padding: 12px;
}

.hotel-card-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotel-card-info .stars {
    color: #ffc107;
    font-size: 12px;
    margin-bottom: 8px;
}

.rate-btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
}

/* Rate Hotel Page */
.rate-hotel-content {
    padding: 20px;
}

.hotel-detail-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.hotel-detail-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.star-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.star-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.star-option:hover, .star-option.selected {
    border-color: var(--accent);
}

.star-option .stars {
    color: #ffc107;
}

.star-option .package-info {
    text-align: right;
}

.star-option .package-info .cost {
    font-weight: 600;
    color: var(--accent);
}

.star-option .package-info .profit {
    font-size: 12px;
    color: var(--text-muted);
}

/* Deposit Page */
.deposit-content {
    padding: 20px;
}

.deposit-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

.bank-info {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.bank-field {
    margin-bottom: 15px;
}

.bank-field:last-child {
    margin-bottom: 0;
}

.bank-field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
}

.crypto-addr {
    font-size: 12px;
    word-break: break-all;
}

.copy-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
}

.copy-btn.copied {
    background: var(--success);
    color: white;
}

.ref-note {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.crypto-rates {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.crypto-rates h4 {
    font-size: 14px;
    margin-bottom: 10px;
}

.rate-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}

.proof-upload {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.proof-upload h4 {
    margin-bottom: 15px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-form input, .upload-form select {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-size: 14px;
}

.upload-form input[type="file"] {
    padding: 10px;
}

/* Withdraw Page */
.withdraw-content {
    padding: 20px;
}

.balance-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.balance-display strong {
    font-size: 24px;
    color: var(--accent);
}

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.withdraw-form input {
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-size: 16px;
}

.fee-note {
    text-align: center;
    color: var(--warning);
}

/* Investments */
.investments-container {
    padding: 20px;
}

.investment-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.investment-card .inv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.investment-card .inv-hotel {
    font-weight: 600;
}

.investment-card .inv-package {
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--primary);
    font-size: 12px;
}

.investment-card .inv-details {
    font-size: 13px;
    color: var(--text-muted);
}

.investment-card .inv-details p {
    margin-bottom: 5px;
}

.investment-card .inv-status {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}

.investment-card .inv-status .active {
    color: var(--success);
}

.investment-card .inv-status .expired {
    color: var(--danger);
}

/* Team Page */
.team-content {
    padding: 20px;
}

.referral-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-box h4 {
    margin-bottom: 10px;
}

.ref-link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.ref-link-row input {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-size: 13px;
}

.referral-box p {
    font-size: 12px;
    color: var(--text-muted);
}

.team-member-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.team-member-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.team-member-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Profile Page */
.profile-content {
    padding: 20px;
}

.profile-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar i {
    font-size: 80px;
    color: var(--accent);
}

.profile-info {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: var(--text-muted);
}

/* Status badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background: rgba(243, 156, 18, 0.2);
    color: var(--warning);
}

.badge-approved {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success);
}

.badge-rejected {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

/* Deposit/Withdrawal History */
.history-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.history-card .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-card .history-amount {
    font-weight: 600;
    font-size: 18px;
}

.history-card .history-details {
    font-size: 12px;
    color: var(--text-muted);
}

/* Telegram Float */
.telegram-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0088cc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    z-index: 1000;
    transition: transform 0.2s;
}

.telegram-float:hover {
    transform: scale(1.1);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 5px 15px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 11px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 2000;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}
