:root {
    --bg-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #334155;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --primary: #3b82f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

/* User Profile & PFP */
.user-pfp {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.pfp-large { width: 80px; height: 80px; }

/* Store Preview Modal */
.preview-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    display: none;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.preview-overlay.active { display: flex; }

.preview-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.teaser-box {
    position: relative;
    max-height: 250px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 2rem;
}

.teaser-gradient {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

.review-card {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
}

/* Toast Notifications */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 20000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1f2937; color: white; padding: 12px 20px; border-radius: 8px; min-width: 250px; border-left: 4px solid var(--primary); }

/* Custom Modals */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 15000; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: white; padding: 2rem; border-radius: 12px; max-width: 400px; width: 100%; transform: translateY(20px); transition: transform 0.2s; }
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-header { font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.modal-body { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; }
.modal-btn { padding: 0.5rem 1rem; border-radius: 4px; border: none; cursor: pointer; font-weight: 600; }
.modal-btn-confirm { background: var(--primary); color: white; }
.modal-btn-cancel { background: #f1f5f9; color: var(--text-main); }

/* Layout */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 2rem; background: #fff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 1.5rem; font-size: 0.9rem; }
.nav-links a.active { color: var(--text-main); font-weight: 600; }

.container { max-width: 900px; margin: 0 auto; padding: 2rem; }

.dashboard-header { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; align-items: start; }
.balance-amount { font-size: 2.5rem; font-weight: 800; color: var(--text-main); }

.glass-panel { background: var(--glass-bg); backdrop-filter: blur(8px); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; }

input, select, textarea { width: 100%; padding: 0.6rem; margin-bottom: 1rem; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 0.9rem; }
.primary-btn { width: 100%; padding: 0.6rem; background: #f1f5f9; border: 1px solid #cbd5e1; color: var(--text-main); font-weight: 600; cursor: pointer; border-radius: 4px; }
.primary-btn:hover { background: #e2e8f0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.cheat-card { background: #fff; border: 1px solid var(--border-color); padding: 1rem; border-radius: 4px; cursor: pointer; }
.tag { background: #f1f5f9; padding: 0.1rem 0.4rem; margin-right: 0.3rem; font-size: 0.7rem; border-radius: 4px; color: #64748b; }

.error-msg { color: #dc2626; font-size: 0.85rem; margin-bottom: 1rem; }

.overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; }
.overlay.active { opacity: 1; pointer-events: auto; }

.suggestions-box { position: absolute; background: white; border: 1px solid #cbd5e1; width: 100%; z-index: 10; max-height: 150px; overflow-y: auto; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.suggestion-item { padding: 8px; cursor: pointer; font-size: 0.9rem; }
.suggestion-item:hover { background: #f1f5f9; }

.hidden { display: none; }
