/* Premier Profile System - Complete Unified CSS */
/* Save as: /css/profile-unified.css */

/* ============================================
   ROOT VARIABLES & RESETS
   ============================================ */
:root {
    --gold: #FFD700;
    --gold-dark: #FFA500;
    --gold-light: rgba(255, 215, 0, 0.1);
    --gold-border: rgba(255, 215, 0, 0.2);
    --bg-primary: #000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(0, 0, 0, 0.6);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: #666;
    --success: #00ff00;
    --warning: #FFA500;
    --danger: #ff4444;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   MAIN PROFILE CONTAINER
   ============================================ */
#profile-section {
    background: var(--bg-primary) !important;
    min-height: 100vh;
    position: relative;
}

#profile-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#profile-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   PROFILE DASHBOARD GRID
   ============================================ */
.profile-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    animation: fadeInUp 0.5s ease;
}

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

/* ============================================
   WELCOME CARD
   ============================================ */
.welcome-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--border-radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.welcome-card-bg-1,
.welcome-card-bg-2 {
    position: absolute;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.welcome-card-bg-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -50px;
}

.welcome-card-bg-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, 20px) rotate(90deg); }
    50% { transform: translate(20px, -20px) rotate(180deg); }
    75% { transform: translate(-10px, -10px) rotate(270deg); }
}

.welcome-card-content {
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.welcome-title i {
    font-size: 40px;
    animation: pulse 2s ease-in-out infinite;
}

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

.welcome-subtitle {
    color: rgba(0, 0, 0, 0.8);
    font-size: 18px;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, var(--gold-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold-light), rgba(255, 165, 0, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.stat-icon i {
    font-size: 30px;
    color: var(--gold);
}

.stat-wallet .stat-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
}

.stat-entries .stat-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.1));
}

.stat-entries .stat-icon i {
    color: #8B5CF6;
}

.stat-wins .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}

.stat-wins .stat-icon i {
    color: #10B981;
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-actions-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.stat-action {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-action:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.stat-action-withdraw {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.stat-action-withdraw:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.2));
}

.stat-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   ACCOUNT PROGRESS CARD
   ============================================ */
.account-progress-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--border-radius);
    padding: 28px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.progress-stat {
    text-align: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.progress-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 4px;
}

