/* ==========================================================================
   M/Y NOAH DEEP BLUE TRAVEL · BUSINESS CARD DESIGN SUITE
   Ultra-Luxury Nautical Branding & High-Resolution Print Engine
   ========================================================================== */

:root {
  /* Ocean Navy Luxury Palette */
  --navy-deepest: #030a16;
  --navy-deep: #051329;
  --navy-dark: #0a1e3f;
  --navy-card: #0d264e;
  --navy-surface: #102d59;
  --navy-light: #163e75;

  /* Gold Foil Gradients & Accents */
  --gold-pure: #d4af37;
  --gold-bright: #f5e6a8;
  --gold-warm: #e5c158;
  --gold-dark: #997b1e;
  --gold-foil-grad: linear-gradient(135deg, #fff2be 0%, #d4af37 40%, #aa8214 70%, #f9eab2 100%);
  --gold-subtle-grad: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.05) 100%);
  --gold-border: rgba(212, 175, 55, 0.4);
  --gold-border-bright: rgba(245, 230, 168, 0.8);

  /* Cyan & Nautical Glow */
  --cyan-ocean: #0077b6;
  --cyan-vivid: #00b4d8;
  --cyan-soft: #90e0ef;

  /* UI Dark Mode Controls Palette */
  --bg-app: #060b13;
  --bg-panel: #0a121f;
  --bg-panel-elevated: #0f1c30;
  --bg-input: #070d17;
  --border-ui: rgba(255, 255, 255, 0.08);
  --border-ui-focus: rgba(212, 175, 55, 0.5);
  --text-main: #f1f5f9;
  --text-muted: #8b9bb4;
  --text-gold: #e2c058;

  /* Card Geometry (85mm x 55mm -> 1.545 Aspect Ratio) */
  --card-width: 530px;
  --card-height: 343px;
  --card-radius: 4px;

  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-ui: 'Plus Jakarta Sans', sans-serif;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TOP APP HEADER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 19, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-ui);
  padding: 0.75rem 1.5rem;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  border: 1px solid var(--gold-border);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 2px;
  background: var(--gold-foil-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.header-specs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge-tag {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-bright);
  font-size: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-tag.dim {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-ui);
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, #e5c158 0%, #d4af37 50%, #b38b1f 100%);
  color: #051329;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f5d475 0%, #e2be4a 50%, #c49925 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.btn-navy {
  background: #0f2444;
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.btn-navy:hover {
  background: #153360;
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-ui);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   MAIN LAYOUT (2 COLUMNS: CONTROLS & 3D STAGE)
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  height: calc(100vh - 65px);
  overflow: hidden;
}

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
}

/* ==========================================================================
   LEFT SIDEBAR: CONTROLS PANEL
   ========================================================================== */
.control-panel {
  background: var(--bg-panel);
  border-right: 1px solid var(--border-ui);
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.2) transparent;
}

.panel-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-ui);
}

.panel-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.panel-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.control-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-ui);
}

.control-group.no-border {
  border-bottom: none;
  padding-bottom: 0;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.group-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

/* Layout Selector (Minimalist, Editorial, Ornate) */
.layout-selector-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.layout-btn {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-ui);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.layout-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: #14233a;
}

.layout-btn.active {
  border-color: var(--gold-pure);
  background: #172a47;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.layout-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.layout-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

.layout-btn.active .layout-badge {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.2);
}

.layout-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.layout-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Theme Selector Grid */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.theme-btn {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-ui);
  border-radius: 8px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.theme-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: #14233a;
}

