/* ============================================================
   ALFA ART — Shared Stylesheet
   Theme: Vintage, Antique & Classic with Modern Animations
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --bg-cream: #F4F0EA;
  --bg-cream-dark: #EDE8DF;
  --text-dark: #1A1A1A;
  --text-muted: #4A4438;
  --gold: #C5A059;
  --gold-light: #D4AF70;
  --gold-dark: #9E7D3A;
  --gold-subtle: #F0E6CC;
  --white: #FDFAF5;
  --border: rgba(197, 160, 89, 0.35);

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lora', 'Georgia', serif;

  --shadow-sm: 0 2px 12px rgba(26, 26, 26, 0.08);
  --shadow-md: 0 6px 30px rgba(26, 26, 26, 0.12);
  --shadow-lg: 0 16px 60px rgba(26, 26, 26, 0.18);

  --radius: 4px;
  --transition: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

/* ── Modern CSS Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  /* Security: Prevent image saving, copying, and selection */
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* ── Ornamental Divider ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0 2rem;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.ornament span {
  font-size: 1.1rem;
  color: var(--gold);
  white-space: nowrap;
}

/* ── Section Utility ── */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-cream-dark);
}

.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-style: italic;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(244, 240, 234, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .brand-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ── Nav Auth Items ── */
.nav-auth-item {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  white-space: nowrap;
}

.nav-user-pill:hover {
  background: var(--gold);
  color: var(--text-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(244, 240, 234, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem 2.5rem;
  gap: 1.2rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);

  /* Smooth animations */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile a:not(.btn) {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile.open a:not(.btn) {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for nav links */
.nav-mobile.open a:not(.btn):nth-of-type(1) {
  transition-delay: 0.05s;
}

.nav-mobile.open a:not(.btn):nth-of-type(2) {
  transition-delay: 0.10s;
}

.nav-mobile.open a:not(.btn):nth-of-type(3) {
  transition-delay: 0.15s;
}

.nav-mobile.open a:not(.btn):nth-of-type(4) {
  transition-delay: 0.20s;
}

.nav-mobile.open a:not(.btn):nth-of-type(5) {
  transition-delay: 0.25s;
}

.nav-mobile.open a:not(.btn):nth-of-type(6) {
  transition-delay: 0.30s;
}

.nav-mobile a:not(.btn):hover,
.nav-mobile a:not(.btn).active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  transform: translateX(5px);
}

/* Auth Buttons Wrapper */
.mobile-auth-wrapper {
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger delays for injected auth wrappers */
.nav-mobile.open .mobile-auth-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile.open .mobile-auth-wrapper:nth-of-type(odd) {
  transition-delay: 0.35s;
}

.nav-mobile.open .mobile-auth-wrapper:nth-of-type(even) {
  transition-delay: 0.40s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/alfa\ art.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg {
  transform: scale(1.0);
}

/* Cinematic dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 8, 5, 0.52) 0%, rgba(10, 8, 5, 0.72) 100%);
}

/* Grain texture overlay — animated */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.55;
  pointer-events: none;
  animation: grain-shift 0.8s steps(2) infinite;
}

@keyframes grain-shift {
  0% {
    background-position: 0 0;
  }

  25% {
    background-position: -12px 8px;
  }

  50% {
    background-position: 8px -5px;
  }

  75% {
    background-position: -6px 14px;
  }

  100% {
    background-position: 3px -9px;
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(197, 160, 89, 0.45);
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeSlideUp 1s ease 0.4s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 900;
  color: #FDFAF5;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1.1s ease 0.7s forwards;
  line-height: 1.05;
}

.hero-title span {
  color: var(--gold-light);
  font-style: italic;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(253, 250, 245, 0.8);
  font-style: italic;
  letter-spacing: 0.08em;
  margin-top: 1.2rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeSlideUp 1.1s ease 1.05s forwards;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1.6rem auto;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}

.hero-cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 1.5px solid var(--gold-light);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--text-dark);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(253, 250, 245, 0.6);
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(253, 250, 245, 0.45);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: rgba(253, 250, 245, 0.65);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--bg-cream-dark);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  font-style: italic;
  font-size: 1rem;
  max-width: 580px;
  margin-inline: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--gold);
  outline: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--text-dark);
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--text-dark);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.3);
  transform: translateY(-2px);
}

/* ============================================================
   ANTIQUE FRAME — CSS Frame Effect
   ============================================================ */
