:root {
  --ddh9-bg: #0c0c0c;
  --ddh9-surface: #161616;
  --ddh9-surface-hover: #1f1f1f;
  --ddh9-primary: #523929;
  --ddh9-primary-light: #73513b;
  --ddh9-accent: #322cae;
  --ddh9-accent-glow: rgba(50, 44, 174, 0.4);
  --ddh9-text-main: #f5f5f5;
  --ddh9-text-muted: #a3a3a3;
  --ddh9-border: #2a2a2a;
  --ddh9-radius: 20px 6px 20px 6px;
  --ddh9-radius-sm: 12px 4px 12px 4px;
  --ddh9-font-display: 'Sora', sans-serif;
  --ddh9-font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--ddh9-font-body); background-color: var(--ddh9-bg); color: var(--ddh9-text-main); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.ddh9-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Header & Nav */
.ddh9-header { background: rgba(12, 12, 12, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ddh9-border); position: sticky; top: 0; z-index: 50; }
.ddh9-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.ddh9-logo { font-family: var(--ddh9-font-display); font-size: 1.75rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 10px var(--ddh9-accent-glow); }
.ddh9-desktop-nav { flex-grow: 1; display: flex; justify-content: flex-end; margin-left: 2rem; overflow-x: auto; scrollbar-width: none; }
.ddh9-desktop-nav::-webkit-scrollbar { display: none; }
.ddh9-nav-scroll { display: flex; gap: 1.5rem; }
.ddh9-nav-link { font-size: 0.95rem; font-weight: 500; color: var(--ddh9-text-main); white-space: nowrap; padding: 0.5rem 0; position: relative; }
.ddh9-nav-link:hover { color: #fff; }
.ddh9-nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--ddh9-accent); transition: width 0.3s ease; }
.ddh9-nav-link:hover::after { width: 100%; }

