/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .header-left {
    order: 3;
}

[dir="rtl"] .header-right {
    order: 1;
}

[dir="rtl"] .header-center {
    order: 2;
}

[dir="rtl"] .profile-avatar {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .action-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-actions {
    flex-direction: row-reverse;
}

/* Color Variables - Gaming Theme */
:root {
    --primary-color: #00ffff;
    --secondary-color: #8a2be2;
    --accent-color: #FFD700;
    --dark-bg: #1a0033;
    --medium-bg: #2d1b4e;
    --light-bg: #1a4d5e;
    --neon-cyan: 0 0 20px rgba(0, 255, 255, 0.5);
    --neon-purple: 0 0 20px rgba(138, 43, 226, 0.5);
    --neon-gold: 0 0 20px rgba(255, 215, 0, 0.5);
    --purple: #8a2be2;
    --gold: #FFD700;
    --gold-light: #FFF5D4;
    --cyan: #00ffff;
    --teal: #1a4d5e;
    --success-color: #00ff88;
    --warning-color: #FFA500;
    --error-color: #ff3366;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --black: #000000;
}
/* text */
.text-danger {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.input-error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3) !important;
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
}

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

.alert-error {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--error-color);
    color: #ffccdd;
}

.alert-error strong {
    color: var(--error-color);
}

.alert-error ul {
    list-style-position: inside;
}

.alert-error li {
    margin: 0.25rem 0;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success-color);
    color: #ccffee;
}

.alert-success strong {
    color: var(--success-color);
}

.alert-warning {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--warning-color);
    color: #ffe5cc;
}

.alert-warning strong {
    color: var(--warning-color);
}
/* Auth Styles */
.auth-body {
    background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 25%, #1a4d5e 50%, #2d1b4e 75%, #1a0033 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    margin: 0;
    width: 100%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-container {
    margin: 0 auto;
    background: rgba(26, 0, 51, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--neon-cyan);
    animation: slideUp 0.6s ease-out;
    border: 2px solid rgba(0, 255, 255, 0.3);
    flex-shrink: 0;
}
/* For Chrome, Safari, Opera, and other WebKit browsers */
.auth-container::-webkit-scrollbar {
    display: none;
  }

/* Hide scrollbar completely for all browsers */
.auth-container::-webkit-scrollbar {
    display: none !important;
}

.auth-container {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

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

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    border-radius: 0.75rem;
    padding: 0.75rem;
    color: var(--white);
    box-shadow: var(--neon-cyan);
}

.auth-header h1 {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--gold) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: var(--neon-cyan);
}

.auth-header h2 {
    color: var(--cyan);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem 0;
    text-shadow: var(--neon-cyan);
}

.auth-header p {
    color: #b0c4de;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--cyan);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: rgba(45, 27, 78, 0.5);
    color: var(--white);
}

.form-group input::placeholder {
    color: rgba(176, 196, 222, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: var(--neon-cyan);
    background-color: rgba(45, 27, 78, 0.7);
}

/* Avatar Selection Styles */
.avatar-selection {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(45, 27, 78, 0.5);
}

.avatar-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: var(--cyan);
    box-shadow: var(--neon-cyan);
}

.avatar-option.selected {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold);
    transform: scale(1.15);
}

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

.avatar-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-option.selected::after {
    opacity: 0.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    color: #1a0033;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    box-shadow: var(--neon-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6), var(--neon-gold);
}

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

.btn-secondary {
    background: rgba(0, 255, 255, 0.1);
    color: var(--cyan);
    border: 2px solid var(--cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.2);
    color: var(--white);
    box-shadow: var(--neon-cyan);
}

