/**
 * Main Styles — Light Minimal Theme
 */
:root {
 --bg-body: #e4e4e7;
 --bg-primary: #ececef;
 --bg-secondary: #ececef;
 --bg-tertiary: #dddde0;
 --bg-hover: #d2d2d6;
 --bg-card: #ececef;

 --text-primary: #1a1a1a;
 --text-secondary: #444446;
 --text-muted: #7c7c80;

 --accent: #2563eb;
 --accent-light: #3b82f6;
 --accent-dark: #1d4ed8;
 --accent-bg: rgba(37, 99, 235, 0.08);

 --success: #16a34a;
 --success-bg: rgba(22, 163, 74, 0.07);
 --warning: #d97706;
 --warning-bg: rgba(217, 119, 6, 0.07);
 --error: #dc2626;
 --error-bg: rgba(220, 38, 38, 0.07);
 --info: #2563eb;
 --info-bg: rgba(37, 99, 235, 0.06);

 --border: #cbcbcf;
 --border-light: #d5d5d9;

 --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
 --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
 --shadow-lg: 0 4px 12px rgba(0,0,0,0.06);

 --radius-sm: 6px;
 --radius: 8px;
 --radius-lg: 12px;
 --radius-xl: 16px;

 --transition: all 0.15s ease;
 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
 --font-mono: 'SF Mono', 'Consolas', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
 font-family: var(--font-sans);
 background: var(--bg-body);
 color: var(--text-primary);
 line-height: 1.6;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
 -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-primary); }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p { color: var(--text-secondary); }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; }
main { flex: 1; padding: 40px 0; }

/* Header */
.site-header { background: var(--bg-primary); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-size: 17px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.logo-text span { color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; color: var(--text-secondary); font-size: 14px; font-weight: 500; border-radius: var(--radius); transition: var(--transition); }
.nav-link:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.nav-link.active { color: var(--accent); background: var(--accent-bg); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-balance { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-tertiary); border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--success); }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; }
.lang-switch a { color: var(--text-muted); padding: 4px 6px; border-radius: 4px; transition: var(--transition); }
.lang-switch a:hover { color: var(--text-primary); }
.lang-switch a.active { color: var(--accent); background: var(--accent-bg); }
.lang-divider { color: var(--border); }

/* User Menu */
.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: transparent; border: none; border-radius: var(--radius); cursor: pointer; transition: var(--transition); font-family: inherit; }
.user-menu-btn:hover { background: var(--bg-tertiary); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; flex-shrink: 0; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.user-chevron { color: var(--text-muted); transition: transform 0.2s ease; flex-shrink: 0; }
.user-menu.open .user-chevron { transform: rotate(180deg); }
.user-menu-dropdown { position: absolute; top: 100%; right: 0; margin-top: 6px; min-width: 180px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; z-index: 9999; overflow: hidden; }
.user-menu.open .user-menu-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text-secondary); font-size: 13px; transition: var(--transition); text-decoration: none; }
.user-menu-dropdown a:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.user-menu-dropdown a.logout { color: var(--error); }
.user-menu-dropdown a.logout:hover { background: var(--error-bg); }
.user-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Footer */
.site-footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 32px 0; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 48px; }
.footer-brand p { margin-top: 8px; font-size: 13px; color: var(--text-muted); max-width: 280px; }
.footer-links h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border-radius: var(--radius); color: var(--text-muted); transition: var(--transition); }
.footer-socials a:hover { background: var(--accent-bg); color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; font-size: 14px; font-weight: 500; font-family: inherit; border: none; border-radius: var(--radius); cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--accent); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-bg); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-icon { width: 36px; height: 36px; padding: 0; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-input { width: 100%; padding: 10px 14px; font-size: 14px; font-family: inherit; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { min-height: 100px; resize: vertical; }
select.form-input { cursor: pointer; }
.form-hint { margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.form-error { color: var(--error); }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-tertiary); }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; font-size: 12px; font-weight: 500; border-radius: 20px; }
.badge-primary { background: var(--accent-bg); color: var(--accent); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-error { background: var(--error-bg); color: var(--error); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(22, 163, 74, 0.15); }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(220, 38, 38, 0.15); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(217, 119, 6, 0.15); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(37, 99, 235, 0.15); }

/* Utility */
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; } .flex-between { display: flex; align-items: center; justify-content: space-between; } .flex-col { flex-direction: column; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.grid { display: grid; } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
 h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; }
 .container { padding: 0 16px; }
 .header-nav { display: none; }
 .footer-inner { grid-template-columns: 1fr; gap: 24px; }
 .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
 .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Toast */
.toast { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13px; color: var(--text-primary); opacity: 0; transform: translateX(20px); transition: all 0.3s ease; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--error); }
.toast-info { border-color: var(--accent); }