.ddh9-mobile-menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.ddh9-menu-icon, .ddh9-menu-icon::before, .ddh9-menu-icon::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: 0.2s; }
.ddh9-menu-icon::before { content: ''; top: -8px; }
.ddh9-menu-icon::after { content: ''; top: 8px; }
.ddh9-mobile-nav { display: none; background: var(--ddh9-surface); border-bottom: 1px solid var(--ddh9-border); }
.ddh9-mobile-nav-inner { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ddh9-mobile-nav.ddh9-open { display: block; }

/* Ticker */
.ddh9-ticker { display: flex; background: var(--ddh9-primary); border-bottom: 1px solid var(--ddh9-primary-light); height: 40px; align-items: center; }
.ddh9-ticker-label { background: var(--ddh9-accent); color: #fff; font-weight: 600; font-size: 0.8rem; padding: 0 1rem; height: 100%; display: flex; align-items: center; z-index: 2; }
.ddh9-ticker-scroll { flex: 1; overflow: hidden; white-space: nowrap; position: relative; display: flex; align-items: center; }
.ddh9-ticker-track { display: inline-flex; gap: 3rem; animation: ddh9-marquee 25s linear infinite; }
.ddh9-ticker-item { font-size: 0.85rem; color: #fff; }
@keyframes ddh9-marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Hero */
.ddh9-hero { padding: 4rem 0; overflow: hidden; position: relative; }
.ddh9-hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ddh9-slogan { font-family: var(--ddh9-font-display); font-size: 3rem; line-height: 1.2; margin-bottom: 1.5rem; color: #fff; }
.ddh9-hero-desc { font-size: 1.125rem; color: var(--ddh9-text-muted); margin-bottom: 2rem; max-width: 90%; }
.ddh9-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 2rem; font-family: var(--ddh9-font-display); font-weight: 600; border-radius: var(--ddh9-radius); transition: all 0.3s; }
.ddh9-btn-primary { background: var(--ddh9-accent); color: #fff; box-shadow: 0 4px 20px var(--ddh9-accent-glow); }
.ddh9-btn-primary:hover { background: #453df5; transform: translateY(-2px); }
.ddh9-hero-image-wrap { position: relative; }
.ddh9-hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at center, var(--ddh9-accent-glow) 0%, transparent 70%); filter: blur(40px); z-index: -1; }
.ddh9-hero-img { border-radius: var(--ddh9-radius); border: 1px solid var(--ddh9-border); width: 100%; height: auto; }

/* Stats */
.ddh9-stats { padding: 2rem 0; background: var(--ddh9-surface); border-top: 1px solid var(--ddh9-border); border-bottom: 1px solid var(--ddh9-border); }
.ddh9-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.ddh9-stat-val { display: block; font-family: var(--ddh9-font-display); font-size: 2rem; font-weight: 700; color: var(--ddh9-accent); margin-bottom: 0.25rem; }
.ddh9-stat-label { font-size: 0.875rem; color: var(--ddh9-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Gallery Wall */
.ddh9-gallery { padding: 4rem 0; }
.ddh9-section-header { text-align: center; margin-bottom: 2rem; }
.ddh9-section-title { font-family: var(--ddh9-font-display); font-size: 2.25rem; color: #fff; }
.ddh9-text-center { text-align: center; margin-bottom: 3rem; }
.ddh9-filter-chips { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; overflow-x: auto; scrollbar-width: none; }
.ddh9-chip { padding: 0.5rem 1.25rem; background: var(--ddh9-surface); border: 1px solid var(--ddh9-border); color: var(--ddh9-text-muted); font-size: 0.875rem; border-radius: 20px; transition: all 0.3s; }
.ddh9-chip:hover, .ddh9-chip-active { background: var(--ddh9-primary); color: #fff; border-color: var(--ddh9-primary-light); }

.ddh9-gallery-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: minmax(280px, auto); gap: 1.5rem; grid-auto-flow: dense; }
.ddh9-card { display: flex; flex-direction: column; background: var(--ddh9-surface); border: 1px solid var(--ddh9-border); border-radius: var(--ddh9-radius); overflow: hidden; transition: transform 0.3s, border-color 0.3s; position: relative; }
.ddh9-card:hover { transform: translateY(-4px); border-color: var(--ddh9-accent); }
.ddh9-card-img-wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.ddh9-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ddh9-card:hover .ddh9-card-img { transform: scale(1.05); }
.ddh9-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.ddh9-card-title { font-family: var(--ddh9-font-display); font-size: 1.125rem; color: #fff; margin-bottom: 0.25rem; }
.ddh9-card-sub { font-size: 0.85rem; color: var(--ddh9-text-muted); margin-bottom: 1rem; flex-grow: 1; }
.ddh9-card-badge { align-self: flex-start; background: var(--ddh9-accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 4px; text-transform: uppercase; }

/* Large Gallery Item (every 4th) */
.ddh9-card:nth-child(4n+1) { grid-column: span 2; grid-row: span 2; }
.ddh9-card:nth-child(4n+1) .ddh9-card-img-wrap { aspect-ratio: 16/9; }
.ddh9-card:nth-child(4n+1) .ddh9-card-title { font-size: 1.5rem; }
@media (max-width: 768px) { .ddh9-card:nth-child(4n+1) { grid-column: span 1; grid-row: span 1; } .ddh9-card:nth-child(4n+1) .ddh9-card-img-wrap { aspect-ratio: 1/1; } }

/* Features */
.ddh9-features { padding: 4rem 0; background: var(--ddh9-surface); }
.ddh9-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.ddh9-feature-card { background: var(--ddh9-bg); padding: 2rem; border-radius: var(--ddh9-radius); border: 1px solid var(--ddh9-border); text-align: center; transition: border-color 0.3s; }
.ddh9-feature-card:hover { border-color: var(--ddh9-primary-light); }
.ddh9-feat-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.ddh9-feat-title { font-family: var(--ddh9-font-display); font-size: 1.25rem; margin-bottom: 0.75rem; color: #fff; }
.ddh9-feat-desc { font-size: 0.95rem; color: var(--ddh9-text-muted); }

/* Steps & Comparison */
.ddh9-steps { padding: 4rem 0; }
.ddh9-steps-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.ddh9-steps-subtitle { color: var(--ddh9-text-muted); margin-bottom: 2rem; font-size: 1.1rem; }
.ddh9-step-list { display: flex; flex-direction: column; gap: 1.5rem; }
.ddh9-step-item { display: flex; gap: 1rem; background: var(--ddh9-surface); padding: 1.5rem; border-radius: var(--ddh9-radius-sm); border-left: 4px solid var(--ddh9-accent); }
.ddh9-step-num { width: 36px; height: 36px; background: var(--ddh9-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ddh9-font-display); font-weight: bold; flex-shrink: 0; }
.ddh9-step-text h4 { font-family: var(--ddh9-font-display); font-size: 1.1rem; margin-bottom: 0.25rem; color: #fff; }
.ddh9-step-text p { font-size: 0.9rem; color: var(--ddh9-text-muted); }

.ddh9-comp-title { font-family: var(--ddh9-font-display); font-size: 1.5rem; margin-bottom: 1.5rem; color: #fff; }
.ddh9-comp-table { background: var(--ddh9-surface); border-radius: var(--ddh9-radius-sm); border: 1px solid var(--ddh9-border); overflow: hidden; }
.ddh9-comp-row { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--ddh9-border); }
.ddh9-comp-row:last-child { border-bottom: none; }
.ddh9-comp-header { background: rgba(82, 57, 41, 0.3); font-weight: 600; color: #fff; }
.ddh9-comp-col { padding: 1rem; font-size: 0.9rem; text-align: center; }
.ddh9-comp-col:first-child { text-align: left; font-weight: 500; }
.ddh9-highlight { color: #8e87ff; font-weight: 600; background: rgba(50, 44, 174, 0.1); }

/* Payments */
.ddh9-payments { padding: 3rem 0; background: var(--ddh9-surface); border-top: 1px solid var(--ddh9-border); }
.ddh9-payment-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.ddh9-pay-badge { padding: 0.75rem 1.5rem; background: var(--ddh9-bg); border: 1px solid var(--ddh9-border); border-radius: 8px; font-weight: 600; font-size: 0.9rem; color: var(--ddh9-text-muted); letter-spacing: 1px; }

/* Article formatting */
.ddh9-seo-content { padding: 4rem 0; }
.ddh9-article { background: var(--ddh9-surface); padding: 3rem; border-radius: var(--ddh9-radius); border: 1px solid var(--ddh9-border); font-size: 1rem; color: #ccc; }
.ddh9-article h2 { font-family: var(--ddh9-font-display); font-size: 1.75rem; color: #fff; margin: 2rem 0 1rem; }
.ddh9-article h2:first-child { margin-top: 0; }
.ddh9-article h3 { font-family: var(--ddh9-font-display); font-size: 1.25rem; color: #fff; margin: 1.5rem 0 0.75rem; }
.ddh9-article p { margin-bottom: 1.25rem; }
.ddh9-article ul, .ddh9-article ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.ddh9-article li { margin-bottom: 0.5rem; }
.ddh9-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.ddh9-article th, .ddh9-article td { border: 1px solid var(--ddh9-border); padding: 0.75rem; text-align: left; }
.ddh9-article th { background: var(--ddh9-primary); color: #fff; }
.ddh9-article blockquote { border-left: 4px solid var(--ddh9-accent); padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: #ddd; }

/* Page specific */
.ddh9-page-main { padding: 2rem 0 4rem; }
.ddh9-breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; margin-bottom: 2rem; color: var(--ddh9-text-muted); }
.ddh9-crumb { color: var(--ddh9-text-muted); }
.ddh9-crumb:hover { color: var(--ddh9-accent); }
.ddh9-breadcrumbs::after { content: ''; }
.ddh9-page-header { margin-bottom: 3rem; border-bottom: 1px solid var(--ddh9-border); padding-bottom: 2rem; }
.ddh9-page-title { font-family: var(--ddh9-font-display); font-size: 2.5rem; color: #fff; margin-bottom: 0.5rem; }
.ddh9-page-meta { font-size: 1.1rem; color: var(--ddh9-text-muted); }
.ddh9-page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }

/* FAQ Accordion */
.ddh9-faq-section { margin-top: 3rem; }
.ddh9-accordion { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.ddh9-faq-item { background: var(--ddh9-surface); border: 1px solid var(--ddh9-border); border-radius: var(--ddh9-radius-sm); overflow: hidden; }
.ddh9-faq-q { padding: 1.25rem; font-family: var(--ddh9-font-display); font-weight: 600; color: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.ddh9-faq-q::-webkit-details-marker { display: none; }
.ddh9-faq-q::after { content: '+'; font-size: 1.25rem; transition: transform 0.3s; }
.ddh9-faq-item[open] .ddh9-faq-q::after { transform: rotate(45deg); }
.ddh9-faq-a { padding: 0 1.25rem 1.25rem; font-size: 0.95rem; color: var(--ddh9-text-muted); }

/* Sidebar & Widgets */
.ddh9-sidebar-widget { background: var(--ddh9-surface); border: 1px solid var(--ddh9-border); border-radius: var(--ddh9-radius-sm); padding: 1.5rem; margin-bottom: 2rem; }
.ddh9-widget-accent { background: linear-gradient(145deg, var(--ddh9-surface), var(--ddh9-primary-light)); border-color: var(--ddh9-primary); }
.ddh9-widget-title { font-family: var(--ddh9-font-display); font-size: 1.1rem; color: #fff; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--ddh9-border); }
.ddh9-related-links { display: flex; flex-direction: column; gap: 0.75rem; }
.ddh9-related-links a { font-size: 0.95rem; color: var(--ddh9-text-muted); }
.ddh9-related-links a:hover { color: #fff; padding-left: 4px; }
.ddh9-quick-tips { list-style: none; padding: 0; }
.ddh9-quick-tips li { font-size: 0.9rem; margin-bottom: 0.75rem; padding-left: 1.25rem; position: relative; color: #ddd; }
.ddh9-quick-tips li::before { content: '✓'; position: absolute; left: 0; color: var(--ddh9-accent); font-weight: bold; }

/* Pager */
.ddh9-pager { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ddh9-border); }
.ddh9-pager-btn { padding: 0.75rem 1.5rem; background: var(--ddh9-surface); border: 1px solid var(--ddh9-border); border-radius: 8px; font-weight: 500; font-size: 0.9rem; color: #fff; }
.ddh9-pager-btn:hover { background: var(--ddh9-primary); border-color: var(--ddh9-primary-light); }

/* Footer */
.ddh9-footer { background: var(--ddh9-surface); border-top: 1px solid var(--ddh9-border); padding: 4rem 0 2rem; }
.ddh9-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.ddh9-logo-footer { font-family: var(--ddh9-font-display); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.ddh9-footer-desc { color: var(--ddh9-text-muted); font-size: 0.95rem; max-width: 400px; }
.ddh9-footer-title { font-family: var(--ddh9-font-display); font-size: 1.1rem; color: #fff; margin-bottom: 1.25rem; }
.ddh9-footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.ddh9-footer-links a { color: var(--ddh9-text-muted); font-size: 0.95rem; }
.ddh9-footer-links a:hover { color: #fff; }
.ddh9-legal-text { font-size: 0.85rem; color: #888; line-height: 1.5; }
.ddh9-footer-bottom { border-top: 1px solid var(--ddh9-border); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.85rem; color: #888; }
.ddh9-age-warning { border: 1px solid #888; padding: 0.25rem 0.5rem; border-radius: 4px; }

/* Responsive */
@media (max-width: 1024px) {
  .ddh9-hero-container { grid-template-columns: 1fr; text-align: center; }
  .ddh9-hero-desc { margin: 0 auto 2rem; }
  .ddh9-hero-image-wrap { max-width: 600px; margin: 0 auto; }
  .ddh9-page-layout { grid-template-columns: 1fr; }
  .ddh9-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ddh9-desktop-nav { display: none; }
  .ddh9-mobile-menu-btn { display: flex; }
  .ddh9-slogan { font-size: 2.25rem; }
  .ddh9-stats-grid { grid-template-columns: 1fr 1fr; }
  .ddh9-steps-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .ddh9-article { padding: 1.5rem; }
  .ddh9-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ddh9-footer-bottom { flex-direction: column; text-align: center; }
  .ddh9-gallery-wall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ddh9-comp-col { padding: 0.5rem; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  .ddh9-stats-grid { grid-template-columns: 1fr; }
  .ddh9-gallery-wall { grid-template-columns: 1fr; }
  .ddh9-card-img-wrap { aspect-ratio: 16/9; }
}
