/* ==========================================================
   Aurelius Pictures Capital — Dark & Green Corporate Theme
   ========================================================== */

/*
 * Qalinka is not on Google Fonts, so it can't be pulled from a CDN like
 * Playfair Display was. Drop your licensed font files into
 * assets/fonts/ and update the src paths below. Until those files are
 * added, headings will fall back to Playfair Display / Georgia.
 */
@font-face {
  font-family: 'Qalinka';
  src: url('../fonts/Qalinka-Regular.woff2') format('woff2'),
       url('../fonts/Qalinka-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Qalinka';
  src: url('../fonts/Qalinka-Bold.woff2') format('woff2'),
       url('../fonts/Qalinka-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #0d0f14;
  --color-bg-alt: #14171f;
  --color-surface: #1a1d27;
  --color-border: #2a2e3a;
  --color-gold: #ff5a1f;
  --color-gold-light: #ff7a45;
  --color-text: #eef0f4;
  --color-text-muted: #9aa0ad;
  --color-heading: #ffffff;
  --color-success: #3ecf8e;
  --color-danger: #e0555c;
  --font-heading: 'Qalinka', 'Poppins', 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ---------- Light mode ----------
   Toggled by setting data-theme="light" on <html> (see theme-toggle.js).
   Public site only — the admin system is not wired to this and always
   renders in its own fixed theme. */
[data-theme="light"] {
  --color-bg: #f7f7f9;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-border: #e4e4ea;
  --color-gold: #ff5a1f;
  --color-gold-light: #ff7a45;
  --color-text: #3c3f47;
  --color-text-muted: #6b6f7b;
  --color-heading: #191b20;
  --color-success: #1f9d63;
  --color-danger: #d63c46;
  --shadow: 0 10px 30px rgba(20,20,30,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

/* Public-site elements that read from theme vars get a smooth cross-fade
   when switching between light and dark. */
.site-header, .card, .btn, .faq-item, .form-control, .site-footer,
.process-card, .service-item, .portfolio-card, .newsletter-box {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

/* ---------- Theme toggle switch (header) ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-muted); cursor: pointer; font-size: 15px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.theme-toggle:hover { color: var(--color-gold-light); border-color: var(--color-gold); }
.theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: inline-block; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon,
:root:not([data-theme]) .theme-toggle .fa-moon { display: inline-block; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; margin: 0 0 .5em; color: var(--color-heading); }
p { margin: 0 0 1em; color: var(--color-text-muted); }
a { color: var(--color-gold-light); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: all .2s ease; }
.btn-gold { background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold)); color: #17181d; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--color-gold); color: var(--color-gold-light); background: transparent; }
.btn-outline:hover { background: rgba(255,90,31,0.1); }
.btn-ghost { color: var(--color-text); background: transparent; }
.btn-ghost:hover { color: var(--color-gold-light); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header / Navbar ---------- */
.site-header { background: color-mix(in srgb, var(--color-bg) 92%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
@media (min-width: 901px) {
  .header-inner { justify-content: flex-start; }
  .brand { order: 1; }
  .main-nav { order: 2; margin-left: auto; }
  .header-utility { order: 3; margin-left: 18px; }
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 36px; width: auto; }
/* Show only the logo matching the active theme. If a site has only
   uploaded one logo, logo_dark/logo_light both resolve to the same file
   in navbar.php, so this still shows correctly either way. */
.brand-logo-light { display: none; }
[data-theme="light"] .brand-logo-dark { display: none; }
[data-theme="light"] .brand-logo-light { display: block; }
.brand-name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--color-heading); }
.main-nav ul { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--color-heading); font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--color-gold); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Toggle + hamburger group: always visible, sits beside the brand on
   every screen size, independent of whether the mobile menu is open. */
.header-utility { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--color-heading); font-size: 22px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--color-bg-alt); flex-direction: column; align-items: flex-start; padding: 20px; border-bottom: 1px solid var(--color-border); transform: translateY(-150%); transition: transform .25s ease; }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 14px; width: 100%; }
  .nav-actions { flex-direction: column; align-items: stretch; width: 100%; margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; background: radial-gradient(circle at 20% 20%, rgba(255,90,31,0.12), transparent 40%), linear-gradient(180deg, var(--color-bg-alt), var(--color-bg)); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.15; }
.hero .accent { color: var(--color-gold-light); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--color-border); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } }

