/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a1a; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --red: #e8001d;
  --red-dark: #b8001a;
  --white: #ffffff;
  --light: #f7f7f7;
  --dark: #1a1a1a;
  --grey: #666;
  --nav-h: 68px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 2px solid var(--red);
  z-index: 900;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.12); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.logo span { color: var(--red); }
.desktop-nav { display: flex; gap: 36px; }
.desktop-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--red); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: background .2s;
}
.hamburger:hover span { background: var(--red); }

/* ===== MOBILE FULL-PAGE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open { transform: translateX(0); }
.close-btn {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
  transition: color .2s;
}
.close-btn:hover { color: var(--red); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.mobile-nav a {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--red); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-full { width: 100%; text-align: center; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)),
    url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}
.hero-content { max-width: 700px; margin: 0 auto; text-align: center; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.hero-content h1 span { color: var(--red); }
.hero-content p { color: rgba(255,255,255,.75); font-size: 1.15rem; margin-bottom: 36px; }
.hero-content .btn-primary { margin-right: 12px; }

/* ===== SECTION SHARED ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-sub { color: var(--grey); margin-bottom: 48px; font-size: 1.05rem; }

/* ===== CARDS ===== */
.section-cards { padding: 90px 0; background: var(--light); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 28px;
  border-top: 4px solid var(--red);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: .92rem; }
.card-read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== SERVICE MODAL ===== */
.svc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.svc-modal-overlay.open { display: flex; }
.svc-modal {
  background: var(--white);
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  padding: 40px 36px 36px;
  position: relative;
  border-top: 5px solid var(--red);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.svc-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--grey);
  line-height: 1;
  transition: color .2s;
}
.svc-modal-close:hover { color: var(--red); }
.svc-modal-icon { font-size: 2.4rem; margin-bottom: 14px; }
.svc-modal h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 12px; letter-spacing: -.5px; }
.svc-modal p  { color: var(--grey); font-size: .95rem; line-height: 1.7; margin-bottom: 20px; }
.svc-modal ul { padding-left: 0; display: grid; gap: 8px; }
.svc-modal ul li {
  font-size: .9rem;
  color: var(--dark);
  padding-left: 18px;
  position: relative;
}
.svc-modal ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* ===== THEMES PAGE ===== */
.section-contact { padding: 90px 0; background: var(--white); }
.contact-form { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: .97rem;
  font-family: inherit;
  transition: border-color .2s;
  background: var(--white);
  color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-fieldset {
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px 20px 16px;
  margin-bottom: 22px;
}
.form-fieldset legend {
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 0 8px;
  color: var(--dark);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: .92rem;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.checkbox-grid input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.page-hero p { color: #aaa; font-size: 1.1rem; }

/* ===== SERVICES DETAIL ===== */
.services-detail { padding: 80px 0; }
.service-block {
  display: flex;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid #eee;
}
.service-block:last-child { border-bottom: none; }
.service-num {
  font-size: 4rem;
  font-weight: 900;
  color: var(--red);
  opacity: .18;
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  text-align: right;
}
.service-body h2 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.service-body p { color: var(--grey); margin-bottom: 20px; }
.service-body ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; }
.service-body ul li {
  font-size: .92rem;
  color: var(--dark);
  padding-left: 16px;
  position: relative;
}
.service-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--red);
  padding: 80px 24px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 1.05rem; }
.cta-band .btn-primary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.cta-band .btn-primary:hover { background: #f0f0f0; border-color: #f0f0f0; }

/* ===== THANK YOU ===== */
.thankyou-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 24px 0;
}
.thankyou-inner { text-align: center; max-width: 500px; margin: 0 auto; }
.check-icon {
  width: 80px; height: 80px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.thankyou-inner h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; }
