/* ==========================================================================
   CSS Variables & Aesthetic Palette
   ========================================================================== */
:root {
  --bg-gradient: linear-gradient(135deg, #090613 0%, #120c24 50%, #06040a 100%);
  --card-bg: rgba(24, 19, 41, 0.65);
  --card-border: rgba(138, 43, 226, 0.25);
  --text-primary: #f5f3ff;
  --text-secondary: #a7a1c4;
  --accent-gold: #f3c649;
  --accent-gold-glow: rgba(243, 198, 73, 0.4);
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.5);
  --input-bg: rgba(12, 9, 23, 0.8);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Alternate Theme Override */
body.dark {
  --bg-gradient: linear-gradient(135deg, #020204 0%, #0a0812 50%, #000000 100%);
  --card-bg: rgba(15, 12, 25, 0.8);
  --card-border: rgba(243, 198, 73, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #8c86a8;
  --accent-purple: #7b2cbf;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 30px 16px;
}

/* Background Glowing Elements */
.glow-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 350px;
  height: 350px;
  background: rgba(157, 78, 221, 0.25);
  top: -50px;
  left: -50px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(243, 198, 73, 0.15);
  bottom: -100px;
  right: -100px;
}

/* ==========================================================================
   Container & Glassmorphism Card
   ========================================================================== */
.container {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              0 0 30px rgba(138, 43, 226, 0.15);
}

/* ==========================================================================
   Header & Typography
   ========================================================================== */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(243, 198, 73, 0.1);
  border: 1px solid rgba(243, 198, 73, 0.3);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.badge .icon-warning {
  font-size: 16px;
}

h1 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 2px;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  height: 140px;
  padding: 16px;
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: #ffffff;
  resize: vertical;
  transition: var(--transition);
}

textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-main {
  width: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #f3c649 0%, #b8860b 100%);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 20px var(--accent-gold-glow);
  transition: var(--transition);
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 198, 73, 0.6);
}

/* ==========================================================================
   Sections & Info Cards
   ========================================================================== */
.card-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.section-title h3 {
  font-size: 15px;
  font-weight: 600;
}

.img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 20px;
}

.popup-img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.popup-img:hover {
  transform: scale(1.02);
}

.manual-copy label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.copy-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

input[type="text"] {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: var(--accent-gold);
  text-align: center;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--accent-purple), #5a189a);
  color: white;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--accent-purple-glow);
}

.copy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(157, 78, 221, 0.08);
  border: 1px solid rgba(157, 78, 221, 0.2);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.info-icon {
  color: var(--accent-purple);
  font-size: 20px;
}

.info-box p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Alert Extension Box
   ========================================================================== */
.alert-box {
  margin-top: 24px;
  background: linear-gradient(145deg, rgba(243, 198, 73, 0.05) 0%, rgba(20, 15, 5, 0.6) 100%);
  border: 1px solid rgba(243, 198, 73, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.alert-header h4 {
  font-size: 13.5px;
  font-weight: 700;
}

.alert-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.alert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: rgba(243, 198, 73, 0.12);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
}

.alert-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

/* ==========================================================================
   Footer & Theme Toggle
   ========================================================================== */
.footer {
  text-align: center;
  margin-top: 32px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  margin-bottom: 20px;
}

.quote {
  font-style: italic;
  font-size: 13px;
  color: #b39ddb;
  margin-bottom: 8px;
}

.copyright {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-purple), #4a148c);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  z-index: 10;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}
/* --- VIDEO BACKGROUND STYLING --- */
#bgVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
}