*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --purple: #4c1d95; --purple-light: #7c3aed; --purple-dark: #3b0764;
  --gold: #d4a574; --gold-light: #e8c9a0; --gold-dark: #b8864a;
  --warm: #faf5ef; --warm-dark: #f0e6d6;
  --text: #1f1a2e; --text-light: #6b5b7b; --text-muted: #9c8faa;
}
body { font-family: 'Georgia', 'Times New Roman', serif; background: var(--warm); color: var(--text); line-height: 1.7; }
a { color: var(--purple); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { background: var(--purple-dark); padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.2rem; font-weight: 700; color: var(--gold); font-family: Georgia, serif; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--warm); font-size: 0.88rem; font-family: -apple-system, sans-serif; }
.nav-links a:hover { color: var(--gold); }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 0.92em; font-family: -apple-system, sans-serif; cursor: pointer; border: none; transition: all 0.2s; }
.btn-gold { background: var(--gold); color: var(--purple-dark); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-purple { background: var(--purple); color: var(--gold-light); }
.btn-purple:hover { background: var(--purple-light); }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--purple-dark); }
.btn-danger { background: #dc2626; color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.82em; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, #5b21b6 100%); padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(212,165,116,0.08) 0%, transparent 50%); }
.hero h1 { font-size: 3.2rem; color: var(--warm); font-weight: 400; letter-spacing: 0.03em; margin-bottom: 12px; position: relative; }
.hero h1 span { color: var(--gold); font-style: italic; }
.hero .tagline { color: var(--gold-light); font-size: 1.25rem; font-style: italic; margin-bottom: 32px; position: relative; }
.hero .hero-btns { display: flex; gap: 14px; justify-content: center; position: relative; }
@media (max-width: 600px) { .hero h1 { font-size: 2rem; } .hero .hero-btns { flex-direction: column; align-items: center; } }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--warm-dark); }
.section-title { font-size: 2rem; text-align: center; color: var(--purple-dark); margin-bottom: 8px; font-weight: 400; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 40px; font-size: 1.05em; max-width: 650px; margin-left: auto; margin-right: auto; }