.theme-btn.active {
  border-color: var(--gold-pure);
  background: #152640;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.color-preview {
  width: 100%;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.preview-midnight {
  background: linear-gradient(135deg, #051329 0%, #0d264e 60%, #d4af37 100%);
}

.preview-carbon {
  background: linear-gradient(135deg, #0d1117 0%, #1c2128 60%, #d4af37 100%);
}

.preview-ivory {
  background: linear-gradient(135deg, #faf7f2 0%, #ebdcc0 60%, #051329 100%);
}

.preview-sapphire {
  background: linear-gradient(135deg, #011627 0%, #0077b6 60%, #00b4d8 100%);
}

.theme-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.theme-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.theme-btn.active .theme-badge {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.15);
}

/* Radio Chips */
.radio-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.radio-chip {
  flex: 1;
  min-width: 110px;
  position: relative;
  cursor: pointer;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
}

.radio-chip span {
  display: block;
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-ui);
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.radio-chip input:checked + span {
  border-color: var(--gold-pure);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
}

/* Form Fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.field-item {
  margin-bottom: 0.75rem;
}

.field-item label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.label-with-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.label-with-hint label {
  margin-bottom: 0;
}

.btn-text-fix {
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.12);
  transition: all 0.2s;
}

.btn-text-fix:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 0.85rem;
  color: var(--gold-pure);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-ui);
  border-radius: 6px;
  padding: 0.6rem 0.85rem 0.6rem 2.2rem;
  font-size: 0.85rem;
  color: #fff;
  font-family: var(--font-ui);
  transition: border-color 0.2s;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--gold-pure);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.field-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.field-hint em {
  color: var(--gold-bright);
  font-style: normal;
}

/* Switch & Toggles */
.switch-wrap {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  border-radius: 20px;
  transition: 0.3s;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-wrap input:checked + .switch-slider {
  background-color: var(--gold-pure);
}

.switch-wrap input:checked + .switch-slider::before {
  transform: translateX(18px);
}

.toggles-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-line input {
  accent-color: var(--gold-pure);
  width: 16px;
  height: 16px;
}

.checkbox-line:hover {
  color: #fff;
}

.export-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   RIGHT: 3D DISPLAY STAGE
   ========================================================================== */
.display-stage {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 40%, #0d1e37 0%, #060b13 75%);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(6, 11, 19, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.view-toggles {
  display: flex;
  gap: 0.35rem;
  background: rgba(15, 28, 48, 0.8);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-ui);
}

.toolbar-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s;
}

.toolbar-btn.active {
  background: var(--navy-light);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-side-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.side-pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
}

.btn-flip {
  background: linear-gradient(135deg, #1c3d69 0%, #0f2444 100%);
  border: 1px solid var(--gold-border);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-flip:hover {
  background: linear-gradient(135deg, #285590 0%, #153360 100%);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

.zoom-tools {
  display: flex;
  gap: 0.4rem;
}

.icon-tool-btn {
  background: rgba(15, 28, 48, 0.8);
  border: 1px solid var(--border-ui);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-tool-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   VIEWPORT & 3D CARD SCENE
   ========================================================================== */
.stage-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: auto;
}

.card-3d-scene {
  width: var(--card-width);
  height: var(--card-height);
  perspective: 1400px;
  position: relative;
  transition: transform 0.3s ease;
}

.card-3d-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.2, 0.85, 0.4, 1.15);
}

.card-3d-flipper.flipped {
  transform: rotateY(180deg);
}

/* Face Shared Properties */
.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7),
              0 10px 25px -5px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card-back {
  transform: rotateY(180deg);
}

/* Foil Glimmer Specular Reflection */
.foil-glimmer-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 245, 200, 0.22) 0%,
    rgba(212, 175, 55, 0.08) 35%,
    transparent 65%
  );
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 5;
}

body:not(.foil-active) .foil-glimmer-effect {
  opacity: 0 !important;
}

/* Card Luxury Frame & Metallic Hairline */
.card-luxury-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--gold-border);
  pointer-events: none;
  z-index: 4;
}

.card-luxury-frame.mini {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-color: rgba(212, 175, 55, 0.3);
}

/* Corner Accents */
.corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--gold-pure);
}

.corner-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* Bleed and Cut Guide Lines (Hidden by default, toggled via UI) */
.cut-guide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  display: none;
}

body.show-guides .cut-guide-overlay {
  display: block;
}