.progress-label {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-progress {
    margin-top: 24px;
}

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

.level-header span {
    color: var(--text-secondary);
    font-size: 14px;
}

.level-badge {
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
}

.level-bronze {
    background: rgba(205, 127, 50, 0.2);
    color: #CD7F32;
    border: 1px solid #CD7F32;
}

.level-silver {
    background: rgba(192, 192, 192, 0.2);
    color: #C0C0C0;
    border: 1px solid #C0C0C0;
}

.level-gold {
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.level-platinum {
    background: rgba(229, 228, 226, 0.2);
    color: #E5E4E2;
    border: 1px solid #E5E4E2;
}

.level-diamond {
    background: linear-gradient(45deg, rgba(185, 242, 255, 0.2), rgba(255, 255, 255, 0.2));
    color: #fff;
    border: 1px solid #fff;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* ============================================
   PRIZES SECTION - FULL WIDTH
   ============================================ */
.prizes-section-full {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
    border: 1px solid var(--gold-border);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prizes-section-full .section-title {
    position: relative;
}

.prize-badge-new {
    background: linear-gradient(135deg, #ff4444, #ff0000);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
    animation: pulse 2s infinite;
}

.prizes-container {
    margin-top: 24px;
}

.prizes-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.prizes-status-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.prizes-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.prizes-status-header h4 {
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.prizes-status-header i {
    font-size: 18px;
}

.prizes-status-count {
    background: var(--gold-light);
    color: var(--gold);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.prizes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prize-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    position: relative;
}

.prize-card:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(3px);
    border-color: rgba(255, 215, 0, 0.3);
}

.prize-card.pending {
    border-left: 3px solid var(--warning);
}

.prize-card.approved {
    border-left: 3px solid var(--success);
    background: rgba(0, 255, 0, 0.02);
}

.prize-card.rejected {
    border-left: 3px solid var(--danger);
    opacity: 0.7;
    background: rgba(255, 0, 0, 0.02);
}

.prize-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 165, 0, 0.8));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    flex-shrink: 0;
}

.prize-icon.big-prize {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

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

.prize-name {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px; /* Force maximum width */
    word-break: break-word;
}
.prize-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.prize-value {
    font-weight: 600;
    color: var(--success);
}

.prize-warning {
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(255, 165, 0, 0.1);
    color: var(--warning);
    border-radius: 6px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.prize-tracking {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    color: var(--success);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prize-note {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 6px;
    color: #ff6b6b;
    font-size: 12px;
}

.prize-action {
    display: flex;
    align-items: center;
}

.claim-prize-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.9));
    color: #000;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.claim-prize-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.claim-prize-btn:disabled,
.claim-prize-btn.claiming {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.status-badge.approved {
    background: rgba(0, 255, 0, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-badge.rejected {
    background: rgba(255, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.empty-status-section {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--border-radius);
    padding: 24px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-button {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 20px;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--gold-light), transparent);
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.action-button:hover::before {
    width: 100%;
    height: 100%;
}

.action-button i {
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.action-button span {
    position: relative;
    z-index: 1;
}

.action-button:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

/* ============================================
   RECENT ACTIVITY
   ============================================ */
.recent-activity-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--border-radius);
    padding: 24px;
}

.activity-container {
    margin-top: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.activity-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(3px);
}

.activity-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-competition {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    color: var(--gold);
}

.icon-wheel {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: #8B5CF6;
}

.icon-instant {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #F59E0B;
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 4px;
}

.activity-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-right {
    text-align: right;
}

.activity-result {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.result-win {
    color: var(--success);
}

.result-pending {
    color: var(--text-secondary);
}

.activity-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-prizes,
.empty-activity {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    color: rgba(255, 215, 0, 0.2);
    margin-bottom: 20px;
}

.empty-text {
    color: #888;
    font-size: 16px;
    margin-bottom: 20px;
}

.empty-button,
.start-playing-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.empty-button:hover,
.start-playing-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.view-all-button {
    width: 100%;
    margin-top: 16px;
    text-align: center;
    color: var(--gold);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 14px;
}

.view-all-button:hover {
    color: var(--gold-dark);
}

/* ============================================
   SETTINGS SECTION
   ============================================ */
.settings-container {
    max-width: 1000px;
    margin: 0 auto;
}

.back-button {
    margin-bottom: 24px;
    color: var(--gold);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: color 0.2s;
}

.back-button:hover {
    color: var(--gold-dark);
}

.settings-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--gold-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.settings-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-since {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   FORMS
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    outline: none;
    background: rgba(255, 215, 0, 0.05);
}

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

.form-input.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-help {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.submit-button {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 15px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* ============================================
   SECURITY OPTIONS
   ============================================ */
.security-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-option {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.security-option:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(4px);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold-light), rgba(255, 165, 0, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 24px;
    margin-right: 16px;
}

.option-content {
    flex: 1;
    text-align: left;
}

.option-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 16px;
}

.option-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   PREFERENCES
   ============================================ */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold-border);
    cursor: pointer;
    transition: var(--transition);
}

.preference-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.05);
}

.preference-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.preference-toggle {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.loading-spinner {
    text-align: center;
    padding: 48px 0;
    color: #888;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
    animation: spin 1s linear infinite;
}

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

.error-message {
    text-align: center;
    padding: 32px;
    color: var(--danger);
}

.error-message i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}

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

.modal-container,
.password-modal {
    background: linear-gradient(to bottom, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--gold-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s;
}

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cancel-button {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-button:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile */
@media (max-width: 767px) {
    #profile-content {
        padding: 12px;
    }
    
    .profile-dashboard-grid {
        gap: 16px;
    }
    
    .welcome-card {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-title i {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon i {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prizes-status-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .activity-right {
        text-align: left;
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        padding: 24px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .profile-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-card,
    .account-progress-card,
    .prizes-section-full,
    .quick-actions-card,
    .recent-activity-card {
        grid-column: span 2;
    }
    
    .progress-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .prizes-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .profile-dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .welcome-card,
    .account-progress-card,
    .prizes-section-full,
    .quick-actions-card,
    .recent-activity-card {
        grid-column: span 3;
    }
    
    .progress-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .prizes-status-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets on mobile */
button, .action-button, .stat-action, .claim-prize-btn {
    min-height: 44px;
    min-width: 44px;
}

/* ZERO HORIZONTAL SCROLL - PERFECT MOBILE FIT */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    #profile-content {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        padding: 10px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .profile-dashboard-grid {
        width: 100% !important;
        max-width: 100% !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* Fix the stats grid that's getting cut off */
    .progress-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .progress-stat {
        padding: 10px !important;
        text-align: center !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 215, 0, 0.1) !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    
    .progress-value {
        font-size: 20px !important;
        margin-bottom: 4px !important;
        word-break: break-word !important;
    }
    
    .progress-label {
        font-size: 10px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* All cards - no margin/padding overflow */
    .welcome-card,
    .stat-card,
    .account-progress-card,
    .quick-actions-card,
    .recent-activity-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
        padding: 15px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .prizes-section-full {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
        padding: 15px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .prizes-status-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .prizes-status-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .prize-card {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        padding: 8px !important;
        margin-bottom: 8px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        gap: 8px !important;
    }
    
    .prize-icon {
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0 !important;
        font-size: 14px !important;
    }
    
    .prize-details {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .prize-name {
        font-size: 12px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        margin-bottom: 2px !important;
        max-width: 100% !important;
    }
    
    .prize-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        font-size: 10px !important;
    }
    
    .prize-action {
        flex-shrink: 0 !important;
    }
    
    .claim-prize-btn {
        padding: 4px 8px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
        min-width: 45px !important;
        border-radius: 4px !important;
    }
    
    .status-badge {
        padding: 3px 6px !important;
        font-size: 9px !important;
        border-radius: 4px !important;
    }
    
    /* Remove hover effects that could cause overflow */
    .prize-card:hover,
    .activity-item:hover {
        transform: none !important;
    }
    
    /* Fix any text that might be too wide */
    .stat-value {
        font-size: 24px !important;
        word-break: break-word !important;
    }
    
    .welcome-title {
        font-size: 20px !important;
        word-break: break-word !important;
    }
    
    /* Ensure nothing can create horizontal scroll */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix the level progress bar container */
    .level-progress {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .progress-bar {
        width: 100% !important;
        max-width: 100% !important;
    }
}