/* 
  JM BIOTECH & RIBESKIN PRO Authenticity Portal
  Ultra-Luxury Holographic Theme (English & Korean LTR)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --primary-navy: #041226;
  --navy-surface: #0a1f3d;
  --navy-card: #0f274c;
  --accent-cyan: #00d2ff;
  --accent-blue: #0072ff;
  --accent-gold: #ffd700;
  --accent-green: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-glass: rgba(255, 255, 255, 0.12);
  --font-en: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-kr: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
  background-color: var(--primary-navy);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 114, 255, 0.28) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 210, 255, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(4, 18, 38, 0.95) 0px, var(--primary-navy) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

body.lang-ko {
  font-family: var(--font-kr), var(--font-en);
}

/* Holographic Prismatic Border */
.holo-border {
  position: relative;
  background: var(--navy-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.75);
}

.holo-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    #ff007a,
    #9600ff,
    #00bfff,
    #00ffaa,
    #ffe600,
    #ff007a
  );
  background-size: 300% 300%;
  animation: holoShift 6s ease infinite;
  z-index: -1;
  opacity: 0.85;
}

@keyframes holoShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
.header {
  backdrop-filter: blur(14px);
  background: rgba(4, 18, 38, 0.85);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-turtle {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.7));
}

.brand-name-en {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

/* Language Switcher Control */
.lang-switch-box {
  display: flex;
  align-items: center;
  background: rgba(4, 18, 38, 0.9);
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 30px;
  padding: 3px;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.2);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-en);
}

.lang-btn.lang-btn-kr {
  font-family: var(--font-kr);
}

.lang-btn.active {
  background: linear-gradient(135deg, #0072ff, #00d2ff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.4);
}

/* Main Container */
.container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  flex: 1;
}

/* Verification Status Banner */
.verification-status-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18) 0%, rgba(10, 31, 61, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.verification-status-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.verified-icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 38px;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.55);
  animation: pulseCheck 2.5s infinite;
}

@keyframes pulseCheck {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 38px rgba(16, 185, 129, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
}

.status-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.status-sub-kr {
  font-family: var(--font-kr);
  font-size: 1.05rem;
  color: #6ee7b7;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.status-en-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Certificate Code Box */
.cert-code-container {
  margin: 22px 0 10px;
  background: rgba(4, 18, 38, 0.88);
  border: 1px dashed rgba(0, 210, 255, 0.5);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cert-code-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-code-val {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #00d2ff;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
}

.copy-btn {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #00d2ff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(0, 210, 255, 0.28);
  color: #fff;
}

/* Product Card */
.product-card {
  background: var(--navy-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.product-header {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.product-img-box {
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--border-glass);
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-title-group h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

.product-title-group .p-brand {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
}

/* Specs List */
.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.spec-item {
  background: rgba(4, 18, 38, 0.65);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-k {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.spec-v {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
}

/* Hologram Visual Simulation Box */
.hologram-seal-visual {
  position: relative;
  background: linear-gradient(135deg, #0d2847 0%, #05162a 100%);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border-glass);
  margin-bottom: 24px;
  overflow: hidden;
}

.hologram-seal-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(255, 0, 128, 0.18) 0deg,
    rgba(0, 200, 255, 0.28) 90deg,
    rgba(0, 255, 128, 0.22) 180deg,
    rgba(255, 230, 0, 0.22) 270deg,
    rgba(255, 0, 128, 0.18) 360deg
  );
  animation: rotateHolo 8s linear infinite;
  pointer-events: none;
}

@keyframes rotateHolo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.holo-content {
  position: relative;
  z-index: 2;
}

.holo-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.85));
}

.holo-text-kr {
  font-family: var(--font-kr);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.holo-text-en {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent-cyan);
}

/* Security Notice Box (Replaces Warranty) */
.security-notice-card {
  background: rgba(10, 31, 61, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.security-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-secondary {
  flex: 1;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.5);
  color: #fff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 18px 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* Print Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .header, .action-buttons, .security-notice-card, .footer, .copy-btn {
    display: none !important;
  }
  .holo-border::before {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .verification-status-card, .product-card, .hologram-seal-visual {
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .status-title, .status-sub-kr, .status-en-sub, .product-title-group h3, .spec-v {
    color: #000 !important;
  }
  .cert-code-val {
    color: #004499 !important;
  }
}