/* Contact page: two columns on desktop, single column on mobile/tablet */
.contact-grid { max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--color-border); overflow: hidden; aspect-ratio: 4/3; background: var(--color-surface); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent); color: #fff; }
.hero-slide-caption h4 { margin: 0 0 4px; font-size: 16px; }
.hero-slide-caption p { margin: 0; font-size: 13px; opacity: .85; }
.hero-slider-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-slider-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; }
.hero-slider-dots button.is-active { background: var(--color-gold-light); width: 22px; border-radius: 4px; }
.hero-slider:has(.hero-slide-caption) .hero-slide-caption { z-index: 1; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }

/* About page: story text next to a company photo */
.about-story-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
.about-company-photo { position: sticky; top: 100px; }
.about-company-photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--color-border); object-fit: cover; max-height: 420px; }
@media (max-width: 900px) {
  .about-story-grid { grid-template-columns: 1fr; }
  .about-company-photo { position: static; }
}

/* About page: story timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--color-border); transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding: 0 40px 44px; }
.timeline-item.timeline-left { left: 0; text-align: right; }
.timeline-item.timeline-right { left: 50%; text-align: left; }
.timeline-dot {
  position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-gold); border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-gold);
}
.timeline-left .timeline-dot { right: -7px; }
.timeline-right .timeline-dot { left: -7px; }
.timeline-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 18px 20px; display: inline-block; text-align: left;
}
.timeline-year { display: inline-block; color: var(--color-gold-light); font-weight: 700; font-size: 13px; letter-spacing: .04em; margin-bottom: 6px; }
.timeline-card h3 { font-size: 17px; margin: 2px 0 8px; }
.timeline-card p { margin: 0; font-size: 14px; color: var(--color-text-muted); }
@media (max-width: 700px) {
  .timeline::before { left: 18px; }
  .timeline-item, .timeline-item.timeline-left, .timeline-item.timeline-right {
    width: 100%; left: 0; text-align: left; padding: 0 0 32px 44px;
  }
  .timeline-left .timeline-dot, .timeline-right .timeline-dot { left: 11px; right: auto; }
}

/* Scroll-reveal animation: elements start slightly lower + transparent,
   and transition in once they enter the viewport (see app.js). Respects
   users who prefer reduced motion. */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll.reveal-stagger-2 { transition-delay: .08s; }
.reveal-on-scroll.reveal-stagger-3 { transition-delay: .16s; }
.reveal-on-scroll.reveal-stagger-4 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .eyebrow { color: var(--color-gold); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--color-gold); }
.card-body { padding: 22px; }

.news-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.blog-post-content { color: var(--color-text); line-height: 1.8; font-size: 16px; }
.card-img { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg,#1f2330,#141720); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 28px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: rgba(255,90,31,0.15); color: var(--color-gold-light); }

.progress { height: 8px; border-radius: 100px; background: var(--color-border); overflow: hidden; margin: 10px 0; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light)); }

.stat-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--color-text-muted); }
.stat-row strong { color: var(--color-heading); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; text-align: center; }
.stat-box .stat-number { font-family: var(--font-heading); font-size: 36px; color: var(--color-gold-light); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* Testimonials */
.testimonial { padding: 26px; }
.testimonial .stars { color: var(--color-gold); margin-bottom: 10px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: var(--color-surface); }
.faq-question { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--color-heading); font-weight: 600; }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--color-text-muted); }
.faq-item.open .faq-answer { padding: 0 22px 20px; max-height: 400px; }

/* Forms */
.form-card { max-width: 460px; margin: 60px auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.form-control { width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-heading); font-size: 14px; }
.form-control:focus { outline: none; border-color: var(--color-gold); }

.password-field { position: relative; }
.password-field .form-control { padding-right: 44px; }
.password-toggle-btn {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  background: none; border: none; padding: 6px; margin: 0; cursor: pointer;
  color: var(--color-text-muted); display: flex; align-items: center; justify-content: center;
  line-height: 0;
}
.password-toggle-btn:hover, .password-toggle-btn:focus { color: var(--color-gold); outline: none; }
.password-toggle-btn svg { width: 20px; height: 20px; display: block; }

