*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* DESIGN TOKENS */
:root {
  --bg: #F8F9FA; --surface: #FFFFFF; --green: #05CE78; --green-dark: #03A862; --green-text: #003822;
  --text-primary: #202124; --text-secondary: #5F6368; --border: #DADCE0;
  --danger: #D93025; --success: #1E8E3E; --link: #028858;
  --radius: 8px; --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --font-head: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: var(--green-text); font-weight: 600; font-size: 14px; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; text-decoration: none; transition: background 0.15s; line-height: 1; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text-primary); font-weight: 500; font-size: 14px; padding: 9px 18px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; text-decoration: none; transition: all 0.15s; line-height: 1; }
.btn-secondary:hover { border-color: var(--text-secondary); background: var(--bg); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-full { width: 100%; }
.pass-active { background: rgba(5,206,120,0.12); color: var(--success); border: 1px solid rgba(5,206,120,0.3); }

/* BADGES */
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.badge-coming { background: rgba(251,188,5,0.15); color: #b06000; }
.badge-public { background: rgba(5,206,120,0.12); color: var(--success); }
.badge-private { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-platform { background: rgba(2,136,88,0.1); color: #028858; }

/* TOPBAR (homepage/dashboard) */
.site-topbar { background: #fff; border-bottom: 1px solid var(--border); height: 56px; display: flex; align-items: center; padding: 0 24px; gap: 24px; position: sticky; top: 0; z-index: 100; }
.site-logo { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text-primary); }
.site-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.site-nav a { font-size: 14px; color: var(--text-secondary); }
.site-nav a:hover { color: var(--text-primary); }

/* HOMEPAGE */
.hero-section { max-width: 720px; margin: 80px auto; padding: 0 24px; text-align: center; }
.hero-section h1 { font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--text-primary); margin-bottom: 16px; }
.hero-section p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tools-section { max-width: 960px; margin: 0 auto 80px; padding: 0 24px; }
.tools-section h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow 0.15s; text-decoration: none; color: inherit; }
.tool-card:hover { box-shadow: var(--shadow-md); }
.tool-card-icon { font-size: 28px; }
.tool-card-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.tool-card-desc { font-size: 14px; color: var(--text-secondary); }
.gallery-section { max-width: 960px; margin: 0 auto 80px; padding: 0 24px; }
.gallery-section h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.15s; }
.gallery-card:hover { box-shadow: var(--shadow-md); }
.gallery-card-image { height: 160px; background: var(--bg); overflow: hidden; }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-info { padding: 12px 16px; }
.gallery-card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.gallery-card-subtitle { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; font-size: 13px; color: var(--text-secondary); }
.site-footer a { color: var(--text-secondary); margin: 0 8px; }
.site-footer a:hover { color: var(--text-primary); }

/* AUTH PAGES */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 24px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; max-width: 420px; width: 100%; }
.auth-logo { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--text-primary); display: block; margin-bottom: 24px; }
.auth-card h1 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.auth-card > p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.auth-card input { width: 100%; font-size: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.auth-card input:focus { outline: none; border-color: var(--green); }
.auth-note { font-size: 12px; color: var(--text-secondary); text-align: center; margin-top: 16px; }
.success-message { background: rgba(5,206,120,0.1); border: 1px solid rgba(5,206,120,0.3); border-radius: var(--radius); padding: 16px; font-size: 14px; color: var(--success); line-height: 1.5; }

/* DASHBOARD */
.dashboard-page { max-width: 960px; margin: 40px auto; padding: 0 24px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dashboard-header h1 { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.pass-banner { border-radius: var(--radius); padding: 12px 16px; font-size: 13px; margin-bottom: 24px; }
.pass-banner.active { background: rgba(5,206,120,0.08); border: 1px solid rgba(5,206,120,0.25); color: var(--success); }
.pass-banner.inactive { background: rgba(251,188,5,0.08); border: 1px solid rgba(251,188,5,0.3); color: #b06000; }
.pass-banner a { font-weight: 600; text-decoration: underline; color: inherit; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.15s; display: flex; flex-direction: column; }
.project-card:hover { box-shadow: var(--shadow-md); }
.project-hero { height: 160px; background: var(--bg); overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-info { padding: 12px 16px; flex: 1; display: flex; flex-direction: column; }
.project-card-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.project-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.project-subtitle { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.4; }
.project-meta { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.project-date { font-size: 11px; color: var(--text-secondary); margin-bottom: 10px; }
.project-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.project-card-new { border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; min-height: 200px; border-radius: var(--radius); cursor: pointer; text-decoration: none; color: var(--text-secondary); font-size: 15px; transition: all 0.15s; }
.project-card-new:hover { border-color: var(--green); color: var(--green); background: rgba(5,206,120,0.03); }
.btn-delete-project { background: none; border: 1px solid #e0e0e0; color: var(--text-secondary); font-size: 12px; padding: 4px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; }
.btn-delete-project:hover { border-color: #e53935; color: #e53935; background: #fff5f5; }

/* ARTICLE/GUIDE PAGES */
.article-page { max-width: 720px; margin: 48px auto; padding: 0 24px; }
.article-page h1 { font-family: var(--font-head); font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 24px; color: var(--text-primary); }
.article-page h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.article-page p { font-size: 16px; line-height: 1.7; color: #333; margin-bottom: 16px; }
.article-page a { color: var(--link); text-decoration: underline; }
.article-cta { background: rgba(5,206,120,0.08); border: 1px solid rgba(5,206,120,0.25); border-radius: var(--radius); padding: 24px; margin-top: 40px; text-align: center; }
.article-cta p { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }

/* PRICING PAGE */
.pricing-page { max-width: 860px; margin: 60px auto; padding: 0 24px; text-align: center; }
.pricing-page h1 { font-family: var(--font-head); font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.pricing-page > p { font-size: 17px; color: var(--text-secondary); margin-bottom: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 60px; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; position: relative; }
.pricing-card.featured { border-color: var(--green); box-shadow: 0 0 0 2px rgba(5,206,120,0.2); }
.most-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--green-text); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 100px; white-space: nowrap; }
.pricing-name { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-price { font-family: var(--font-head); font-size: 42px; font-weight: 700; margin-bottom: 4px; }
.pricing-duration { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-faq { text-align: left; max-width: 600px; margin: 0 auto; }
.pricing-faq h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* COMING SOON PAGE */
.coming-soon-page { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.coming-soon-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 60px 48px; text-align: center; max-width: 420px; }
.coming-soon-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.coming-soon-card h1 { font-family: var(--font-head); font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.coming-soon-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.coming-soon-card .badge { margin-bottom: 24px; font-size: 13px; padding: 4px 12px; }

/* UTILITY */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; font-size: 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text-primary); }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--green); }

/* SUCCESS PAGE */
.success-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.success-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; max-width: 480px; width: 100%; text-align: center; }
.success-card .success-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.success-card h1 { font-family: var(--font-head); font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.success-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.6; }
.success-card .btn-primary { margin-top: 24px; }

/* MOBILE RESPONSIVE — GLOBAL */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 28px; }
  .tools-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pass-options { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
