* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a1a2e; background: #f5f6fa; line-height: 1.6; }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 0 32px; height: 56px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.nav-logo { font-size: 18px; font-weight: 700; color: #4a00e0; text-decoration: none; }
.nav-links a { margin-left: 24px; text-decoration: none; color: #555; font-size: 14px; }
.nav-links a:hover { color: #4a00e0; }

/* Hero */
.hero { text-align: center; padding: 80px 20px; background: linear-gradient(135deg, #4a00e0, #8e2de2); color: #fff; }
.hero h1 { font-size: 36px; margin-bottom: 16px; }
.hero .subtitle { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* Buttons */
.btn { display: inline-block; padding: 10px 24px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; text-decoration: none; transition: opacity 0.2s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: #4a00e0; color: #fff; }
.btn-secondary { background: #fff; color: #4a00e0; }
.btn-warn { background: #f39c12; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; border: none; border-radius: 4px; cursor: pointer; color: #fff; }
.btn-sm.btn-primary { background: #4a00e0; }
.btn-sm.btn-warn { background: #f39c12; }
.btn-sm.btn-danger { background: #e74c3c; }

/* Container */
.container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.container h1 { margin-bottom: 16px; }
.container h2 { margin: 32px 0 12px; font-size: 22px; }
.subtitle { font-size: 16px; color: #666; margin-bottom: 24px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.feature-card { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.feature-card h3 { color: #4a00e0; margin-bottom: 8px; }
.feature-card p { color: #666; font-size: 14px; }

/* Lists */
.value-list, .steps-list { padding-left: 20px; line-height: 2; }
.api-doc pre { background: #1e1e2e; color: #a6e3a1; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 12px 0; }
.api-doc code { font-family: 'Fira Code', monospace; font-size: 13px; }

/* Table */
.table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.table th { background: #f8f9fa; padding: 12px; text-align: left; font-size: 13px; color: #555; }
.table td { padding: 12px; border-top: 1px solid #eee; font-size: 14px; }

/* Badge */
.badge { padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.badge.active { background: #d4edda; color: #155724; }
.badge.disabled { background: #f8d7da; color: #721c24; }

/* Credits card */
.credits-card { display: flex; gap: 24px; background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin: 16px 0; flex-wrap: wrap; }
.credit-item { text-align: center; min-width: 100px; }
.credit-item span { display: block; font-size: 13px; color: #999; margin-bottom: 4px; }
.credit-item strong { font-size: 28px; }
.credit-item.highlight strong { color: #4a00e0; }
.hint { color: #999; font-size: 14px; margin: 12px 0; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal { background: #fff; padding: 32px; border-radius: 12px; width: 360px; }
.modal h2 { margin-bottom: 20px; }
.modal input { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.modal .btn { width: 100%; text-align: center; }
.error { color: #e74c3c; font-size: 13px; margin: 8px 0; }
.auth-switch { text-align: center; margin-top: 12px; font-size: 13px; }
.auth-switch a { color: #4a00e0; }

/* Alert */
.alert { padding: 12px 16px; border-radius: 6px; margin: 12px 0; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Admin */
.admin-actions { background: #fff; padding: 24px; border-radius: 8px; margin: 16px 0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.admin-actions input[type="file"] { margin: 8px 0; }
