/* ==================================================
   LAYOUT: MINIMAL LUXURY METAL PLATE (미니멀 플레이트)
   Front: 100% Photorealistic Physical Metal Card Artwork
   Back: High-Impact Executive Revelation & Smart Cockpit
   ================================================== */

/* --- Card Scene & Physics Calibration --- */
.layout-plate .card-face {
  border-radius: 28px !important;
}

/* ==================================================
   FRONT FACE: PURE BESPOKE PHYSICAL METAL ARTWORK
   ================================================== */
.layout-plate .card-face.front {
  padding: 0 !important;
  background: #090a0f !important;
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 
    0 28px 70px rgba(0, 0, 0, 0.95),
    0 0 40px var(--neon-glow, rgba(168, 85, 247, 0.4)),
    inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
}

/* Front typography & overlay hidden (Pure Physical Metal Plate Showcase) */
.layout-plate .card-face.front .front-wrapper,
.layout-plate .card-face.front .watermark-dynamic,
.layout-plate .card-face.front::before,
.layout-plate #insideActionDockFront,
.layout-plate .front-info-container,
.layout-plate .front-logo-container {
  display: none !important;
}

/* Photorealistic Card Plate Artwork Container as Background Texture */
.plate-artwork-container {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.layout-plate .plate-artwork-container {
  display: block !important;
}

.card-scene.flipped .layout-plate .plate-artwork-container,
.card-scene.flipped .plate-artwork-container {
  pointer-events: none !important;
  visibility: hidden !important;
}

.plate-artwork-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 28px !important;
  pointer-events: none;
  filter: contrast(1.03) brightness(1.02);
}

/* Living Physical Anisotropic Light Sweep */
.plate-specular-sheen {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(115deg, 
    transparent 36%, 
    rgba(255, 255, 255, 0.04) 44%, 
    rgba(255, 255, 255, 0.22) 50%, 
    rgba(255, 217, 120, 0.18) 53%, 
    rgba(255, 255, 255, 0.06) 56%, 
    transparent 64%);
  pointer-events: none;
  z-index: 3;
  transform: rotate(-15deg);
  animation: plateHoloSweep 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.85;
}

@keyframes plateHoloSweep {
  0% { transform: translateY(-110%) rotate(-15deg); }
  28%, 100% { transform: translateY(130%) rotate(-15deg); }
}

/* Minimal Luxury Tactile Pill Hint */
.plate-flip-pill {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: rgba(10, 10, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  animation: platePillPulse 3.2s ease-in-out infinite;
}

@keyframes platePillPulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.85);
  }
  50% {
    border-color: rgba(255, 217, 120, 0.65);
    box-shadow: 0 8px 24px rgba(255, 217, 120, 0.3);
    color: #ffffff;
  }
}

.plate-flip-pill:hover {
  background: rgba(15, 15, 24, 0.9);
  border-color: rgba(255, 217, 120, 0.85);
  color: #ffd978;
  transform: translateX(-50%) translateY(-2px);
}

/* ==================================================
   SMART MORPHING QR (스마트 폴백 모핑 QR)
   - 2.5초 지연/스캔 미감지 시 or 탭 시 메탈 표면에서 크롬/글래스 3D 팝업
   ================================================== */
.plate-morph-qr-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(6, 6, 12, 0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease;
  border-radius: 28px;
  overflow: hidden;
}

.plate-morph-qr-wrap.active {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 6, 12, 0.65);
}