.antique-frame {
  position: relative;
  padding: 14px;
  background:
    repeating-linear-gradient(45deg,
      #8B6914 0px, #B8890A 4px, #C5A059 8px, #D4AF70 12px,
      #C5A059 16px, #A87820 20px, #8B6914 24px);
  border-radius: 2px;
  box-shadow:
    0 0 0 3px #6B4F12,
    0 0 0 6px #C5A059,
    0 0 0 9px #6B4F12,
    0 12px 40px rgba(26, 26, 26, 0.45),
    inset 0 0 0 2px #D4AF70;
}

.antique-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  pointer-events: none;
  z-index: 1;
}

.antique-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Corner Ornaments */
.antique-frame::after {
  content: '✦';
  position: absolute;
  top: 2px;
  right: 8px;
  font-size: 1.1rem;
  color: rgba(253, 250, 245, 0.7);
  line-height: 1;
  pointer-events: none;
}

/* Portrait Frame (4:3) */
.antique-frame.portrait img {
  aspect-ratio: 3/4;
}

/* ============================================================
   WATERMARK PROTECT WRAPPER
   ============================================================ */
.watermark-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.watermark-wrapper::after {
  content: "ALFA ART PROTECTED PROPERTY";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 5vw, 2.5rem);

  /* ⚠️ මෙන්න මේ පේළිය වෙනස් කළා: 0.35 තිබ්බ එක 0.20 දක්වා අඩු කළා (තව 15%ක් ඩිම් කළා) */
  color: rgba(255, 255, 255, 0.20);

  /* 💡 වෝටර්මාර්ක් එක පිටිපස්සෙන් වැටෙන කළු හෙවනැල්ලත් (Shadow) චුට්ටක් ඩිම් කළා චිත්‍රය මතු වෙන්න */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 10;
  width: 100%;
  text-align: center;
  /* Optional blend mode for better aesthetic */
  mix-blend-mode: overlay;
}

/* Specific overrides for the Full-screen Lightbox watermark */
.lightbox-watermark-wrapper {
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Scale transitions moved here from the image */
  transition: transform 0.3s ease;
  transform-origin: center center;
  /* Override overflow: hidden so box-shadows or zoomed elements aren't clipped */
  overflow: visible;
}

.lightbox-watermark-wrapper::after {
  /* Slightly larger text for the full screen view */
  font-size: clamp(1.5rem, 6vw, 4rem);
}

/* ============================================================
   SOLD OUT STATE
   ============================================================ */
.artwork-card.sold-out .antique-frame::after {
  content: "SOLD OUT";
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 5, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 5;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(197, 160, 89, 0.4);
}

.artwork-card.sold-out .payment-buttons-grid {
  display: none !important;
}

.artwork-card.sold-out .artwork-price {
  text-decoration: line-through;
  opacity: 0.6;
}

