/* ========================================
   Base Reset & Common
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #faf9f7;
    color: #333;
    line-height: 1.6;
    font-weight: 400;
}
a { color: #333; text-decoration: none; }
a:hover { color: #000; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.site-main { min-height: 60vh; padding: 0; }

/* ========================================
   Header
   ======================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.logo-icon { font-size: 18px; color: #666; }
.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    transition: color 0.2s;
}
.main-nav a:hover { color: #111; }
.nav-store {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.credit-icon { color: #e6a23c; }
.header-actions .btn { font-size: 12px; padding: 5px 14px; }
.mobile-menu-toggle { display: none; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 40px 0;
    margin-top: 0;
}
.footer-inner { text-align: center; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.footer-desc { font-size: 12px; color: #999; margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.footer-links a { font-size: 12px; color: #666; }
.footer-links a:hover { color: #111; }
.footer-copy { font-size: 11px; color: #bbb; }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
    line-height: 1.4;
}
.btn:hover { background: #f5f5f5; }
.btn-primary {
    background: #222;
    color: #fff;
    border-color: #222;
}
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: #ddd; }
.btn-ghost:hover { background: #f5f5f5; }
.btn-large { padding: 12px 32px; font-size: 14px; }
.btn-small { padding: 4px 10px; font-size: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========================================
   Modal Base
   ======================================== */
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

/* ========================================
   Utilities
   ======================================== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #eee;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
body.modal-open { overflow: hidden; }