.btn-danger {
    background: var(--error-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: not-allowed;
    min-height: 44px;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
    text-shadow: var(--neon-cyan);
}

.auth-error {
    color: var(--error-color);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.auth-error.show {
    display: block;
}

/* App Styles */
.app-body {
    background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 25%, #1a4d5e 50%, #2d1b4e 75%, #1a0033 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 414px;
    margin: 0 auto;
    background: rgba(26, 0, 51, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

/* Header */
.app-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 70px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
}

.header-left,
.header-right {
    flex: 1;
}

.header-center {
    flex: 2;
    text-align: center;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan);
    margin: 0;
    text-shadow: var(--neon-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-title:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}
body {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
}
.icon-btn {
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    box-shadow: var(--neon-cyan);
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 8px var(--gold);
}

.profile-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-cyan);
}

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

/* Main Content */
.app-main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    background: rgba(26, 0, 51, 0.5);
}

.app-main::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.app-main {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar but keep functionality */
.app-main::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.app-main {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.page-content {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.page-content.active {
    display: block;
}

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

/* Home Page */
.welcome-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--neon-cyan);
}

.welcome-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-card p {
    opacity: 0.9;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(45, 27, 78, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3), var(--neon-cyan);
    transform: translateY(-4px);
}

.stat-icon {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: var(--neon-cyan);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: var(--neon-gold);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--cyan);
    font-size: 0.875rem;
    font-weight: 500;
}

.quick-actions h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 1rem;
    text-shadow: var(--neon-cyan);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-btn {
    flex: 1;
    text-decoration: none;
    background: rgba(45, 27, 78, 0.5);
    border: 2px solid var(--cyan);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--cyan);
    min-height: 60px;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--neon-cyan);
}

/* Settings Page */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--neon-cyan);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

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

.setting-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.875rem;
    color: #b0c4de;
}

.setting-select {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(45, 27, 78, 0.5);
    color: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.setting-select:focus {
    outline: none;
    box-shadow: var(--neon-cyan);
    border-color: var(--cyan);
}

/* Rewards Page */
.rewards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rewards-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--neon-cyan);
}

.points-display {
    background: linear-gradient(135deg, var(--gold) 0%, #FFE55C 100%);
    color: var(--dark-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    box-shadow: 0 0 15px var(--gold);
}

.points-label {
    font-size: 0.875rem;
}

.points-value {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

.rewards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.reward-card {
    background: rgba(45, 27, 78, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.reward-card.available {
    border-color: var(--success-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.reward-card.available:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 255, 136, 0.3);
}

.reward-card.unavailable {
    opacity: 0.5;
    border-color: rgba(176, 196, 222, 0.2);
}

.reward-image {
    background: rgba(138, 43, 226, 0.3);
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: var(--cyan);
}

.reward-card.available .reward-image {
    background: linear-gradient(135deg, var(--success-color) 0%, #00cc66 100%);
    color: var(--white);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.reward-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.reward-points {
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: var(--neon-gold);
}

.reward-diamonds {
    color: var(--cyan);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: var(--neon-cyan);
}

.reward-claim-btn {
    width: 100%;
    margin: 0;
}

/* Transactions Page */
.transactions-header {
    margin-bottom: 2rem;
}

.transactions-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--neon-cyan);
    margin-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(45, 27, 78, 0.5);
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.filter-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #b0c4de;
    min-height: 44px;
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: var(--white);
    box-shadow: var(--neon-cyan);
}

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

.transaction-item {
    background: rgba(45, 27, 78, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.transaction-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3), var(--neon-cyan);
    transform: translateY(-2px);
}

.transaction-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.transaction-item.income .transaction-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.transaction-item.expense .transaction-icon {
    background: linear-gradient(135deg, var(--error-color) 0%, #DC2626 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.transaction-info {
    flex: 1;
}

.transaction-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.transaction-info p {
    font-size: 0.875rem;
    color: #b0c4de;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.75rem;
    color: #9999bb;
}

.transaction-amount {
    font-size: 1rem;
    font-weight: 700;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--error-color);
}

/* Coming Soon Page */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    color: #b0c4de;
}

.coming-soon-icon {
    margin-bottom: 2rem;
    opacity: 0.7;
    color: var(--cyan);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.coming-soon h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--neon-cyan);
    margin-bottom: 1rem;
}

.coming-soon p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

/* Bottom Navigation */
.bottom-nav {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.95) 0%, rgba(45, 27, 78, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 1rem;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 255, 255, 0.2);
}

.nav-btn {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    color: rgba(0, 255, 255, 0.6);
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: var(--neon-cyan);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: var(--white);
    box-shadow: var(--neon-cyan);
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn.disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transform: none;
    box-shadow: none;
}

/* Notification Modal */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 0, 51, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.notification-modal.show {
    display: flex;
}

.notification-content {
    background: rgba(26, 0, 51, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
    box-shadow: var(--neon-cyan);
    border: 2px solid rgba(0, 255, 255, 0.3);
}

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

.notification-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notification-list {
    max-height: 60vh;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: rgba(0, 255, 255, 0.05);
}

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

.notification-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 0.375rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--gold);
}

.notification-item:not(.unread) .notification-dot {
    display: none;
}

.notification-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.notification-text p {
    font-size: 0.875rem;
    color: #b0c4de;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.75rem;
    color: #9999bb;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 0, 51, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(26, 0, 51, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    animation: modalSlideUp 0.3s ease-out;
    box-shadow: var(--neon-cyan);
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--neon-cyan);
    margin-bottom: 1rem;
}