.thankyou-inner p { color: var(--grey); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== FORM ERRORS ===== */
.form-errors {
  background: #fff0f0;
  border: 2px solid var(--red);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.form-errors ul { list-style: disc; padding-left: 20px; }
.form-errors li { color: var(--red); font-size: .92rem; margin-bottom: 4px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 36px 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy-link { color: #888; font-size: .88rem; transition: color .2s; cursor: default; }
.footer-copy-link:hover { color: #888; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { color: #888; font-size: .88rem; transition: color .2s; }
.footer nav a:hover { color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding: calc(var(--nav-h) + 40px) 20px 60px; }
  .hero-content .btn-outline { margin-top: 12px; }

  .service-block { flex-direction: column; gap: 16px; }
  .service-num { width: auto; text-align: left; font-size: 2.8rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .svc-modal { padding: 32px 24px 28px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===== THEMES PAGE ===== */
.themes-section { padding: 80px 0; }
.themes-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  background: none;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  color: var(--dark);
}
.filter-btn:hover, .filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.theme-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform .2s, box-shadow .2s;
  background: #fff;
}
.theme-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.theme-preview {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.theme-preview::after {
  content: 'View Theme';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.theme-card:hover .theme-preview::after { opacity: 1; }
.theme-info { padding: 18px 20px 20px; }
.theme-cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--red);
  margin-bottom: 4px;
}
.theme-info h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.theme-info p { font-size: .85rem; color: var(--grey); margin-bottom: 0; }
.theme-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.theme-price { line-height: 1.2; }
.theme-price strong { font-size: 1.25rem; font-weight: 900; color: var(--dark); }
.theme-price.ecom strong { color: var(--red); }
.theme-price small { display: block; font-size: .72rem; color: var(--grey); font-weight: 500; }
.btn-theme {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  transition: background .2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-theme:hover { background: var(--red); }
.theme-card.hidden { display: none; }

/* ===== FULL-PAGE PREVIEW MODAL ===== */
.preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  flex-direction: column;
  background: #000;
}
.preview-modal.open { display: flex; }
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
  flex-shrink: 0;
}
.preview-bar-left { display: flex; align-items: center; gap: 14px; }
.preview-bar-left span { color: #fff; font-weight: 700; font-size: .92rem; }
.preview-bar-left .preview-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--red);
  background: rgba(232,0,29,.15);
  padding: 3px 10px;
  border-radius: 20px;
}
.preview-bar-right { display: flex; align-items: center; gap: 12px; }
.preview-get {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.preview-get:hover { background: var(--red-dark); }
.preview-close {
  width: 36px; height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.preview-close:hover { background: var(--red); color: #fff; }
.preview-iframe {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
  background: #fff;
}

/* ===== NAV ACTIONS (cart + account) ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cart {
  position: relative;
  font-size: 1.3rem;
  color: var(--dark);
  transition: color .2s;
  line-height: 1;
}
.nav-cart:hover { color: var(--red); }
.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 900;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-account-btn {
  background: var(--dark);
  color: #fff;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  transition: background .2s;
}
.nav-account-btn:hover { background: var(--red); }

/* ===== AUTH PAGES ===== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  background: var(--light);
}
.auth-box {
  background: var(--white);
  border-radius: 10px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  border-top: 5px solid var(--red);
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.auth-logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 20px;
}
.auth-logo span { color: var(--red); }
.auth-box h1 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.5px; margin-bottom: 6px; }
.auth-sub { color: var(--grey); font-size: .92rem; margin-bottom: 28px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--grey); }
.auth-switch a { color: var(--red); font-weight: 700; }

/* ===== CART PAGE ===== */
.cart-section { padding: 70px 0 100px; }
.cart-empty {
  text-align: center;
  padding: 80px 0;
}
.cart-empty-icon { font-size: 4rem; margin-bottom: 20px; }
.cart-empty h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; }
.cart-empty p  { color: var(--grey); margin-bottom: 28px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 18px 20px;
}
.cart-item-thumb {
  width: 72px; height: 72px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-cat  { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--red); }
.cart-item-name { font-size: 1rem; font-weight: 800; margin: 2px 0 4px; }
.cart-item-licence { font-size: .78rem; color: var(--grey); }
.cart-item-price { font-size: 1.2rem; font-weight: 900; flex-shrink: 0; }
.cart-remove {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color .2s;
  flex-shrink: 0;
}
.cart-remove:hover { color: var(--red); }

/* ===== CART / CHECKOUT SUMMARY ===== */
.cart-summary {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 28px 24px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.cart-summary h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 20px; }
.summary-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--grey);
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 900;
  padding-top: 16px;
  border-top: 2px solid #eee;
  margin-bottom: 20px;
}
.btn-cart-continue {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: .82rem;
  color: var(--grey);
  transition: color .2s;
}
.btn-cart-continue:hover { color: var(--red); }

/* ===== CHECKOUT ===== */
.checkout-section { padding: 70px 0 100px; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.checkout-form-wrap {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 36px 32px;
}
.checkout-heading { font-size: 1.1rem; font-weight: 900; margin-bottom: 6px; }
.secure-badge {
  font-size: .78rem;
  color: #2a9d2a;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkout-notice {
  font-size: .78rem;
  color: var(--grey);
  margin-bottom: 20px;
  line-height: 1.6;
}
.checkout-notice a { color: var(--red); }
.btn-pay { font-size: 1.05rem; padding: 16px; }
.checkout-summary { margin-top: 0; }

/* ===== THEME CARD — in-cart state ===== */
.btn-in-cart {
  background: #2a9d2a !important;
  cursor: default;
}

/* ===== ORDER COMPLETE ===== */
.order-receipt {
  background: var(--light);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 28px auto;
  max-width: 420px;
  text-align: left;
}
.receipt-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--grey); margin-bottom: 14px; }
.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 1rem;
  padding-top: 12px;
  margin-top: 4px;
}
.receipt-email { font-size: .78rem; color: var(--grey); margin-top: 12px; }
.order-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--dark);
  transition: border-color .2s, color .2s;
}
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); }