.plate-morph-card {
  width: 236px;
  background: linear-gradient(155deg, rgba(24, 24, 38, 0.94) 0%, rgba(12, 12, 20, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 16px 16px 14px 16px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 35px var(--neon-glow, rgba(168, 85, 247, 0.35)),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: scale(0.85) translateY(14px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.plate-morph-qr-wrap.active .plate-morph-card {
  transform: scale(1) translateY(0);
}

.plate-morph-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.plate-morph-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.plate-morph-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: morphPulse 1.8s infinite;
}

@keyframes morphPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.plate-morph-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plate-morph-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.1);
}

.plate-morph-qr-box {
  position: relative;
  width: 154px;
  height: 154px;
  background: #ffffff;
  border-radius: 16px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.plate-morph-qr-box canvas,
.plate-morph-qr-box img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.plate-morph-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, #ffd978, transparent);
  box-shadow: 0 0 8px #a855f7;
  animation: morphLaser 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes morphLaser {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.plate-morph-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.morph-main-text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

.morph-sub-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
}

/* Front QR Toggle Pill (플레이트 하단 우측 보조 버튼) */
.plate-qr-toggle-pill {
  position: absolute;
  bottom: 20px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(10, 10, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.plate-qr-toggle-pill:hover {
  background: rgba(20, 20, 32, 0.92);
  border-color: var(--neon-accent, #a855f7);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Back Face: Flip To Front Showcase Pill */
.plate-to-front-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 8px;
  margin-bottom: 2px;
  transition: all 0.25s ease;
  user-select: none;
  align-self: center;
}

.plate-to-front-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 217, 120, 0.7);
  color: #ffd978;
  transform: translateY(-1px);
}

/* ==================================================
   BACK FACE: HIGH-IMPACT EXECUTIVE REVELATION (SETUPOD 3D MASTER)
   ================================================== */
.layout-plate .card-face.back {
  padding: 26px 22px 20px 22px !important;
  border-radius: 28px !important;
  background: var(--card-gradient, radial-gradient(circle at 50% 0%, #1a1c29 0%, #0a0b10 100%)) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
  box-shadow: 
    0 28px 70px rgba(0, 0, 0, 0.95),
    0 0 35px var(--neon-glow, rgba(168, 85, 247, 0.3)),
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.layout-plate .card-face.back .watermark-dynamic {
  display: flex !important;
  opacity: 0.5 !important;
}

.layout-plate .back-wrapper {
  position: relative !important;
  z-index: 2 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Top 3D Animated Medallion (Interactive 3D Flipper) */
.layout-plate .back-top-logo-container {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 2px !important;
  min-height: 120px !important;
}

.layout-plate .back-flipper-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  perspective: 1000px !important;
  cursor: pointer !important;
}

.layout-plate .back-flipper {
  width: 114px !important;
  height: 114px !important;
  position: relative !important;
  transform-style: preserve-3d !important;
  transition: transform 0.65s cubic-bezier(0.2, 0.85, 0.32, 1.1) !important;
  border-radius: 22px !important;
}

.layout-plate .back-flipper.show-qr {
  transform: rotateY(180deg) !important;
}

.layout-plate .back-flipper-face {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  border-radius: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--logo-bg, radial-gradient(circle at 35% 35%, #252838 0%, #0c0d14 100%)) !important;
  border: 1px solid var(--logo-border, rgba(255, 217, 120, 0.35)) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9), 0 0 22px var(--neon-glow, rgba(245, 158, 11, 0.25)) !important;
  padding: 8px !important;
}

.layout-plate .back-flipper-logo {
  transform: rotateY(0deg) !important;
  z-index: 2 !important;
}

.layout-plate .back-top-logo {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.layout-plate .back-top-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)) !important;
}

.layout-plate .back-flipper-qr {
  transform: rotateY(180deg) !important;
  z-index: 1 !important;
}

.layout-plate .back-qr-box {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

.layout-plate .back-qr-box img,
.layout-plate .back-qr-box canvas {
  width: 82px !important;
  height: 82px !important;
  object-fit: contain !important;
}

.layout-plate .qr-return-pill {
  display: none !important;
}

/* Main Business Info Area (Original SETUPOD Balanced Layout) */
.layout-plate .back-info-container {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  display: block !important;
}

.layout-plate .brand-sub-engraving {
  display: block !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.24em !important;
  color: var(--tagline-color, rgba(255, 217, 120, 0.9)) !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
}

.layout-plate .back-company-name {
  display: block !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  color: var(--key-color, #ffffff) !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 2px !important;
  text-transform: uppercase !important;
  line-height: 1.15 !important;
}

.layout-plate .back-company-slogan {
  display: block !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--tagline-color, var(--gold-accent, #ffd978)) !important;
  margin-bottom: 10px !important;
  letter-spacing: 0.01em !important;
  line-height: 1.35 !important;
}

.layout-plate .profile-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.layout-plate .role-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--tagline-color, rgba(255, 255, 255, 0.75)) !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
}

.layout-plate .name-title {
  font-family: 'Montserrat', 'Pretendard', sans-serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: var(--key-color, #ffffff) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

/* Contact Rows */
.layout-plate .contact-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

.layout-plate .contact-row {
  padding: 5px 10px !important;
  border-radius: 8px !important;
  background: var(--moat-bg, rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1)) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  height: 32px !important;
}

.layout-plate .contact-row:hover {
  background: var(--moat-bg, rgba(255, 255, 255, 0.1)) !important;
  border-color: var(--border-accent, rgba(255, 217, 120, 0.4)) !important;
  transform: translateX(2px) !important;
}

.layout-plate .contact-key {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: var(--gold-accent, #ffd978) !important;
  width: 14px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.layout-plate .contact-value {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--key-color, rgba(255, 255, 255, 0.95)) !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Moat Tags */
.layout-plate .moat-tags {
  display: flex !important;
  gap: 5px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

.layout-plate .moat-tag {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  background: var(--moat-bg, rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid var(--moat-border, rgba(255, 255, 255, 0.12)) !important;
  color: var(--moat-text, rgba(255, 255, 255, 0.85)) !important;
  white-space: nowrap !important;
  text-align: center !important;
  flex: 1 !important;
}

/* Action Dock Tuning (2x2 Grid) */
.layout-plate .inside-action-dock {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
}

.layout-plate .inside-action-row {
  display: flex !important;
  gap: 6px !important;
  width: 100% !important;
}

.layout-plate .btn-action {
  flex: 1 !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  letter-spacing: 0.01em !important;
}

.layout-plate .btn-glass,
.btn-glass {
  background: var(--moat-bg, rgba(255, 255, 255, 0.07)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border-accent, rgba(255, 255, 255, 0.16)) !important;
  color: var(--key-color, #ffffff) !important;
}

.layout-plate .front-logo-container {
  display: none !important;
}

