/* ========================================================================
   QFS Token Ledger — Core Design System
   Premium dark crypto wallet aesthetic
   ======================================================================== */

/* --- CSS Custom Properties --- */
:root {
    --primary: #FE9525;
    --primary-dark: #e07d0c;
    --primary-light: #ffb347;
    --primary-glow: rgba(254, 149, 37, 0.3);
    --primary-glow-strong: rgba(254, 149, 37, 0.6);
    --bg-dark: #0a0a0f;
    --bg-darker: #060609;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #8a8a9a;
    --text-muted: #4a4a5a;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --success: #00c853;
    --danger: #ff1744;
    --warning: #ffc107;
    --info: #29b6f6;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(254, 149, 37, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0d0d14 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::selection {
    background: var(--primary);
    color: #fff;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
}

/* --- Layout --- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding: 0 20px;
}

.page-content {
    padding-top: 20px;
    padding-bottom: 100px;
}

.admin-container {
    width: 100%;
    min-height: 100vh;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--glass-border-light);
}

/* --- Profile Header --- */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.avatar-large {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}

.username {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.verification-badge {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.verification-badge.verified {
    color: var(--success);
}
.verification-badge.unverified {
    color: var(--text-muted);
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 1rem;
}
.notification-icon:hover {
    border-color: var(--primary-glow);
    color: var(--primary);
}

/* --- Balance Section --- */
.balance-section {
    text-align: center;
    padding: 28px 20px;
}

.balance-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1.2;
}

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

/* --- Action Cards --- */
.action-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 8px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.action-card i {
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}

.action-card span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.action-card:hover {
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.action-card:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* --- Crypto List --- */
.crypto-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crypto-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.crypto-card:hover {
    border-color: var(--glass-border-light);
    transform: translateX(4px);
}

.coin-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.coin-info {
    flex: 1;
    min-width: 0;
}

.coin-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.coin-symbol {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.coin-amount-info {
    text-align: right;
    flex-shrink: 0;
}

.coin-amount {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.coin-usd {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 6px 12px;
    transition: var(--transition);
    position: relative;
}

.bottom-nav .nav-item i {
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.bottom-nav .nav-item.active i {
    filter: drop-shadow(0 0 8px var(--primary-glow-strong));
}

.bottom-nav .nav-item:hover {
    color: var(--text-secondary);
}

/* --- Form Elements --- */
.form-control-dark {
    background: var(--bg-input) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    width: 100%;
}

.form-control-dark::placeholder {
    color: var(--text-muted);
}

.form-control-dark:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    background: var(--bg-input) !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-label-dark {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 2;
}

.input-icon-wrapper .form-control-dark {
    padding-left: 44px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 2;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--primary);
}

/* --- Buttons --- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
    color: #fff;
}

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

.btn-primary-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    padding: 12px 24px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
}

.btn-danger-custom {
    background: linear-gradient(135deg, var(--danger) 0%, #d50000 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px 28px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.btn-danger-custom:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* --- Alert / Flash Messages --- */
.alert-flash {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
    position: relative;
    border: 1px solid;
    padding-right: 40px;
}

.alert-flash.alert-success {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.2);
    color: var(--success);
}

.alert-flash.alert-error {
    background: rgba(255, 23, 68, 0.1);
    border-color: rgba(255, 23, 68, 0.2);
    color: var(--danger);
}

.alert-flash.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.alert-flash.alert-info {
    background: rgba(41, 182, 246, 0.1);
    border-color: rgba(41, 182, 246, 0.2);
    color: var(--info);
}

.alert-flash .close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    line-height: 1;
}

.alert-flash .close-btn:hover {
    opacity: 1;
}

/* --- Status Badges --- */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}

.badge-pending {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.badge-approved {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.badge-rejected {
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
}

/* --- Section Title --- */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* --- Auth Pages --- */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

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

.auth-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: block;
    border-radius: var(--radius);
    object-fit: contain;
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary);
    font-weight: 600;
}

/* Password Strength */
.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background: var(--bg-card);
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

.strength-weak {
    background: var(--danger);
    width: 33%;
}

.strength-medium {
    background: var(--warning);
    width: 66%;
}

.strength-strong {
    background: var(--success);
    width: 100%;
}

/* --- Coming Soon --- */
.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.coming-soon-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.coming-soon-text {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 300px;
}

/* --- Receive / Coin Grid --- */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.coin-select-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    text-align: center;
    padding: 20px 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.coin-select-card:hover {
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.coin-select-card .coin-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
}

.coin-select-card .coin-icon img {
    width: 38px;
    height: 38px;
}

.coin-select-card .coin-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.coin-select-card .coin-network {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- Deposit Page --- */
.deposit-header {
    text-align: center;
    margin-bottom: 24px;
}

.deposit-coin-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-coin-icon img {
    width: 48px;
    height: 48px;
}

.qr-container {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius);
    width: fit-content;
    margin: 0 auto 20px;
}

.wallet-address-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.wallet-address-box .address-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    word-break: break-all;
    color: var(--text-primary);
}

.wallet-address-box .copy-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    transition: var(--transition);
}

.wallet-address-box .copy-btn:hover {
    transform: scale(1.1);
}

.deposit-warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--warning);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.deposit-warning i {
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Profile Page --- */
.profile-info {
    text-align: center;
    margin-bottom: 32px;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.profile-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Deposit history items in profile */
.deposit-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.deposit-history-item .coin-icon {
    width: 36px;
    height: 36px;
}

.deposit-history-item .coin-icon img {
    width: 28px;
    height: 28px;
}

.deposit-history-item .deposit-info {
    flex: 1;
}

.deposit-history-item .deposit-coin {
    font-weight: 600;
    font-size: 0.9rem;
}

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

.deposit-history-item .deposit-amount-info {
    text-align: right;
}

.deposit-history-item .deposit-amt {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Loading / Spinner --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    height: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2000;
    animation: fadeInUp 0.3s ease-out;
    pointer-events: none;
    white-space: nowrap;
}

/* --- Success Modal --- */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.success-content {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
    padding: 40px;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
    animation: pulse 1s ease-in-out;
}

.success-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.success-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- Search / Filter --- */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    padding-left: 44px;
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 24px 0;
}

/* --- Utility Classes --- */
.text-primary, .text-primary-color { color: var(--primary) !important; }
.text-secondary, .text-secondary-color { color: var(--text-secondary) !important; }
.text-muted, .text-muted-color { color: var(--text-muted) !important; }
.text-success, .text-success-color { color: var(--success) !important; }
.text-danger, .text-danger-color { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50%      { box-shadow: 0 0 40px var(--primary-glow-strong); }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.fade-in-up:nth-child(5) { animation-delay: 0.4s; }
.fade-in-up:nth-child(6) { animation-delay: 0.5s; }

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* --- Responsive --- */
@media (max-width: 360px) {
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .balance-amount {
        font-size: 2rem;
    }
    .coin-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 481px) {
    .app-container {
        padding: 0 24px;
    }
}

/* --- Checkbox custom --- */
.form-check-dark .form-check-input {
    background-color: var(--bg-input);
    border-color: var(--glass-border);
}

.form-check-dark .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-dark .form-check-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}
