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

:root {
  --bg-dark: #0a0c10;
  --bg-card: #121620;
  --bg-card-hover: #181f2c;
  --accent-gold: #fbbf24;
  --accent-gold-light: #fef08a;
  --accent-cyan: #38bdf8;
  --accent-red: #f43f5e;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(251, 191, 36, 0.4);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Merriweather', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 0% 50%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Top Sticky Running Marquee Header Ticker */
.marquee-header {
  width: 100%;
  background: linear-gradient(90deg, #f43f5e, #fbbf24, #10b981, #38bdf8, #f43f5e);
  background-size: 400% 400%;
  animation: marquee-bg-shift 4s ease infinite;
  padding: 10px 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.4), 0 2px 10px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid #fbbf24;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 10s linear infinite;
  gap: 3.5rem;
}

.marquee-content span {
  font-weight: 900;
  font-size: 1.15rem;
  color: #05070c;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

@keyframes marquee-bg-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.brand-title h1 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-title p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Main Container */
main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Layout Grid: Photo Column & Info Column */
.profile-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Image Card Container - Sticky on Desktop & Auto-Fits Viewport */
.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(251, 191, 36, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 55px;
  max-height: calc(100vh - 65px);
  z-index: 10;
  justify-content: space-between;
}

.photo-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.3);
  background: #000;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
}

.photo-wrapper:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.25);
}

.contract-img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 270px);
  object-fit: contain;
  display: block;
}

/* Super Flashing IDOL CU HÂN Badge Above Photo (Does not obscure image) */
.idol-badge-overlay {
  position: relative;
  z-index: 5;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 30px;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  margin-bottom: 0.75rem;
  text-align: center;
  align-self: center;
  animation: max-flash 0.25s infinite alternate ease-in-out;
}

@keyframes max-flash {
  0% {
    color: #ffffff;
    background: rgba(244, 63, 94, 0.95);
    border: 3px solid #fbbf24;
    box-shadow: 0 0 25px #f43f5e, 0 0 50px #fbbf24, inset 0 0 15px #ffffff;
    transform: scale(1) rotate(-1deg);
    text-shadow: 0 0 10px #ffffff, 0 0 20px #fbbf24;
  }
  33% {
    color: #000000;
    background: #fbbf24;
    border: 3px solid #38bdf8;
    box-shadow: 0 0 35px #fbbf24, 0 0 70px #38bdf8, inset 0 0 20px #ffffff;
    transform: scale(1.08) rotate(1deg);
    text-shadow: 0 0 10px #000000;
  }
  66% {
    color: #ffffff;
    background: #10b981;
    border: 3px solid #f43f5e;
    box-shadow: 0 0 30px #10b981, 0 0 60px #f43f5e, inset 0 0 15px #ffffff;
    transform: scale(1.04) rotate(-1deg);
    text-shadow: 0 0 10px #ffffff;
  }
  100% {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.95);
    border: 3px solid #fbbf24;
    box-shadow: 0 0 30px #38bdf8, 0 0 60px #f43f5e, inset 0 0 20px #ffffff;
    transform: scale(1.1) rotate(1deg);
  }
}

.zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.photo-wrapper:hover .zoom-hint {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

/* Troll Specs Styling under Photo */
.photo-troll-specs {
  width: 100%;
  background: rgba(18, 22, 32, 0.85);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.troll-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.troll-spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.troll-spec-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.troll-spec-value {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.photo-actions {
  width: 100%;
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2deg);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Info Column Details */
.info-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* Data List Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .data-grid {
    grid-template-columns: 1fr;
  }
}

.data-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.data-item:hover {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.data-item.full-width {
  grid-column: 1 / -1;
}

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

.data-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.data-value.highlight {
  color: var(--accent-gold-light);
}

.data-value.danger {
  color: var(--accent-red);
}

/* Key Focal Point Highlight Badge Styling */
.key-highlight {
  font-weight: 800;
  font-size: 1.08em;
  color: var(--accent-gold-light);
  background: rgba(251, 191, 36, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: inline-block;
  line-height: 1.4;
}

.key-highlight.danger {
  color: #ff4d4d;
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
}

.copy-btn:hover {
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.1);
}

/* Dossier & Document Container */
.contract-document {
  background: #0f121a;
  border: 1px dashed rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.75;
}

.document-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.document-header h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.document-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.document-section {
  margin-bottom: 1.25rem;
}

.document-section h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.document-section ol, .document-section ul {
  padding-left: 1.25rem;
}

.document-section p {
  margin-top: 0.4rem;
}

.document-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.signature-box {
  text-align: center;
}

.signature-box span {
  display: block;
  margin-top: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

/* Lightbox Modal & Bottom Floating Control Bar */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

/* Floating Toolbar Positioned at Bottom */
.lightbox-toolbar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 22, 32, 0.92);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-gold);
  border-radius: 40px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100001;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(251, 191, 36, 0.15);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 92vw;
}

.toolbar-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.toolbar-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border-color: var(--accent-gold);
  transform: translateY(-2deg);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.toolbar-btn.btn-close {
  background: rgba(244, 63, 94, 0.25);
  border-color: rgba(244, 63, 94, 0.5);
  color: var(--accent-red);
}

.toolbar-btn.btn-close:hover {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

.zoom-level-tag {
  color: var(--accent-gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 48px;
  text-align: center;
}

.lightbox-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 20px 20px 90px 20px;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 50px rgba(251, 191, 36, 0.25);
  transition: transform 0.1s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid var(--accent-gold);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}