.phone-input-group { display: flex; gap: 8px; }
.phone-input-group .phone-code { flex: 0 0 84px; text-align: center; background: var(--color-bg); color: var(--color-text-muted); }
.phone-input-group input[type="tel"] { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-footer-link { text-align: center; margin-top: 18px; font-size: 14px; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: rgba(62,207,142,0.12); color: var(--color-success); border: 1px solid rgba(62,207,142,0.3); }
.alert-danger { background: rgba(224,85,92,0.12); color: var(--color-danger); border: 1px solid rgba(224,85,92,0.3); }

/* Footer */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--color-heading); font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-brand { color: var(--color-gold-light); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.social-links a:hover { border-color: var(--color-gold); color: var(--color-gold-light); }
.investment-warning { font-size: 12px; color: var(--color-text-muted); margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--color-border); padding: 20px 0; text-align: center; font-size: 13px; color: var(--color-text-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Dashboard layout (user + admin) ---------- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--color-bg-alt); border-right: 1px solid var(--color-border); padding: 26px 0; }
.dash-user { text-align: center; padding: 0 20px 20px; border-bottom: 1px solid var(--color-border); margin-bottom: 20px; }
.dash-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--color-gold-light); margin: 0 auto 10px; }
.dash-user-name { font-weight: 600; color: #fff; }
.dash-nav ul { list-style: none; margin: 0; padding: 0; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: var(--color-text-muted); font-size: 14px; font-weight: 500; }
.dash-nav a i { width: 18px; text-align: center; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,90,31,0.08); color: var(--color-gold-light); border-right: 3px solid var(--color-gold); }
.dash-content { padding: 34px 40px; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dash-topbar h1 { font-size: 24px; margin: 0; }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } .dash-sidebar { display: none; } }

.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-head h3 { margin: 0; font-size: 17px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th, table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; }
table.data-table th { color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .5px; }
table.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.empty-state { text-align: center; padding: 50px 20px; color: var(--color-text-muted); }
.empty-state i { font-size: 36px; color: var(--color-gold); margin-bottom: 14px; }

/* Admin quick-stat cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 30px; }
.kpi-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; }
.kpi-card .kpi-label { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .5px; }
.kpi-card .kpi-value { font-family: var(--font-heading); font-size: 28px; color: var(--color-text); margin-top: 6px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }

/* Admin side nav uses same dash-sidebar/dash-nav classes */

/* Misc pages */
.page-hero { padding: 70px 0 40px; text-align: center; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.page-hero h1 { font-size: 34px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 30px; }

.error-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-page .code { font-family: var(--font-heading); font-size: 100px; color: var(--color-gold); line-height: 1; }

.maintenance-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--color-bg); }
/* ==========================================================
   Investment Plan Card — fixed dark branded design (matches
   the reference: always black card + orange accents, regardless
   of the site's light/dark mode toggle, since this is a
   deliberate product-style card). Used on the public Investment
   Plans page, and in a compact variant on the user dashboard.
   ========================================================== */
.plan-card {
  background: #131519;
  border-radius: 26px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color .2s ease;
}
.plan-card-link { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s ease; }
.plan-card-link:hover { transform: translateY(-4px); }
.plan-card-link:hover .plan-card { border-color: var(--color-gold-light); }

.plan-card-tag {
  position: absolute;
  top: -10px;
  right: 18px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #17181d;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.plan-card-tag-used {
  background: #3a3d45;
  color: #d8dae0;
  border: 1px solid rgba(255,255,255,0.15);
}

.plan-card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.plan-card-icon {
  flex: 0 0 60px; width: 60px; height: 60px;
  border-radius: 16px; border: 2px solid var(--color-gold-light);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #1c1f26; color: var(--color-gold-light); font-size: 22px;
}
.plan-card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-card-title h3 { margin: 0; font-size: 24px; font-weight: 800; color: #fff; line-height: 1.15; }
.plan-card-title p {
  margin: 4px 0 0; font-size: 13.5px; color: #c7c9d1;
  padding-bottom: 6px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--color-gold-light), var(--color-gold), transparent) 1;
  display: inline-block;
}

.plan-card-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.plan-card-row { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 700; }
.plan-card-row span { color: #fff; }
.plan-card-row strong { color: #fff; font-weight: 800; }
.plan-card-row span.accent, .plan-card-row strong.accent { color: var(--color-gold-light); }

.plan-card-cta {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #17181d;
  font-weight: 800; font-size: 16px;
  padding: 14px 18px; border-radius: 999px;
  transition: filter .2s ease;
}
.plan-card-cta:hover { filter: brightness(1.08); }

.plan-card.plan-card-compact { padding: 18px; border-radius: 20px; }
.plan-card-compact .plan-card-head { gap: 12px; margin-bottom: 14px; }
.plan-card-compact .plan-card-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.plan-card-compact .plan-card-title h3 { font-size: 17px; }
.plan-card-compact .plan-card-title p { font-size: 12px; }
.plan-card-compact .plan-card-rows { gap: 8px; margin-bottom: 16px; }
.plan-card-compact .plan-card-row { font-size: 13px; }
.plan-card-compact .plan-card-cta { padding: 10px 14px; font-size: 13.5px; }

/* Plan description block shown below the card on the public plans page */
.plan-description-box {
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 24px 26px;
  margin-top: 18px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
}