/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f1117;
  --bg-subtle: #161822;
  --card-bg: #1a1d2e;
  --card-bg-hover: #1f2235;
  --text-primary: #e8eaf0;
  --text-secondary: #9498ab;
  --text-muted: #6b6f82;
  --border: #2a2d3e;
  --border-light: #232636;

  --accent-blue: #6366f1;
  --accent-blue-light: rgba(99, 102, 241, 0.12);
  --accent-blue-glow: rgba(99, 102, 241, 0.25);
  --accent-red: #f43f5e;
  --accent-red-light: rgba(244, 63, 94, 0.1);
  --accent-red-border: rgba(244, 63, 94, 0.3);
  --accent-orange: #f59e0b;
  --accent-orange-light: rgba(245, 158, 11, 0.1);
  --accent-orange-border: rgba(245, 158, 11, 0.3);
  --accent-green: #10b981;
  --accent-green-light: rgba(16, 185, 129, 0.1);
  --accent-green-dark: #059669;
  --accent-purple: #a855f7;
  --accent-purple-light: rgba(168, 85, 247, 0.1);
  --accent-cyan: #06b6d4;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 0% 40%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 100% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 100%, 100%, 100%, 100%, 60px 60px, 60px 60px;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

body::before {
  top: 10%;
  left: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  animation: floatLeft 8s ease-in-out infinite;
}

body::after {
  bottom: 15%;
  right: -100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  animation: floatRight 10s ease-in-out infinite;
}

@keyframes floatLeft {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, 40px);
  }
}

@keyframes floatRight {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-25px, -35px);
  }
}

/* ===== DECORATIVE SIDE ELEMENTS ===== */
.side-decor {
  position: fixed;
  top: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.left-decor {
  left: 0;
}

.right-decor {
  right: 0;
}

.decor-ring {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 60px;
  border: 1.5px solid rgba(99, 102, 241, 0.12);
  border-radius: 50%;
  animation: rotateSlow 20s linear infinite;
}

.left-decor .decor-ring {
  left: 15px;
}

.right-decor .decor-ring {
  right: 15px;
}

@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}

.decor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(99, 102, 241, 0.25);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }
}

.decor-line {
  position: absolute;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
}

.left-decor .decor-line {
  left: 10px;
}

.right-decor .decor-line {
  right: 10px;
}

.decor-cross {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: twinkle 5s ease-in-out infinite;
}

.decor-cross::before,
.decor-cross::after {
  content: '';
  position: absolute;
  background: rgba(168, 85, 247, 0.2);
}

.decor-cross::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.decor-cross::after {
  width: 1.5px;
  height: 12px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
    transform: rotate(0deg);
  }

  50% {
    opacity: 0.7;
    transform: rotate(90deg);
  }
}

/* Ensure content sits above decorations */
.loading-screen,
.container {
  position: relative;
  z-index: 1;
}

@media (max-width: 1400px) {
  .side-decor {
    display: none;
  }
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #818cf8;
  text-decoration: underline;
}

/* ===== LOADING / WAITING SCREEN ===== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-screen h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-screen p {
  color: var(--text-secondary);
  max-width: 420px;
}

.loading-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent-blue-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  color: #818cf8;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== MAIN CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ===== HEADER ===== */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.order-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: var(--accent-blue-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
}

.product-title {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e8eaf0 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.content-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s;
  backdrop-filter: blur(10px);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #333652;
}

.card+.card {
  margin-top: 1.25rem;
}

.card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== LEFT COLUMN — CREDENTIALS ===== */
.left-col {
  position: sticky;
  top: 1.5rem;
}

.cred-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.cred-field {
  position: relative;
  margin-bottom: 1rem;
}

.cred-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 2.75rem 0.7rem 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cred-field input:hover {
  border-color: var(--accent-blue);
}

.cred-field input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.copy-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.copy-btn:hover {
  color: var(--accent-blue);
  background: var(--accent-blue-light);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

.copy-btn.copied {
  color: var(--accent-green);
}

/* ===== 2FA SECTION ===== */
.twofa-card {
  text-align: center;
}

.twofa-card .card-title {
  margin-bottom: 0.25rem;
}

.twofa-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.twofa-code-wrap {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.twofa-code-wrap:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-color: var(--accent-blue);
}

.twofa-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: all;
}

.twofa-copy-hint {
  font-size: 0.7rem;
  color: #818cf8;
  margin-top: 0.4rem;
  font-weight: 500;
}

.twofa-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.twofa-timer-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.twofa-timer-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  border-radius: 3px;
  transition: width 1s linear;
}

/* ===== SECURITY CHECK CARD ===== */
.security-card {
  text-align: center;
}

.security-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.security-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-red), #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}

.security-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.security-checks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.security-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
}

.security-check-item:hover {
  border-color: var(--accent-blue);
  background: var(--accent-blue-light);
  transform: translateX(2px);
}

.security-check-item.checked {
  border-color: var(--accent-green);
  background: var(--accent-green-light);
}

.security-checkbox {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--bg);
}

.security-check-item.checked .checkmark {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.security-check-item.checked .checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.check-content strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.check-content span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.reveal-btn {
  width: 100%;
  padding: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: var(--border);
  border: none;
  border-radius: var(--radius-sm);
  cursor: not-allowed;
  transition: all 0.4s;
  opacity: 0.5;
}

.reveal-btn.active {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: #fff;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 4px 20px var(--accent-blue-glow);
}

.reveal-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.4);
}

/* ===== RIGHT COLUMN ===== */

/* --- Warning Boxes --- */
.warning-box {
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.65;
  border-left: 4px solid;
}

.warning-box.red {
  background: var(--accent-red-light);
  border-color: var(--accent-red);
}

.warning-box.orange {
  background: var(--accent-orange-light);
  border-color: var(--accent-orange);
}

.warning-box strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.warning-box .highlight {
  font-weight: 600;
  color: var(--accent-cyan);
}

/* --- Section Titles --- */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-title .icon {
  font-size: 1.2rem;
}

/* --- Steps List --- */
.steps-list {
  list-style: none;
  counter-reset: step-counter;
}

.steps-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.steps-list li strong {
  color: var(--text-primary);
}

.steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Phone / Sub-tips --- */
.sub-tip {
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sub-tip strong {
  color: var(--text-primary);
}

/* --- Problem Cases --- */
.problem-case {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  transition: border-color 0.2s;
}

.problem-case:hover {
  border-color: #3a3d4e;
}

.problem-case .case-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.problem-case .important-note {
  font-weight: 700;
  color: var(--accent-red);
}

.problem-case .success-rate {
  color: var(--accent-green);
  font-weight: 600;
}

/* --- Links Section --- */
.links-group {
  margin-bottom: 1rem;
}

.links-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  font-size: 0.88rem;
}

.link-item:hover {
  background: var(--accent-blue-light);
  text-decoration: none;
}

.link-item .link-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.link-item .link-url {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-left: auto;
  word-break: break-all;
}

/* ===== COPIED TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .left-col {
    position: static;
  }

  .product-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 1.25rem 1rem 2rem;
  }

  .twofa-code {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .card {
    padding: 1.15rem;
  }
}