/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --bg-card: #242424;
    --bg-hover: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --accent-gold: #F7931A;
    --accent-blue: #0088CC;
    --accent-green: #00D084;
    --accent-red: #FF4757;
    --accent-purple: #9B59B6;
    --border-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 8px;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
}

/* ===== Screen Management ===== */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Splash Screen ===== */
#splash-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
}

.splash-content {
    text-align: center;
    padding: 2rem;
}

.logo-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-gold), #E67E22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 0 40px rgba(247, 147, 26, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), #E67E22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.logo p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #E67E22);
    border-radius: 2px;
    animation: loading 2s ease forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== Auth Screen ===== */
#auth-screen {
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.logo-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), #E67E22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.auth-container h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.auth-tab.active {
    background: var(--accent-gold);
    color: white;
    font-weight: 600;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.giz-address-preview {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.giz-address-preview .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.giz-address-preview .address {
    color: var(--accent-gold);
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* ===== Buttons ===== */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-gold), #E67E22);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    width: 100%;
    padding: 1rem;
    background: var(--accent-red);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ===== App Header ===== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-btn, .notif-btn, .back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
}

.notif-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--accent-red);
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.header-title i {
    color: var(--accent-gold);
}

.header-spacer {
    width: 40px;
}

/* ===== App Content ===== */
.app-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    padding-bottom: 80px;
}

/* ===== Balance Card ===== */
.balance-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #242424 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.eye-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.giz-balance {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), #E67E22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.giz-symbol {
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.balance-convert {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.balance-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 0.5rem;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn i {
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
}

/* ===== TON Status Card ===== */
.ton-status-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #242424 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: none;
}

.ton-status-card.active {
    display: block;
}

.ton-status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.ton-status-header i {
    color: var(--accent-blue);
}

.ton-status-badge {
    margin-right: auto;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-muted);
}

.ton-status-badge.connected {
    background: var(--accent-green);
    color: white;
}

.ton-status-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-ton-connect {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-ton-connect:hover {
    background: var(--accent-blue);
    color: white;
}

/* ===== Address Card ===== */
.address-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.address-header span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.address-value {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-gold);
    word-break: break-all;
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.address-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== Sub-wallets Section ===== */
.subwallets-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: var(--accent-gold);
}

.add-btn {
    width: 32px;
    height: 32px;
    background: var(--accent-gold);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.subwallets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.subwallet-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.subwallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--wallet-color, var(--accent-green));
}

.subwallet-card:hover {
    transform: translateY(-2px);
    border-color: var(--wallet-color, var(--accent-green));
}

.subwallet-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: white;
    background: var(--wallet-color, var(--accent-green));
}

.subwallet-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.subwallet-balance {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== Transactions Section ===== */
.transactions-section {
    margin-bottom: 1.5rem;
}

.view-all {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: all 0.3s;
}

.transaction-item:hover {
    background: var(--bg-hover);
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.tx-icon.sent { background: var(--accent-red); }
.tx-icon.received { background: var(--accent-green); }
.tx-icon.swap { background: var(--accent-blue); }
.tx-icon.subwallet { background: var(--accent-purple); }

.tx-details {
    flex: 1;
    min-width: 0;
}

.tx-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tx-amount {
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}

.tx-amount.positive { color: var(--accent-green); }
.tx-amount.negative { color: var(--accent-red); }
.tx-amount.neutral { color: var(--accent-blue); }

/* ===== Bottom Navigation ===== */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Cairo', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 1.2rem;
}

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

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.modal-header h3 i {
    color: var(--accent-gold);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== Send Modal ===== */
.fee-info {
    display: flex;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.fee-info span {
    color: var(--text-secondary);
}

.fee-info strong {
    color: var(--accent-gold);
}

/* ===== Receive Modal ===== */
.receive-content {
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: var(--radius-sm);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    color: var(--bg-primary);
    font-size: 4rem;
}

.receive-address {
    margin-bottom: 1rem;
}

.receive-address .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.address-box span {
    flex: 1;
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    text-align: right;
}

.share-btns {
    margin-top: 1rem;
}

.share-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Swap Modal ===== */
.swap-direction {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.swap-dir-btn {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.swap-dir-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

.swap-dir-btn span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.swap-dir-btn small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.swap-input {
    margin-bottom: 1rem;
}

.swap-input .input-group {
    margin-bottom: 0.5rem;
}

.swap-input .input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.swap-input .input-group input {
    padding-left: 1rem;
    padding-right: 4rem;
}

.currency {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-weight: 600;
}

.swap-arrow {
    text-align: center;
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.swap-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

/* ===== TON Connect Modal ===== */
.ton-connect-content {
    text-align: center;
}

.ton-info {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: right;
}

.ton-info i {
    color: var(--accent-blue);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ton-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.ton-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.ton-note p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ===== Sub-wallet Modal ===== */
.color-picker {
    margin-bottom: 1rem;
}

.color-picker .label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.colors {
    display: flex;
    gap: 0.75rem;
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.color-btn.active {
    border-color: white;
    transform: scale(1.1);
}

/* ===== History Screen ===== */
.history-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

/* ===== Settings Screen ===== */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.settings-section h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item span:first-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.setting-item span:last-child {
    font-weight: 600;
    font-size: 0.9rem;
}

.address-text {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent-gold);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.setting-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: right;
}

.setting-btn:last-child {
    border-bottom: none;
}

.setting-btn i:first-child {
    color: var(--accent-gold);
    width: 24px;
}

.setting-btn i:last-child {
    margin-right: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.setting-btn.danger i:first-child {
    color: var(--accent-red);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.2rem;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #000;
    }
    
    .screen {
        width: 400px;
        height: 800px;
        border-radius: var(--radius);
        overflow: hidden;
        border: 1px solid var(--border-color);
    }
    
    .modal {
        align-items: center;
    }
    
    .modal-content {
        border-radius: var(--radius);
        max-width: 400px;
        max-height: 80vh;
    }
}

/* Click Section */
.click-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.click-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.click-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00D084, #0088CC);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px rgba(0, 208, 132, 0.4);
    transition: transform 0.1s;
}

.click-btn i { font-size: 2rem; }

.click-btn.clicked {
    transform: scale(0.9);
}

.click-progress-bar {
    background: var(--border);
    border-radius: 10px;
    height: 8px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.click-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D084, #0088CC);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s;
}

.click-earned {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Floating Reward */
.floating-reward {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00D084;
    font-size: 1.5rem;
    font-weight: bold;
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -150%); }
}

/* Levels */
.levels-info {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.levels-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.level-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.2rem;
    border: 2px solid transparent;
}

.active-level {
    border-color: #00D084;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.level-num {
    font-weight: bold;
    font-size: 1.1rem;
}

.level-badge {
    background: #00D084;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.level-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.level-price {
    text-align: center;
    color: #00D084;
    font-weight: bold;
}

.btn-buy-level {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00D084, #0088CC);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}