/* ============================================================
   GALLERY / ARTWORKS CARDS (Gallery Page)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.5rem 2.5rem;
  padding: 0 0 2rem;
}

.artwork-card {
  display: flex;
  flex-direction: column;
}

.artwork-card .artwork-info {
  padding: 1.5rem 0.4rem 0;
}

.artwork-card .artwork-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.artwork-card .artwork-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.artwork-card .artwork-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.artwork-card .artwork-meta span::before {
  content: '◆';
  font-size: 0.4rem;
  color: var(--gold);
}

.artwork-card .artwork-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.artwork-card .artwork-price small {
  font-size: 0.8rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--text-muted);
  margin-left: 0.3rem;
}

/* PayPal Button */
.btn-paypal {
  background: #003087;
  color: #fff;
  border-color: #003087;
  font-size: 0.78rem;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-paypal:hover {
  background: #002070;
  border-color: #002070;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 48, 135, 0.3);
}

.btn-paypal .paypal-logo {
  font-weight: 800;
  font-style: italic;
  font-size: 0.9rem;
}

.btn-paypal .paypal-logo .pp-blue {
  color: #009CDE;
}

.btn-paypal .paypal-logo .pp-navy {
  color: #fff;
}

/* Payment Buttons Grid */
.payment-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-row-1 {
  display: flex;
  gap: 10px;
  width: 100%;
}

.payment-row-1 .btn {
  flex: 1;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Crypto Button */
.btn-crypto {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-crypto:hover {
  background: var(--gold);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

/* Bank Transfer Button */
.btn-bank {
  background: var(--bg-cream-dark);
  color: var(--text-dark);
  border-color: var(--border);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-bank:hover {
  background: var(--white);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .payment-row-1 {
    flex-direction: column;
  }

  .payment-row-1 .btn {
    width: 100%;
  }
}

/* ============================================================
   COMMISSION / PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.process-step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold-subtle);
  line-height: 1;
  margin-bottom: 0.6rem;
  position: relative;
}

.step-number::after {
  content: attr(data-n);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  color: var(--gold);
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.process-step p {
  font-size: 0.9rem;
}

/* Process connector */
.process-steps .process-step+.process-step::before {
  content: '→';
  position: absolute;
  left: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  z-index: 1;
}

/* ============================================================
   ORDER FORM / CONTACT FORM
   ============================================================ */
.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-cream);
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C5A059' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* File upload */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius);
  background: var(--bg-cream);
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.file-upload-label:hover {
  background: var(--gold-subtle);
}

.file-upload-label .upload-icon {
  font-size: 1.4rem;
  color: var(--gold);
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* ============================================================
   TWO-COLUMN LAYOUT (About, Contact)
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.two-col.about-layout {
  grid-template-columns: 2fr 3fr;
  align-items: center;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.bio-text p {
  margin-bottom: 1.2rem;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.bio-text .drop-cap::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5em;
  float: left;
  line-height: 0.78;
  padding-right: 0.12em;
  color: var(--gold);
  font-weight: 900;
}

.bio-signature {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 2rem;
}

.bio-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.artist-portrait-placeholder {
  background: linear-gradient(160deg, #e0d4b8, #c8b88a);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: var(--gold-dark);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   PAYMENT METHODS (Contact Page)
   ============================================================ */
.payment-panel {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.payment-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.payment-panel h3 .shield-icon {
  font-size: 1.2rem;
  color: var(--gold);
}

.payment-method {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-cream);
  border-radius: var(--radius);
  position: relative;
  transition: box-shadow var(--transition);
}

.payment-method:hover {
  box-shadow: var(--shadow-sm);
}

.payment-method-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.payment-method-icon {
  font-size: 1.4rem;
}

.payment-method-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.payment-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  gap: 0.5rem;
}

.payment-detail-row .detail-label {
  color: var(--text-muted);
  font-size: 0.775rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.payment-detail-row .detail-value {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-dark);
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-top: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text-dark);
  color: rgba(253, 250, 245, 0.7);
  padding: 3.5rem 0 2rem;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

/* Payment Icons Row */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 4px;
  background: rgba(197, 160, 89, 0.07);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(253, 250, 245, 0.75);
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}

.payment-icon:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.payment-icon .pi-symbol {
  font-size: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(253, 250, 245, 0.45);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay utility classes */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ============================================================
   KEYFRAME ANIMATIONS (for Hero)
   ============================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .two-col,
  .two-col.about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps .process-step+.process-step::before {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 70px 0;
  }

  .hero-title {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 2rem 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .bio-stats {
    gap: 1.5rem;
  }

  .payment-panel {
    padding: 1.5rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAYMENT MODAL
   ============================================================ */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.payment-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.payment-modal-content {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.payment-modal-overlay.active .payment-modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--gold);
}

.modal-step {
  padding: 3rem 2.5rem;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.modal-step.active {
  display: block;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-form .form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.modal-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.readonly-input {
  background: var(--bg-cream-dark) !important;
  color: var(--text-muted) !important;
  font-style: italic;
  pointer-events: none;
}

.modal-btn {
  width: 100%;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-btn-back {
  flex: 0 0 100px;
  padding: 1rem 0;
  text-align: center;
}

.modal-actions .modal-btn {
  margin-top: 0;
  flex: 1;
}

/* Payment Method Boxes in Modal */
.payment-method-details {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.instruction-text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.wallet-address-box,
.bank-details-box {
  background: var(--bg-cream-dark);
  padding: 1rem;
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  word-break: break-all;
}

.wallet-code {
  font-family: monospace;
  font-weight: bold;
  color: var(--text-dark);
  display: block;
  margin-top: 0.3rem;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  background: var(--bg-cream-dark);
  border: 2px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.file-input {
  padding: 0.6rem !important;
  cursor: pointer;
}

/* Drag and Drop Upload Zone */
.upload-zone {
  display: block;
  position: relative;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background: var(--bg-cream);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--gold-dark);
  background: var(--bg-cream-dark);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.upload-main-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.upload-sub-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Validation Error Styles */
.input-error {
  border-color: #d32f2f !important;
  background-color: rgba(211, 47, 47, 0.03) !important;
}

input.input-error:focus,
textarea.input-error:focus,
select.input-error:focus {
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2) !important;
}

.upload-zone.input-error,
.file-upload-label.input-error {
  border: 2px dashed #d32f2f !important;
  background-color: rgba(211, 47, 47, 0.03) !important;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* ============================================================
   PORTFOLIO PAGE STYLES (Tabs, Marquee, Lightbox)
   ============================================================ */

/* ── Tabs ── */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem auto 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.tab-btn.active {
  color: var(--text-dark);
}

.tab-btn.active::after,
.tab-btn:hover::after {
  width: 100%;
}

.tab-btn small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.3rem;
  color: var(--text-muted);
}

/* ── Marquee Gallery ── */
.portfolio-section {
  display: none;
  overflow: hidden;
  padding: 3rem 0;
}

.portfolio-section.active {
  display: block;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0 3rem;
  /* space for box-shadow on hover */
}

.marquee-container {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0 1rem;
  animation: scroll-left 10s linear infinite;
}

.marquee-container.reverse {
  animation: scroll-right 10s linear infinite;
}

.marquee-container-s {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0 1rem;
  animation: scroll-left 30s linear infinite;
}

.marquee-container:hover,
.marquee-container.reverse:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.portfolio-item {
  width: 320px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(26, 26, 26, 0.4);
  z-index: 10;
}

/* ── Status Badges ── */
.art-status-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 0.4rem 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.art-status-badge.completed {
  background: rgba(38, 58, 41, 0.85);
  /* Deep luxury green tint */
  color: #E2E8E4;
  border-color: rgba(163, 194, 169, 0.3);
}

.art-status-badge.in-progress {
  background: rgba(139, 105, 20, 0.85);
  /* Deep amber/gold tint */
  color: #FDF5E6;
  border-color: rgba(212, 175, 112, 0.3);
}


/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.97);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-origin: center center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--gold-subtle);
}

.lightbox-controls {
  position: absolute;
  bottom: 4%;
  display: flex;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lb-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-btn:hover {
  color: var(--gold);
  transform: scale(1.15);
}

.lb-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  z-index: 2010;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 1.5rem;
  z-index: 2010;
}

.lb-prev {
  left: 3%;
}

.lb-next {
  right: 3%;
}

.lb-prev:hover,
.lb-next:hover {
  transform: translateY(-50%) scale(1.15);
}

body.lightbox-open {
  overflow: hidden;
}

/* ============================================================
   WHATSAPP BUTTONS & RECEIPT FLOW STYLES
   ============================================================ */

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.wa-confirm-message {
  text-align: center;
  padding: 1.2rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.wa-confirm-message .wa-check {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.wa-confirm-message p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.btn-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #006699, #004c73);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-telegram:active {
  transform: translateY(0);
}

.btn-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #d44638, #b23121);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 70, 56, 0.3);
}

.btn-email:hover {
  background: linear-gradient(135deg, #b23121, #8e261a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 70, 56, 0.4);
}

.btn-email:active {
  transform: translateY(0);
}

/* =========================================
   AUTH MODAL STYLES (Glassmorphism & Luxury)
   ========================================= */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal-container {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--gold);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
  width: 90%;
  max-width: 420px;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.auth-modal-overlay.show .auth-modal-container {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s;
}

.auth-modal-close:hover {
  color: var(--white);
}

.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: #888;
  padding: 0.8rem 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.auth-form {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: var(--white);
  padding: 0.8rem 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}

.full-width {
  width: 100%;
  margin-top: 1rem;
}

.form-message {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.form-message.error {
  color: #ff5e5e;
  display: block;
}

.form-message.success {
  color: #5eff8e;
  display: block;
}

/* Forgot Password Link in Auth Modal */
.forgot-password-link {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  opacity: 0.85;
}

.forgot-password-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
  opacity: 1;
}

.forgot-password-link:active {
  color: var(--gold-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


input[type="file"] {
  padding: 0.5rem !important;
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--gold);
  color: #000;
}

/* Dashboard Forms & Review Modal Dark Styling */
#profile-form input,
#profile-form textarea,
#address-form input,
#address-form textarea,
#review-overlay input,
#review-overlay textarea,
.auth-modal-container input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(197, 160, 89, 0.4) !important;
  color: #ffffff !important;
}

#profile-form input::placeholder,
#profile-form textarea::placeholder,
#address-form input::placeholder,
#address-form textarea::placeholder,
#review-overlay input::placeholder,
#review-overlay textarea::placeholder,
.auth-modal-container input::placeholder {
  color: #888888 !important;
  opacity: 1 !important;
}

/* --- 1. Clean Default Styling for All Inputs --- */
input,
textarea,
select {
  background-color: #1a1a1a !important;
  /* Premium Dark Grey (Not pure pitch black) */
  color: #ffffff !important;
  /* Crisp white text for absolute visibility */
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  /* Premium subtle gold border */
  padding: 12px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
}

/* --- 2. Focus State (When user clicks inside to type) --- */
input:focus,
textarea:focus,
select:focus {
  background-color: #222222 !important;
  border-color: #d4af37 !important;
  /* Bright Gold Outline */
  color: #ffffff !important;
  outline: none !important;
}

/* --- 3. Browser Autofill Overrides (Fixes the white/black clash) --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  /* Dynamic White Text */
  -webkit-box-shadow: 0 0 0px 1000px #252121 inset !important;
  /* Forces dark background matching the theme */
  transition: background-color 5000s ease-in-out 0s;
  border: 1px solid #d4af37 !important;
}

/* --- 4. Placeholder Text Color --- */


/* ============================================================
   DIGITAL RECEIPT MODAL
   ============================================================ */
#receipt-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.95);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#receipt-modal.active {
  opacity: 1;
  visibility: visible;
}

.receipt-modal-inner {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

#receipt-content-area {
  background: var(--bg-cream);
  color: var(--text-dark);
  padding: 3rem 2.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  /* Needed for html2pdf rendering */
  background-color: #eceae6;
}

/* 2. උඩ දකුණු පැත්තේ (Top Right) තියෙන පුංචි වෝටර්මාර්ක් එකේ ස්ටයිල් එක */
.receipt-watermark {
  position: absolute;
  top: -40px;

  /* 🛠️ PDF එකේ සෙන්ටර් වෙන්න කරපු ප්‍රධාන වෙනස */
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  /* 👈 PDF එක අවුල් කරන transform එක අයින් කළා */

  width: 140px !important;
  height: auto !important;
  opacity: 0.75 !important;
  z-index: 9999 !important;
  pointer-events: none;
}

/* වෝටර්මාර්ක් එක ඇතුළේ තියෙන Image හෝ SVG එකේ සයිස් එක පාලනය කිරීම */
.receipt-watermark img,
.receipt-watermark svg {
  width: 100% !important;
  /* parent element (.receipt-watermark) එකේ සයිස් එකටම හැඩගැසීමට */
  height: auto !important;
  object-fit: contain;
}

/* Content needs to be above watermark */
.receipt-header,
.receipt-body,
.receipt-footer {
  position: relative;
  z-index: 1;
}

.receipt-header {
  padding-top: 100px !important;
  /* 👈 ලෝගෝ එකට යටින් අකුරු ටික ලස්සනට පල්ලෙහාට තල්ලු කරයි */
  text-align: center;
}

.receipt-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.receipt-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.receipt-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.receipt-meta strong {
  color: var(--text-dark);
}

.receipt-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.receipt-body th {
  text-align: left;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.receipt-body td {
  padding: 1.2rem 0;
  border-bottom: 1px dashed rgba(197, 160, 89, 0.3);
  vertical-align: top;
}

.receipt-item-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  display: block;
}

.receipt-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.receipt-total-row td {
  border-bottom: none;
  padding-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.receipt-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.receipt-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.receipt-actions .btn {
  flex: 1;
}

.receipt-legal-notice {
  background-color: rgba(183, 28, 28, 0.05);
  border: 1px dashed rgba(183, 28, 28, 0.4);
  border-left: 4px solid #b71c1c;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  color: #b71c1c;
  font-weight: 600;
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

/* ============================================================
   CUSTOM SUCCESS MODAL
   ============================================================ */
.success-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 8, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.success-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.success-modal-container {
  background: var(--bg-cream);
  border: 1px solid var(--gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 450px;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.success-modal-overlay.show .success-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Animated Checkmark SVG */
.success-checkmark-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 4;
  stroke: #25D366;
  /* Elegant Green */
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #25D366;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: #25D366;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 40px transparent;
  }
}

.success-modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.success-modal-message {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-modal-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.success-modal-btn:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}