.cut-line {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(239, 68, 68, 0.7);
}

.safe-area-line {
  position: absolute;
  inset: 22px;
  border: 1px dotted rgba(16, 185, 129, 0.7);
}

/* Background Layers */
.card-art-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.luxury-waves-bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.3) 0%, transparent 60%),
                    radial-gradient(ellipse at 20% 80%, rgba(0, 180, 216, 0.25) 0%, transparent 60%);
}

.nautical-compass-watermark {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 260px;
  height: 260px;
  background-image: url('assets/logo-emblem-round.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.04;
  pointer-events: none;
  filter: contrast(150%) brightness(120%);
}

.radial-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

/* ==========================================================================
   THEME STYLES (Midnight, Carbon, Ivory, Oceanic)
   ========================================================================== */

/* 1. MIDNIGHT GOLD (Principal) */
.theme-midnight .card-face {
  background: radial-gradient(circle at 50% 0%, #0d264e 0%, #071933 50%, #040e1e 100%);
  color: #fff;
}

.theme-midnight .brand-luxury-tagline,
.theme-midnight .brand-gold-divider .diamond,
.theme-midnight .text-gold {
  color: var(--gold-bright);
}

.theme-midnight .brand-gold-divider .line {
  background: linear-gradient(90deg, transparent, var(--gold-pure), transparent);
}

/* 2. MATTE OBSIDIAN BLACK */
.theme-carbon .card-face {
  background: radial-gradient(circle at 50% 0%, #1e242d 0%, #12161c 50%, #0a0d11 100%);
  color: #fff;
}

.theme-carbon .card-luxury-frame {
  border-color: rgba(212, 175, 55, 0.5);
}

/* 3. IVORY LUXE (White / Pearl) */
.theme-ivory .card-face {
  background: linear-gradient(135deg, #ffffff 0%, #f7f4ed 60%, #eee8db 100%);
  color: #051329;
}

.theme-ivory .card-luxury-frame {
  border-color: rgba(180, 140, 45, 0.35);
}

.theme-ivory .corner {
  border-color: #b38b1f;
}

.theme-ivory .brand-luxury-tagline {
  color: #8c6d16;
}

.theme-ivory .expedition-badge {
  background: rgba(180, 140, 45, 0.12);
  border-color: rgba(180, 140, 45, 0.3);
  color: #8c6d16;
}

.theme-ivory .yacht-class,
.theme-ivory .front-footer-strip,
.theme-ivory .rating-sub,
.theme-ivory .item-label,
.theme-ivory .fleet-ship-info {
  color: #475569;
}

.theme-ivory .holder-name {
  color: #051329;
}

.theme-ivory .item-val {
  color: #0f172a;
}

.theme-ivory .contact-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.theme-ivory .contact-icon-box {
  background: rgba(5, 19, 41, 0.08);
  color: #051329;
}

.theme-ivory .contact-mini-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #051329;
}

.theme-ivory .qr-frame-luxury {
  background: #ffffff;
  border-color: rgba(180, 140, 45, 0.4);
}

.theme-ivory .qr-scan-tag {
  color: #8c6d16;
}

/* 4. OCEANIC SAPPHIRE */
.theme-sapphire .card-face {
  background: radial-gradient(circle at 70% 20%, #0077b6 0%, #022b52 50%, #011428 100%);
  color: #fff;
}

.theme-sapphire .card-luxury-frame {
  border-color: rgba(0, 180, 216, 0.4);
}

.theme-sapphire .corner {
  border-color: var(--cyan-vivid);
}

/* ==========================================================================
   LAYOUT MODES ENGINE (Minimalista Ejecutivo, Moderno Editorial, Clásico Ornato)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MINIMALISTA EJECUTIVO (SOBRIO, LIMPIO, PROFESIONAL)
   -------------------------------------------------------------------------- */
.layout-minimal .card-luxury-frame,
.card-face.layout-minimal .card-luxury-frame {
  display: none !important;
}

.layout-minimal .nautical-compass-watermark,
.card-face.layout-minimal .nautical-compass-watermark {
  display: none !important;
}

.layout-minimal .luxury-waves-bg,
.card-face.layout-minimal .luxury-waves-bg {
  opacity: 0.05 !important;
}

.layout-minimal .radial-sheen,
.card-face.layout-minimal .radial-sheen {
  opacity: 0.2 !important;
}

/* Front Minimalist */
.layout-minimal.card-front .front-content,
.layout-minimal .card-front .front-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.layout-minimal .front-top-header,
.layout-minimal .front-footer-strip,
.card-face.layout-minimal .front-top-header,
.card-face.layout-minimal .front-footer-strip {
  display: none !important;
}

.layout-minimal .front-center-brand,
.card-face.layout-minimal .front-center-brand {
  margin: 0;
  width: 100%;
  max-width: 440px;
}

.layout-minimal .logo-image-wrapper,
.card-face.layout-minimal .logo-image-wrapper {
  max-width: 350px;
  height: 95px;
  margin-bottom: 0.8rem;
}

.layout-minimal .brand-gold-divider,
.card-face.layout-minimal .brand-gold-divider {
  width: 90px;
  margin: 0.6rem auto;
}

.layout-minimal .brand-gold-divider .diamond,
.card-face.layout-minimal .brand-gold-divider .diamond {
  display: none !important;
}

.layout-minimal .brand-gold-divider .line,
.card-face.layout-minimal .brand-gold-divider .line {
  height: 1px;
  background: var(--gold-pure);
  opacity: 0.55;
}

.layout-minimal .brand-luxury-tagline,
.card-face.layout-minimal .brand-luxury-tagline {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.layout-minimal .brand-experience-sub,
.card-face.layout-minimal .brand-experience-sub {
  font-size: 0.55rem;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-top: 0.35rem;
}

/* Back Minimalist */
.layout-minimal.card-back .back-content,
.layout-minimal .card-back .back-content {
  padding: 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.layout-minimal .back-star-rating,
.layout-minimal .back-footer-row,
.card-face.layout-minimal .back-star-rating,
.card-face.layout-minimal .back-footer-row {
  display: none !important;
}

.layout-minimal .back-header-row,
.card-face.layout-minimal .back-header-row {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.6rem;
}

.layout-minimal .back-mini-crest,
.card-face.layout-minimal .back-mini-crest {
  width: 26px;
  height: 26px;
}

.layout-minimal .back-brand-title,
.card-face.layout-minimal .back-brand-title {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
}

.layout-minimal .back-brand-sub,
.card-face.layout-minimal .back-brand-sub {
  font-size: 0.52rem;
  letter-spacing: 1px;
}

.layout-minimal .back-body-grid,
.card-face.layout-minimal .back-body-grid {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 1.4rem;
  align-items: center;
  margin: auto 0;
}

.layout-minimal .holder-name,
.card-face.layout-minimal .holder-name {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.layout-minimal .holder-role,
.card-face.layout-minimal .holder-role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.layout-minimal .contact-list,
.card-face.layout-minimal .contact-list {
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.layout-minimal .contact-item,
.card-face.layout-minimal .contact-item {
  background: transparent !important;
  border: none !important;
  padding: 0.12rem 0 !important;
  gap: 0.65rem;
  border-radius: 0;
}

.layout-minimal .contact-icon-box,
.card-face.layout-minimal .contact-icon-box {
  background: transparent !important;
  color: var(--gold-bright) !important;
  width: 16px;
  height: 16px;
  font-size: 0.8rem;
  box-shadow: none !important;
}

.layout-minimal .contact-item-info,
.card-face.layout-minimal .contact-item-info {
  flex-direction: column;
}

.layout-minimal .item-label,
.card-face.layout-minimal .item-label {
  display: none !important;
}

.layout-minimal .item-val,
.card-face.layout-minimal .item-val {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.layout-minimal .contact-sub-row,
.card-face.layout-minimal .contact-sub-row {
  margin-top: 0.4rem;
  gap: 0.8rem;
}

.layout-minimal .contact-mini-badge,
.card-face.layout-minimal .contact-mini-badge {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.layout-minimal .qr-frame-luxury,
.card-face.layout-minimal .qr-frame-luxury {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  border-radius: 6px;
  padding: 5px;
}

.layout-minimal .qr-code-svg-slot,
.card-face.layout-minimal .qr-code-svg-slot {
  width: 76px;
  height: 76px;
}

.layout-minimal .qr-scan-tag,
.card-face.layout-minimal .qr-scan-tag {
  font-size: 0.44rem;
  letter-spacing: 1px;
  color: #051329;
}

/* Minimalist Specific Theme Overrides (White / Ivory & Midnight) */
.theme-ivory.layout-minimal .card-face,
.theme-ivory .layout-minimal.card-face,
.theme-ivory .card-face.layout-minimal {
  background: #fcfbfa !important;
  color: #040e1e !important;
}

.theme-ivory.layout-minimal .holder-name,
.theme-ivory .layout-minimal.card-face .holder-name,
.theme-ivory .card-face.layout-minimal .holder-name {
  color: #040e1e !important;
}

.theme-ivory.layout-minimal .holder-role,
.theme-ivory .layout-minimal.card-face .holder-role,
.theme-ivory .card-face.layout-minimal .holder-role {
  color: #a88220 !important;
}

.theme-ivory.layout-minimal .item-val,
.theme-ivory .layout-minimal.card-face .item-val,
.theme-ivory .card-face.layout-minimal .item-val {
  color: #0a1e3f !important;
}

.theme-ivory.layout-minimal .contact-icon-box,
.theme-ivory .layout-minimal.card-face .contact-icon-box,
.theme-ivory .card-face.layout-minimal .contact-icon-box {
  color: #a88220 !important;
}

.theme-ivory.layout-minimal .brand-luxury-tagline,
.theme-ivory .layout-minimal.card-face .brand-luxury-tagline,
.theme-ivory .card-face.layout-minimal .brand-luxury-tagline {
  color: #a88220 !important;
}

.theme-ivory.layout-minimal .brand-experience-sub,
.theme-ivory .layout-minimal.card-face .brand-experience-sub,
.theme-ivory .card-face.layout-minimal .brand-experience-sub {
  color: #64748b !important;
}

.theme-ivory.layout-minimal .back-brand-title,
.theme-ivory .layout-minimal.card-face .back-brand-title,
.theme-ivory .card-face.layout-minimal .back-brand-title {
  background: none !important;
  -webkit-text-fill-color: #040e1e !important;
  color: #040e1e !important;
}

.theme-ivory.layout-minimal .back-header-row,
.theme-ivory .layout-minimal.card-face .back-header-row,
.theme-ivory .card-face.layout-minimal .back-header-row {
  border-bottom-color: rgba(168, 130, 32, 0.25) !important;
}

.theme-midnight.layout-minimal .card-face,
.theme-midnight .layout-minimal.card-face,
.theme-midnight .card-face.layout-minimal {
  background: radial-gradient(circle at 50% 0%, #081a36 0%, #040e1e 100%) !important;
}

/* --------------------------------------------------------------------------
   2. MODERNO EDITORIAL / ASIMÉTRICO (CONTEMPORÁNEO)
   -------------------------------------------------------------------------- */
.layout-editorial .card-luxury-frame,
.card-face.layout-editorial .card-luxury-frame {
  display: none !important;
}

.layout-editorial .nautical-compass-watermark,
.card-face.layout-editorial .nautical-compass-watermark {
  display: none !important;
}

.layout-editorial.card-front .front-content,
.layout-editorial .card-front .front-content {
  padding: 2.2rem 2.4rem;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.layout-editorial .front-top-header,
.card-face.layout-editorial .front-top-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.layout-editorial .yacht-class,
.card-face.layout-editorial .yacht-class {
  display: none;
}

.layout-editorial .expedition-badge,
.card-face.layout-editorial .expedition-badge {
  background: transparent;
  border: none;
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  padding: 0;
  color: var(--gold-bright);
}

.layout-editorial .front-center-brand,
.card-face.layout-editorial .front-center-brand {
  align-items: flex-start;
  text-align: left;
  margin: auto 0;
  border-left: 2px solid var(--gold-pure);
  padding-left: 1.2rem;
}

.layout-editorial .logo-image-wrapper,
.card-face.layout-editorial .logo-image-wrapper {
  justify-content: flex-start;
  height: 80px;
  max-width: 320px;
  margin-bottom: 0.4rem;
}

.layout-editorial .brand-gold-divider,
.card-face.layout-editorial .brand-gold-divider {
  display: none;
}

.layout-editorial .brand-luxury-tagline,
.card-face.layout-editorial .brand-luxury-tagline {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.layout-editorial .brand-experience-sub,
.card-face.layout-editorial .brand-experience-sub {
  font-size: 0.54rem;
  letter-spacing: 1.5px;
  margin-top: 0.2rem;
}

.layout-editorial .front-footer-strip,
.card-face.layout-editorial .front-footer-strip {
  border-top: none;
  padding-top: 0;
  width: 100%;
  font-size: 0.58rem;
  letter-spacing: 1.5px;
}

.layout-editorial .nav-coord,
.layout-editorial .fleet-standard,
.card-face.layout-editorial .nav-coord,
.card-face.layout-editorial .fleet-standard {
  display: none;
}

/* Editorial Back */
.layout-editorial.card-back .back-content,
.layout-editorial .card-back .back-content {
  padding: 2rem 2.2rem;
}

.layout-editorial .back-star-rating,
.layout-editorial .back-footer-row,
.card-face.layout-editorial .back-star-rating,
.card-face.layout-editorial .back-footer-row {
  display: none !important;
}

.layout-editorial .back-header-row,
.card-face.layout-editorial .back-header-row {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.5rem;
}

.layout-editorial .holder-name,
.card-face.layout-editorial .holder-name {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.layout-editorial .holder-role,
.card-face.layout-editorial .holder-role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.layout-editorial .contact-list,
.card-face.layout-editorial .contact-list {
  gap: 0.35rem;
}

.layout-editorial .contact-item,
.card-face.layout-editorial .contact-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.45rem;
}

.layout-editorial .item-label,
.card-face.layout-editorial .item-label {
  display: none;
}

.layout-editorial .qr-frame-luxury,
.card-face.layout-editorial .qr-frame-luxury {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  border-radius: 6px;
  padding: 5px;
}

.layout-editorial .qr-code-svg-slot,
.card-face.layout-editorial .qr-code-svg-slot {
  width: 74px;
  height: 74px;
}

/* ==========================================================================
   FRONT CONTENT LAYOUT
   ========================================================================== */
.front-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 1.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.front-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.expedition-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.yacht-class {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-light-muted, #94a3b8);
}

.front-center-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
}

.emblem-wrapper {
  margin-bottom: 0.6rem;
}

.brand-crest-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  border: 1.5px solid var(--gold-border-bright);
}

.logo-image-wrapper {
  max-width: 360px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-luxury-tagline {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.brand-gold-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 180px;
  margin: 0.35rem auto;
}

.brand-gold-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-pure), transparent);
}

.brand-gold-divider .diamond {
  font-size: 0.5rem;
}

.brand-experience-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.front-footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.5rem;
}

/* ==========================================================================
   BACK CONTENT LAYOUT
   ========================================================================== */
.back-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 1.3rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.back-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.5rem;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.back-mini-crest {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
}

.mini-brand-text {
  display: flex;
  flex-direction: column;
}

.back-brand-title {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--gold-foil-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-brand-sub {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.back-star-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.65rem;
  color: var(--gold-bright);
}

.rating-sub {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* Back Middle Body */
.back-body-grid {
  display: grid;
  grid-template-columns: 1fr 115px;
  gap: 1.25rem;
  align-items: center;
  margin: auto 0;
}

.holder-name-block {
  margin-bottom: 0.6rem;
}

.holder-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1.1;
}

.holder-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 0.15rem;
}

/* Contact List */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.28rem 0.55rem;
  border-radius: 5px;
  transition: all 0.2s;
}

.contact-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.contact-icon-box.phone-box {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.contact-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.item-label {
  font-size: 0.52rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.item-val {
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-val.text-gold {
  color: var(--gold-bright);
}

.contact-sub-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.contact-mini-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-light-muted, #cbd5e1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}

/* QR Code Section */
.qr-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-frame-luxury {
  background: #ffffff;
  padding: 7px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--gold-pure);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-code-svg-slot {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-svg-slot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-scan-tag {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #051329;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Back Footer */
.back-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.45rem;
}

/* ==========================================================================
   DUAL VIEW (Side-by-side)
   ========================================================================== */
.dual-view-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.dual-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.dual-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dual-card-slot {
  width: var(--card-width);
  height: var(--card-height);
  position: relative;
}

/* Rounded Edges Option */
body.rounded-edges .card-face {
  border-radius: 14px;
}

/* ==========================================================================
   STAGE FOOTER SPECS
   ========================================================================== */
.stage-footer {
  padding: 0.75rem 1.5rem;
  background: rgba(6, 11, 19, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-pill-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pill-badge {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pill-badge strong {
  color: #fff;
}

/* ==========================================================================
   PRINT / IMPRENTA MODAL
   ========================================================================== */
.custom-dialog {
  border: 1px solid var(--border-ui);
  background: var(--bg-panel);
  color: #fff;
  border-radius: 12px;
  max-width: 920px;
  width: 95%;
  margin: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  outline: none;
}

.custom-dialog::backdrop {
  background: rgba(3, 8, 16, 0.85);
  backdrop-filter: blur(8px);
}

.dialog-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-ui);
}

.dialog-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: #fff;
}

.dialog-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.dialog-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.print-preview-a4 {
  background: #ffffff;
  color: #1e293b;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.a4-header-guide {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.a4-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #051329;
}

.a4-meta {
  font-size: 0.7rem;
  color: #64748b;
}

.a4-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  justify-items: center;
  padding: 1rem 0;
}

.printable-card-wrapper {
  position: relative;
  padding: 15px;
}

.print-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 0.5rem;
  text-align: center;
}

.printable-card-inner {
  width: 320px;
  height: 207px;
  transform-origin: top left;
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.printable-card-inner .card-face {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Crop Marks for Print */
.crop-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #0f172a;
}

.crop-mark.top-left {
  top: 5px;
  left: 5px;
  border-left: 1px solid #000;
  border-top: 1px solid #000;
}

.crop-mark.top-right {
  top: 5px;
  right: 5px;
  border-right: 1px solid #000;
  border-top: 1px solid #000;
}

.crop-mark.bottom-left {
  bottom: 5px;
  left: 5px;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
}

.crop-mark.bottom-right {
  bottom: 5px;
  right: 5px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}

.a4-footer-guide {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-ui);
}

/* ==========================================================================
   PRINT MEDIA STYLES (@media print)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-header,
  .control-panel,
  .stage-toolbar,
  .stage-footer,
  .dialog-header,
  .dialog-footer,
  .dialog-intro,
  .foil-glimmer-effect,
  .btn {
    display: none !important;
  }

  .custom-dialog {
    display: block !important;
    position: static !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .dialog-body {
    padding: 0 !important;
    overflow: visible !important;
  }

  .print-preview-a4 {
    box-shadow: none !important;
    padding: 0 !important;
  }

  .printable-card-inner {
    width: 85mm !important;
    height: 55mm !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  @page {
    size: A4;
    margin: 15mm;
  }
}