.modal-content input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    background: rgba(45, 27, 78, 0.5);
    color: var(--white);
}

.modal-content input::placeholder {
    color: rgba(176, 196, 222, 0.5);
}

.modal-content input:focus {
    outline: none;
    box-shadow: var(--neon-cyan);
    border-color: var(--cyan);
    background: rgba(45, 27, 78, 0.7);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Voucher code modal */
.voucher-code-modal-content {
    position: relative;
}

.voucher-code-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: -0.5rem 0 1rem 0;
}

.voucher-code-display {
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Monaco, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 255, 255, 0.08);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 0.5rem;
    color: var(--cyan);
    text-align: center;
    user-select: all;
    -webkit-user-select: all;
}

.voucher-modal-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.voucher-modal-actions .btn-primary,
.voucher-modal-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.voucher-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.voucher-modal-close:hover {
    background: rgba(255, 51, 102, 0.3);
    color: var(--white);
}

[dir="rtl"] .voucher-modal-close {
    right: auto;
    left: 0.75rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .app-header {
        padding: 1rem;
    }

    .page-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /*.action-buttons {*/
    /*    flex-direction: column;*/
    /*}*/

    .rewards-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-actions,
    .voucher-modal-actions {
        flex-direction: column;
    }

    .voucher-modal-actions .btn-primary,
    .voucher-modal-actions .btn-secondary {
        min-width: 100%;
    }

    .avatar-selection {
        grid-template-columns: repeat(6, 1fr);
    }
}

/*@media (prefers-color-scheme: dark) {*/
/*    :root {*/
/*        --gray-50: #111827;*/
/*        --gray-100: #1F2937;*/
/*        --gray-200: #374151;*/
/*        --gray-300: #4B5563;*/
/*        --gray-400: #6B7280;*/
/*        --gray-500: #9CA3AF;*/
/*        --gray-600: #D1D5DB;*/
/*        --gray-700: #E5E7EB;*/
/*        --gray-800: #F3F4F6;*/
/*        --gray-900: #F9FAFB;*/
/*        --white: #1F2937;*/
/*        --black: #F9FAFB;*/
/*    }*/

/*    .app-body {*/
/*        background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%)*/
/*        !*linear-gradient(90deg, #2e0a57, var(--light-bg);*!*/
/*    }*/

/*    .app-container {*/
/*        background: var(--gray-800);*/
/*    }*/
/*}*/



/* alerts */

.floating-alert {
    position: fixed;
    top: 10px;
    right: 20px;
    background-color: #00c851; /* green for success */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: fadeInOut 5s ease-in-out forwards;
    font-weight: bold;
    max-width: 300px;
}

/* Error style override */
.floating-alert.error {
    background-color: #ff4444; /* red for error */
}

@keyframes fadeInOut {
    0%   { opacity: 0; transform: translateY(-10px); }
    10%  { opacity: 1; transform: translateY(0); }
    90%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}