/* ===== ACCOUNT PAGE ===== */
.account-section { padding: 70px 0 100px; }
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.account-sidebar {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 28px 20px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  text-align: center;
}
.account-avatar {
  width: 64px; height: 64px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.account-name  { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.account-email { font-size: .78rem; color: var(--grey); margin-bottom: 24px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.acct-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  transition: background .2s, color .2s;
}
.acct-nav-link:hover, .acct-nav-link.active { background: var(--light); color: var(--red); }
.acct-logout { color: var(--grey); margin-top: 8px; }
.acct-logout:hover { color: var(--red); background: #fff0f0; }

.account-main { min-width: 0; }
.account-tab { display: none; }
.account-tab.active { display: block; }
.account-tab-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 24px; letter-spacing: -.5px; }
.account-empty { padding: 40px 0; color: var(--grey); }
.account-empty p { margin-bottom: 16px; }

.purchase-list { display: flex; flex-direction: column; gap: 16px; }
.purchase-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 18px 20px;
}
.purchase-thumb {
  width: 64px; height: 64px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.purchase-info { flex: 1; }
.purchase-name    { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.purchase-meta    { font-size: .78rem; color: var(--grey); margin-bottom: 2px; }
.purchase-licence { font-size: .75rem; color: #2a9d2a; font-weight: 600; }
.purchase-actions { flex-shrink: 0; }

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.history-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--light);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  border-bottom: 2px solid #eee;
}
.history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--dark);
}
.history-table tr:last-child td { border-bottom: none; }

/* ===== RESPONSIVE — new pages ===== */
@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}
@media (max-width: 600px) {
  .auth-box { padding: 36px 24px; }
  .cart-item { flex-wrap: wrap; }
  .purchase-item { flex-wrap: wrap; }
  .form-row-2 { grid-template-columns: 1fr; }
  .checkout-form-wrap { padding: 24px 20px; }
}