/* Cards */
.card { background: white; border: 1px solid #e8ddd0; border-radius: 14px; padding: 28px; box-shadow: 0 4px 20px rgba(76,29,149,0.06); }
.card h3 { color: var(--purple); margin-bottom: 8px; font-size: 1.15em; }
.card p { color: var(--text-light); font-size: 0.95em; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* Pricing */
.pricing-card { background: white; border: 2px solid var(--gold); border-radius: 18px; padding: 40px; max-width: 440px; margin: 0 auto; text-align: center; box-shadow: 0 8px 40px rgba(76,29,149,0.1); }
.pricing-card .price { font-size: 3rem; color: var(--purple); font-weight: 700; }
.pricing-card .price span { font-size: 1rem; color: var(--text-light); }
.pricing-card ul { list-style: none; text-align: left; margin: 24px 0; }
.pricing-card li { padding: 8px 0; color: var(--text-light); font-size: 0.95em; border-bottom: 1px solid #f0e6d6; font-family: -apple-system, sans-serif; }
.pricing-card li::before { content: '\2713 '; color: var(--gold-dark); font-weight: 700; margin-right: 8px; }

/* Forms */
.form-card { background: white; border-radius: 14px; padding: 36px; max-width: 440px; margin: 60px auto; box-shadow: 0 4px 20px rgba(76,29,149,0.08); }
.form-card h2 { color: var(--purple); margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85em; color: var(--text-light); margin-bottom: 4px; font-family: -apple-system, sans-serif; }
.form-group input { width: 100%; padding: 12px 14px; border: 1px solid #d4c8b8; border-radius: 8px; font-size: 0.95em; font-family: inherit; background: var(--warm); }
.form-group input:focus { outline: none; border-color: var(--purple-light); }
.form-error { color: #dc2626; font-size: 0.85em; margin-top: 12px; text-align: center; font-family: -apple-system, sans-serif; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.dash-card { background: white; border: 1px solid #e8ddd0; border-radius: 14px; padding: 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.dash-card:hover { border-color: var(--gold); box-shadow: 0 6px 24px rgba(76,29,149,0.1); }
.dash-card .icon { font-size: 2.4rem; margin-bottom: 10px; }
.dash-card h3 { color: var(--purple); font-size: 1.05em; margin-bottom: 4px; }
.dash-card p { color: var(--text-light); font-size: 0.85em; font-family: -apple-system, sans-serif; }

/* Chat */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 60px); max-width: 800px; margin: 0 auto; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid #e8ddd0; display: flex; justify-content: space-between; align-items: center; }
.chat-header h2 { color: var(--purple); font-size: 1.1em; }
.chat-counter { color: var(--text-muted); font-size: 0.82em; font-family: -apple-system, sans-serif; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 80%; padding: 14px 18px; border-radius: 16px; font-size: 0.95em; line-height: 1.6; font-family: -apple-system, sans-serif; }
.msg-user { background: var(--gold-light); color: var(--purple-dark); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-assistant { background: white; border: 1px solid #e0d4c8; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-time { font-size: 0.72em; color: var(--text-muted); margin-top: 6px; }
.chat-input-area { padding: 14px 20px; border-top: 1px solid #e8ddd0; background: white; display: flex; gap: 10px; }
.chat-input-area input { flex: 1; padding: 12px 16px; border: 1px solid #d4c8b8; border-radius: 24px; font-size: 0.95em; background: var(--warm); font-family: inherit; }
.chat-input-area input:focus { outline: none; border-color: var(--purple-light); }
.chat-input-area button { padding: 12px 24px; border-radius: 24px; }
.chat-loading { text-align: center; color: var(--text-muted); font-style: italic; padding: 12px; font-size: 0.88em; }

/* Articles */
.article-card { background: white; border: 1px solid #e8ddd0; border-radius: 12px; padding: 24px; margin-bottom: 16px; transition: border-color 0.2s; }
.article-card:hover { border-color: var(--gold); }
.article-card h3 { color: var(--purple); margin-bottom: 6px; }
.article-card .meta { color: var(--text-muted); font-size: 0.82em; font-family: -apple-system, sans-serif; }
.article-card p { color: var(--text-light); font-size: 0.92em; margin-top: 8px; }
.article-full { max-width: 720px; margin: 40px auto; padding: 0 20px; }
.article-full h1 { color: var(--purple-dark); font-size: 2.2rem; margin-bottom: 8px; }
.article-full .meta { color: var(--text-muted); font-size: 0.88em; margin-bottom: 28px; font-family: -apple-system, sans-serif; }
.article-full .content { font-size: 1.05em; color: var(--text); }
.article-full .content h2 { color: var(--purple); margin: 28px 0 12px; font-size: 1.4em; }
.article-full .content p { margin-bottom: 16px; }

/* Account */
.account-section { max-width: 600px; margin: 40px auto; }
.account-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #e8ddd0; }
.account-row .label { color: var(--text-light); font-size: 0.88em; font-family: -apple-system, sans-serif; }
.account-row .value { color: var(--text); font-weight: 600; }
.status-active { color: #16a34a; }
.status-inactive { color: #dc2626; }

/* Footer */
.footer { background: var(--purple-dark); color: var(--warm-dark); padding: 40px 0; text-align: center; font-size: 0.88em; }
.footer a { color: var(--gold); }
.footer .disclaimer { color: #9c8faa; font-size: 0.78em; margin-top: 16px; max-width: 600px; margin-left: auto; margin-right: auto; font-family: -apple-system, sans-serif; }

@media (max-width: 768px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.8rem; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .chat-wrap { height: calc(100vh - 56px); }
  .msg { max-width: 90%; }
}
