:root {
  --bg-dark: #090d16;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --gradient-ig: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f43f5e 100%);
  --gradient-glow: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background animated glow orbs */
.blob-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  animation: float 20s infinite alternate ease-in-out;
}
.blob-1 {
  width: 500px;
  height: 500px;
  background: #6366f1;
  top: -100px;
  left: -100px;
}
.blob-2 {
  width: 450px;
  height: 450px;
  background: #ec4899;
  bottom: 10%;
  right: -50px;
  animation-delay: -7s;
}
.blob-3 {
  width: 350px;
  height: 350px;
  background: #06b6d4;
  top: 40%;
  left: 30%;
  animation-delay: -12s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 13, 22, 0.7);
  border-bottom: 1px solid var(--border-glass);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}
.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.badge-pill {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: 20px;
  font-weight: 600;
}
.btn-tele-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(41, 169, 234, 0.12);
  border: 1px solid rgba(41, 169, 234, 0.3);
  color: #38bdf8;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-tele-nav:hover {
  background: rgba(41, 169, 234, 0.25);
  transform: translateY(-1px);
}

/* Layout */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Hero Section */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  font-size: 12px;
  color: var(--text-muted);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 720px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 10px;
}

/* Downloader Input Card */
.downloader-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mode Switcher Tabs */
.search-mode-tabs {
  display: flex;
  background: rgba(10, 14, 23, 0.7);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  gap: 8px;
}
.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.mode-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.mode-tab.active {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

/* Username hints */
.username-hints {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  animation: fadeIn 0.3s ease;
  flex-wrap: wrap;
}
.hint-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.hint-chip {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.hint-chip:hover {
  background: #38bdf8;
  color: #0b1120;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.input-form {
  display: flex;
  gap: 12px;
  width: 100%;
}
.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.input-wrapper input {
  width: 100%;
  padding: 16px 85px 16px 46px;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.input-wrapper input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.btn-paste {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-paste:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  padding: 16px 28px;
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45);
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Platform Chips */
.platforms-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.platform-chip.ig .chip-dot { background: #e1306c; }
.platform-chip.tt .chip-dot { background: #00f2fe; }
.platform-chip.yt .chip-dot { background: #ff0000; }
.platform-chip.tw .chip-dot { background: #38bdf8; }
.platform-chip.fb .chip-dot { background: #1877f2; }

/* Error box */
.error-box {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Result Section */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.result-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-media {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/12;
}
.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  color: #fff;
  text-transform: capitalize;
}
.result-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.media-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.media-uploader {
  font-size: 13px;
  color: var(--text-dim);
}

.format-selection {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.format-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.format-radio input {
  display: none;
}
.format-box {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}
.format-radio input:checked + .format-box {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
.format-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.format-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn-download {
  padding: 14px 24px;
  background: #10b981;
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-download:hover {
  background: #059669;
  transform: translateY(-2px);
}
.btn-secondary {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Progress bar */
.download-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.progress-bar-indeterminate {
  width: 40%;
  height: 100%;
  background: var(--gradient-brand);
  position: absolute;
  border-radius: 10px;
  animation: indeterminate 1.5s infinite ease-in-out;
}
@keyframes indeterminate {
  0% { left: -40%; }
  50% { left: 40%; }
  100% { left: 100%; }
}
.progress-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* Telegram Banner */
.tele-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 30, 48, 0.8) 0%, rgba(18, 24, 38, 0.7) 100%);
  border-color: rgba(56, 189, 248, 0.25);
  gap: 20px;
}
.tele-content {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tele-icon-big {
  width: 56px;
  height: 56px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tele-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  margin-bottom: 4px;
}
.tele-text p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 550px;
}
.tele-badge {
  font-size: 12px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* FAQ */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  text-align: center;
  margin-bottom: 24px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
}
.faq-item h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #fff;
}
.faq-item p {
  font-size: 13px;
  color: var(--text-muted);
}
.faq-item code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #f43f5e;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .input-form {
    flex-direction: column;
  }
  .btn-primary {
    width: 100%;
  }
  .result-card {
    flex-direction: column;
    align-items: center;
  }
  .result-media {
    width: 100%;
    max-width: 240px;
  }
  .tele-card {
    flex-direction: column;
    text-align: center;
  }
  .tele-content {
    flex-direction: column;
  }
}

/* PIN Lock Screen Overlay */
.pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pin-card {
  width: 100%;
  max-width: 400px;
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.15);
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.pin-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  margin-bottom: 8px;
  color: #fff;
}
.pin-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pin-form input {
  width: 100%;
  padding: 14px 16px;
  text-align: center;
  letter-spacing: 4px;
  font-size: 18px;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  outline: none;
  transition: var(--transition);
}
.pin-form input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.btn-unlock {
  width: 100%;
}
.pin-error {
  font-size: 12px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Cookie Manager Component */
.btn-cookie-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-cookie-nav:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.cookie-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(135deg, rgba(22, 28, 44, 0.8) 0%, rgba(18, 24, 38, 0.7) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}
.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cookie-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}
.cookie-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.cookie-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cookie-badge.active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.cookie-badge.active .badge-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.cookie-badge.missing {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.cookie-badge.missing .badge-dot {
  background: #ef4444;
}
.cookie-badge.loading {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}
.cookie-badge.loading .badge-dot {
  background: #94a3b8;
}

.cookie-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-cookie-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}
.btn-cookie-action.upload-label {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}
.btn-cookie-action.upload-label:hover {
  background: rgba(99, 102, 241, 0.28);
  color: #fff;
  transform: translateY(-1px);
}
.btn-cookie-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}
.btn-cookie-action.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn-cookie-action.danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  margin-left: auto;
}
.btn-cookie-action.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.cookie-paste-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}
.cookie-paste-box textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  outline: none;
  resize: vertical;
}
.cookie-paste-box textarea:focus {
  border-color: var(--border-focus);
}
.paste-box-footer {
  display: flex;
  gap: 10px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.cookie-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-top: 12px;
}
.cookie-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.cookie-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Reddit Chip Color */
.platform-chip.rd .chip-dot { background: #ff4500; }

/* Profile Explorer Styles */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.4s ease;
}
.profile-header {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.prof-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.prof-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prof-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.prof-name-row h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
}
.prof-tag {
  color: #818cf8;
  font-weight: 600;
  font-size: 14px;
}
.prof-bio {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 600px;
  white-space: pre-line;
}
.prof-stats {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.stat-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}
.stat-pill strong {
  color: #fff;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.tab-btn.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  animation: fadeIn 0.3s ease;
}
.grid-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-glass);
  aspect-ratio: 9/14;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.grid-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #fff;
}
.grid-action-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0.95;
}
.btn-grid-download {
  padding: 8px 12px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-grid-download:hover {
  background: #059669;
}
.empty-tab-msg {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}


