/* =========================================
   My Links— PLATFORM DESIGN SYSTEM 2026
   Premium · Futuristic · RTL
========================================= */

:root {
  --bg: #06080e;
  --bg-deep: #04050a;
  --surface: rgba(13, 17, 27, 0.6);
  --surface-solid: #0d111b;
  --surface-2: rgba(17, 23, 36, 0.5);
  --surface-hover: rgba(21, 28, 43, 0.8);
  --surface-elevated: rgba(26, 33, 48, 0.9);
  --glass: rgba(13, 17, 27, 0.45);
  --glass-strong: rgba(13, 17, 27, 0.7);

  --text: #f8fafc;
  --text-secondary: #d1d9e6;
  --muted: #8893a8;
  --muted-dim: #525c70;

  --accent: #5b8cff;
  --accent-2: #7ba0ff;
  --accent-3: #4366e6;
  --accent-soft: rgba(91, 140, 255, 0.1);
  --accent-glow: rgba(91, 140, 255, 0.3);
  --accent-bright: rgba(91, 140, 255, 0.5);

  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.08);

  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(91, 140, 255, 0.35);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 50px rgba(91, 140, 255, 0.12);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --container: 1240px;
  --nav-height: 70px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --font: "Cairo", system-ui, sans-serif;
}

/* =========================================
   LIGHT MODE
========================================= */

body.light {
  --bg: #eef1f8;
  --bg-deep: #e2e6f0;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #ffffff;
  --surface-2: rgba(247, 249, 253, 0.6);
  --surface-hover: rgba(241, 244, 250, 0.9);
  --surface-elevated: rgba(255, 255, 255, 0.95);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.8);

  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --muted-dim: #94a3b8;

  --accent: #4366e6;
  --accent-2: #5b8cff;
  --accent-3: #3451c4;
  --accent-soft: rgba(67, 102, 230, 0.07);
  --accent-glow: rgba(67, 102, 230, 0.18);
  --accent-bright: rgba(67, 102, 230, 0.3);

  --cyan: #0891b2;
  --cyan-soft: rgba(8, 145, 178, 0.06);

  --border: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.12);
  --border-accent: rgba(67, 102, 230, 0.3);

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 50px rgba(67, 102, 230, 0.06);
}

/* =========================================
   RESET
========================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; border: none; background: none; }
a, button { touch-action: manipulation; }
::selection { background: var(--accent); color: #fff; }

/* =========================================
   BACKGROUND LAYERS
========================================= */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(91, 140, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(34, 211, 238, 0.04), transparent),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(91, 140, 255, 0.05), transparent);
}

body.light .bg-mesh {
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(67, 102, 230, 0.06), transparent),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(8, 145, 178, 0.03), transparent),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(67, 102, 230, 0.04), transparent);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.6;
}

body.light .bg-grid { opacity: 0.4; }

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  animation-delay: 0s;
}

.bg-orb--2 {
  width: 350px;
  height: 350px;
  top: 30%;
  right: -80px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 65%);
  animation-delay: -7s;
}

.bg-orb--3 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -60px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.06), transparent 65%);
  animation-delay: -14s;
}

body.light .bg-orb { opacity: 0.2; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.light .bg-noise { opacity: 0.02; }

/* =========================================
   INSTALL BANNER
========================================= */

.install-banner {
  width: min(var(--container), calc(100% - 32px));
  margin: 18px auto 0;
  position: relative;
  z-index: 2;
}

.install-banner[hidden] {
  display: none;
}

.install-banner__content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.12), rgba(34, 211, 238, 0.06));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.install-banner__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(91, 140, 255, 0.28);
}

.install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.install-banner__text strong {
  font-size: 1.05rem;
  color: var(--text);
}

.install-banner__text span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.install-banner__button {
  border: 1px solid rgba(91, 140, 255, 0.35);
  background: rgba(91, 140, 255, 0.12);
  color: var(--text);
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.install-banner__button:hover,
.install-banner__button:focus-visible {
  transform: translateY(-1px);
  background: rgba(91, 140, 255, 0.18);
  border-color: rgba(91, 140, 255, 0.6);
}

.install-banner__button:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 640px) {
  .install-banner__content {
    flex-wrap: wrap;
    padding: 16px 16px;
  }

  .install-banner__button {
    width: 100%;
  }
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  width: min(var(--container), calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* =========================================
   LOGO
========================================= */

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  z-index: 2;
  transition: transform 0.3s var(--ease-out);
}

.logo:hover { transform: translateY(-1px); }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: box-shadow 0.3s ease, transform 0.4s var(--ease-spring);
}

.logo:hover .logo-mark {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

/* =========================================
   NAV PILL
========================================= */

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-pill a {
  position: relative;
  padding: 8px 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-full);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-pill a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

/* =========================================
   NAV ACTIONS
========================================= */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.theme-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.3s var(--ease-spring), border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.theme-button:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.theme-button:active { transform: scale(0.92); }

/* =========================================
   HERO
========================================= */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 60px 20px 80px;
}

.hero-inner {
  width: min(820px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HERO BADGE */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  margin-bottom: 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.badge-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-bright);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* HERO TITLE */

.hero h1 {
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 1.1;
  letter-spacing: -3px;
  font-weight: 800;
  margin-bottom: 0;
}

.hero h1 span {
  display: block;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* HERO DESCRIPTION */

.hero-description {
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
}

/* =========================================
   SEARCH
========================================= */

.search-wrapper {
  width: min(680px, 100%);
  min-width: 0;
  height: 62px;
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.3s var(--ease-out);
}

.search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow), var(--shadow-glow);
  transform: translateY(-3px);
}

.search-icon {
  flex-shrink: 0;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.search-wrapper:focus-within .search-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.search-wrapper input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}

.search-wrapper input::placeholder { color: var(--muted); }

.search-shortcut {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
}

/* =========================================
   HERO STATS
========================================= */

.hero-stats {
  margin-top: 36px;
  display: flex;
  gap: 14px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 110px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.stat-card strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================
   CONTENT
========================================= */

.content {
  padding: 0 20px 100px;
}

.content-inner {
  width: min(var(--container), 100%);
  margin: auto;
}

/* =========================================
   SECTION HEADER
========================================= */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.website-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

/* =========================================
   CATEGORIES
========================================= */

.categories {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar { height: 4px; }
.categories::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.category-filter {
  flex-shrink: 0;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s var(--ease-out);
}

.category-filter:hover {
  color: var(--text);
  border-color: var(--border-accent);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.category-filter.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.category-filter:active { transform: scale(0.95); }

/* =========================================
   GRID
========================================= */

.websites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* =========================================
   WEBSITE CARD
========================================= */

.website-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.website-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.website-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.website-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  background: var(--surface-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.website-card:hover::before { transform: scaleX(1); }
.website-card:hover::after { opacity: 1; }

/* =========================================
   CARD TOP
========================================= */

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px var(--accent-glow);
  letter-spacing: -1px;
  transition: transform 0.4s var(--ease-spring);
}

.website-card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
}

.card-category {
  padding: 6px 13px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--border);
}

/* =========================================
   CARD CONTENT
======================================== */

.card-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.card-content h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.website-card:hover .card-content h3 {
  color: var(--accent-2);
}

.card-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

/* =========================================
   CARD FOOTER
======================================== */

.card-footer {
  display: flex;
  gap: 9px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

/* =========================================
   VISIT BUTTON
======================================== */

.visit-button {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.visit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.visit-button > span { position: relative; z-index: 1; }

.visit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.visit-button:hover::before { opacity: 1; }
.visit-button:active { transform: scale(0.97); }

.visit-arrow { transition: transform 0.3s var(--ease-out); }
.visit-button:hover .visit-arrow { transform: translate(2px, -2px); }

/* =========================================
   COPY BUTTON
======================================== */

.copy-button {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}

.copy-button:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.copy-button:active { transform: scale(0.9); }

/* =========================================
   EMPTY STATE
======================================== */

.empty-state {
  display: none;
  padding: 80px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.empty-icon {
  margin-bottom: 18px;
  color: var(--accent);
  display: flex;
  justify-content: center;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
}

.empty-state p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.reset-button {
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.reset-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* =========================================
   FOOTER
======================================== */

footer {
  border-top: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: auto;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.footer-logo strong {
  font-size: 16px;
  font-weight: 800;
}

.footer-brand span {
  color: var(--muted);
  font-size: 12px;
}

.footer-meta {
  display: flex;
  gap: 16px;
}

.copyright {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* =========================================
   LOADER
======================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-deep);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

#loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.loader-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.loader-logo {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.loader-bar {
  width: min(280px, calc(100vw - 60px));
  height: 5px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.loader-progress {
  width: 0;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  animation: load 5s linear forwards;
}

#loader p {
  margin-top: 18px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  animation: textFade 1.5s ease-in-out infinite alternate;
}

@keyframes load { from { width: 0; } to { width: 100%; } }
@keyframes textFade { from { opacity: 0.35; } to { opacity: 1; } }

/* =========================================
   PAGE REVEAL
========================================= */

body.page-loading .hero,
body.page-loading .content,
body.page-loading footer { opacity: 0; }

body.page-loaded .hero,
body.page-loaded .content,
body.page-loaded footer { opacity: 1; }

body.page-loaded .hero { animation: heroReveal 1s var(--ease-out) forwards; }
body.page-loaded .hero-badge { animation: revealUp 0.8s 0.15s var(--ease-out) both; }
body.page-loaded .hero h1 { animation: revealUp 1s 0.25s var(--ease-out) both; }
body.page-loaded .hero-description { animation: revealUp 0.9s 0.4s var(--ease-out) both; }
body.page-loaded .search-wrapper { animation: searchReveal 1s 0.55s var(--ease-out) both; }
body.page-loaded .hero-stats { animation: revealUp 0.8s 0.7s var(--ease-out) both; }
body.page-loaded .content { animation: contentReveal 1s 0.35s var(--ease-out) forwards; }
body.page-loaded footer { animation: contentReveal 1s 0.55s var(--ease-out) forwards; }
body.page-loaded .website-card { animation: cardReveal 0.7s var(--ease-out) both; }
body.page-loaded .website-card:nth-child(1) { animation-delay: 0.45s; }
body.page-loaded .website-card:nth-child(2) { animation-delay: 0.50s; }
body.page-loaded .website-card:nth-child(3) { animation-delay: 0.55s; }
body.page-loaded .website-card:nth-child(4) { animation-delay: 0.60s; }
body.page-loaded .website-card:nth-child(5) { animation-delay: 0.65s; }
body.page-loaded .website-card:nth-child(6) { animation-delay: 0.70s; }
body.page-loaded .website-card:nth-child(7) { animation-delay: 0.75s; }
body.page-loaded .website-card:nth-child(8) { animation-delay: 0.80s; }
body.page-loaded .website-card:nth-child(9) { animation-delay: 0.85s; }
body.page-loaded .website-card:nth-child(10) { animation-delay: 0.90s; }
body.page-loaded .website-card:nth-child(11) { animation-delay: 0.95s; }
body.page-loaded .website-card:nth-child(12) { animation-delay: 1s; }

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(35px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes contentReveal {
  from { opacity: 0; transform: translateY(45px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes searchReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(35px) scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* =========================================
   RESPONSIVE — LARGE DESKTOP
========================================= */

@media (min-width: 1400px) {
  :root { --container: 1320px; }
  .websites { gap: 20px; }
  .website-card { padding: 26px; }
}

/* =========================================
   LAPTOP
========================================= */

@media (max-width: 1100px) {
  .websites { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .website-card { padding: 20px; }
  .card-content h3 { font-size: 20px; }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
  :root { --nav-height: 64px; }
  .nav-pill { display: none; }
  .hero { min-height: auto; padding: 50px 20px 60px; }
  .hero h1 { font-size: clamp(40px, 8vw, 60px); }
  .websites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-header h2 { font-size: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 700px) {
  .hero { padding: 40px 18px 50px; }
  .hero-description { font-size: 14px; }
  .content { padding: 0 18px 80px; }
  .section-header { align-items: center; }
  .websites { gap: 12px; }
  .hero-stats { gap: 10px; }
  .stat-card { padding: 14px 22px; min-width: 100px; }
  .stat-card strong { font-size: 20px; }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {
  :root { --nav-height: 62px; }
  .nav-container { width: calc(100% - 24px); }
  .logo-text { font-size: 20px; }
  .logo-mark { width: 34px; height: 34px; font-size: 17px; }
  .theme-button { width: 40px; height: 40px; }
  .hero { padding: 35px 16px 45px; }
  .hero-badge { padding: 6px 14px; font-size: 11px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); letter-spacing: -2px; }
  .hero-description { font-size: 13px; margin-top: 20px; }
  .search-wrapper { height: 56px; margin-top: 28px; border-radius: 15px; }
  .search-icon { width: 48px; }
  .search-wrapper input { font-size: 14px; }
  .search-shortcut { display: none; }
  .hero-stats { margin-top: 28px; }
  .stat-card { padding: 12px 20px; min-width: 90px; }
  .stat-card strong { font-size: 18px; }
  .stat-card span { font-size: 11px; }
  .content { padding: 0 16px 60px; }
  .section-header { margin-bottom: 22px; padding-bottom: 16px; }
  .section-header h2 { font-size: 22px; }
  .section-label { font-size: 10px; }
  .website-count { font-size: 11px; padding: 6px 12px; }
  .categories { gap: 7px; margin-bottom: 22px; }
  .category-filter { min-height: 38px; padding: 8px 15px; font-size: 12px; }
  .websites { grid-template-columns: 1fr; gap: 12px; }
  .website-card { padding: 18px; border-radius: 18px; }
  .card-top { margin-bottom: 18px; }
  .card-icon { width: 44px; height: 44px; font-size: 20px; }
  .card-content h3 { font-size: 19px; }
  .card-content p { font-size: 12px; }
  .card-footer { margin-top: 20px; }
  .visit-button { min-height: 44px; font-size: 12px; }
  .copy-button { width: 44px; height: 44px; }
  .empty-state { padding: 60px 18px; }
  .empty-state h3 { font-size: 18px; }
  .empty-state p { font-size: 12px; }
  .footer-inner { width: calc(100% - 24px); padding: 24px 0; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer-meta { flex-direction: column; gap: 6px; }
  .copyright { white-space: normal; }
  .loader-logo { font-size: 36px; }
  .loader-mark { width: 42px; height: 42px; font-size: 21px; }
}

/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {
  .hero h1 { font-size: 34px; letter-spacing: -1.5px; }
  .hero-description { font-size: 12px; }
  .search-wrapper { height: 52px; }
  .search-icon { width: 42px; }
  .website-card { padding: 16px; }
  .card-content h3 { font-size: 18px; }
  .card-content p { font-size: 11px; }
  .visit-button { min-height: 42px; }
  .copy-button { width: 42px; height: 42px; }
  .loader-logo { font-size: 32px; }
}

/* =========================================
   LANDSCAPE MOBILE
========================================= */

@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 40px 20px 40px; }
  .hero h1 { font-size: clamp(36px, 7vw, 50px); }
  .hero-description { margin-top: 16px; }
  .search-wrapper { margin-top: 24px; }
  .hero-stats { margin-top: 22px; }
}

/* =========================================
   TOUCH DEVICES
========================================= */

@media (hover: none) and (pointer: coarse) {
  .website-card:hover { transform: none; box-shadow: none; }
  .website-card:hover::before { transform: scaleX(0); }
  .website-card:hover::after { opacity: 0; }
  .website-card:hover .card-content h3 { color: var(--text); }
  .website-card:hover .card-icon { transform: none; }
  .theme-button:hover, .copy-button:hover, .visit-button:hover { transform: none; box-shadow: none; }
  .category-filter:hover { color: var(--muted); border-color: var(--border); background: var(--glass); transform: none; }
  .category-filter.active:hover { color: #fff; }
  .logo:hover { transform: none; }
  .logo:hover .logo-mark { transform: none; }
  .stat-card:hover { transform: none; }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.page-loading .hero, body.page-loading .content, body.page-loading footer { opacity: 1; transform: none; filter: none; }
  body.page-loaded .hero, body.page-loaded .hero-badge, body.page-loaded .hero h1,
  body.page-loaded .hero-description, body.page-loaded .search-wrapper,
  body.page-loaded .hero-stats, body.page-loaded .content, body.page-loaded footer,
  body.page-loaded .website-card { animation: none; opacity: 1; transform: none; filter: none; }
  .badge-dot { animation: none; }
  .bg-orb { animation: none; }
}
/* =========================================
   SOCIAL LINKS
========================================= */

.social-section {
  width: min(430px, calc(100% - 24px));
  margin: 0 auto 45px;
}

.social-heading {
  text-align: center;
  margin-bottom: 14px;
}

.social-heading-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
}

.social-heading h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

/* 3 CARDS */

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* CARD */

.social-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 12px;

  text-align: center;
  text-decoration: none;
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      var(--surface),
      rgba(255,255,255,0.025)
    );

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255,255,255,0.05);

  overflow: hidden;

  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* GLOW */

.social-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 50% 35%,
    var(--social-glow),
    transparent 62%
  );

  pointer-events: none;
}

/* HOVER */

.social-card:hover {
  transform: translateY(-4px);
}

/* WHATSAPP */

.social-card--whatsapp {
  --social-glow: rgba(37, 211, 102, 0.16);
}

.social-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow:
    0 14px 38px rgba(37,211,102,0.10);
}

/* FACEBOOK */

.social-card--facebook {
  --social-glow: rgba(24, 119, 242, 0.16);
}

.social-card--facebook:hover {
  border-color: rgba(24, 119, 242, 0.35);
  box-shadow:
    0 14px 38px rgba(24,119,242,0.10);
}

/* LINKTREE */

.social-card--linktree {
  --social-glow: rgba(255,255,255,0.10);
}

.social-card--linktree:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 14px 38px rgba(0,0,0,0.14);
}

/* ICON */

.social-card__icon {
  position: relative;
  z-index: 1;

  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  margin-bottom: 8px;

  border-radius: 13px;

  color: #fff;

  box-shadow:
    0 8px 18px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.18);

  transition:
    transform 0.35s var(--ease-spring);
}

.social-card:hover .social-card__icon {
  transform: scale(1.08);
}

.social-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.social-card__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
/* WHATSAPP ICON */

.social-card--whatsapp .social-card__icon {
  background: linear-gradient(
    145deg,
    #25d366,
    #128c7e
  );
}

/* FACEBOOK ICON */

.social-card--facebook .social-card__icon {
  background: linear-gradient(
    145deg,
    #1877f2,
    #0d47a1
  );
}

/* TITLE */

.social-card__title {
  position: relative;
  z-index: 1;

  display: block;

  color: var(--text);

  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

/* SUBTITLE */

.social-card__subtitle {
  position: relative;
  z-index: 1;

  margin-top: 3px;

  color: var(--muted);

  font-size: 8px;
  font-weight: 600;
}

/* ARROW */

.social-card__arrow {
  position: absolute;
  top: 8px;
  left: 8px;

  width: 23px;
  height: 23px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: var(--surface-2);

  color: var(--muted);
  font-size: 11px;

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.social-card:hover .social-card__arrow {
  transform: translate(-2px, -2px);
  color: var(--text);
}
.social-card--linktree .social-card__icon {
  background: linear-gradient(145deg, #06D6A0, #00A86B) !important;
}
 /* =========================================
    AUTH
 ========================================= */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  transition: 0.3s ease;
}

.login-button:hover {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-2px);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.auth-box {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-lg);
}

.auth-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 22px;
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 900;
}

.auth-header h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.auth-header p {
  color: var(--muted);
  font-size: 12px;
}

#authForm {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#authForm label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

#authForm input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
}

#authForm input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.auth-submit,
.google-button {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.auth-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.google-button {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

.auth-switch {
  display: block;
  margin: 16px auto 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.auth-status {
  margin-top: 12px;
  min-height: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 650px) {
  .login-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  .auth-box {
    padding: 22px;
  }
}
/* =========================================
   FULLSCREEN LOGIN GATE
========================================= */

#authModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(108, 140, 255, 0.12),
      transparent 40%
    ),
    rgba(5, 7, 15, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#authModal[hidden] {
  display: none;
}

#authModal .auth-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(108, 140, 255, 0.08),
      transparent 55%
    );
}

#authModal .auth-box {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  min-height: 520px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(108, 140, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#authModal .auth-close {
  display: none !important;
}

#authModal .auth-header {
  text-align: center;
  margin-bottom: 28px;
}

#authModal .auth-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-2)
    );
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  box-shadow:
    0 15px 40px rgba(108, 140, 255, 0.3);
}

#authModal .auth-header h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

#authModal .auth-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

#authModal .auth-submit {
  min-height: 52px;
  margin-top: 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
}

#authModal .auth-switch {
  margin-top: 18px;
  text-align: center;
}

#authModal .auth-status {
  min-height: 20px;
  margin-top: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  #authModal {
    padding: 14px;
  }

  #authModal .auth-box {
    width: 100%;
    min-height: auto;
    padding: 28px 20px;
    border-radius: 24px;
  }

  #authModal .auth-header h2 {
    font-size: 25px;
  }

  #authModal .auth-icon {
    width: 68px;
    height: 68px;
    border-radius: 19px;
  }
}
/* =========================================
   ACCOUNT PROFILE
========================================= */

.account-box {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-lg);
  color: var(--text);

  /* إخفاء شريط التمرير مع بقاء التمرير شغال */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.account-box::-webkit-scrollbar {
  display: none;
}

.account-header {
  text-align: center;
  margin-bottom: 20px;
}

.account-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-2)
  );
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.account-avatar:hover {
  transform: scale(1.04);
  border-color: var(--accent);
}

.account-avatar span {
  position: relative;
  z-index: 1;
}

.account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-change-button {
  display: block;
  margin: 0 auto 16px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.account-header h2 {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 900;
}

.account-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form label {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.profile-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  box-sizing: border-box;
}

.profile-form input::placeholder {
  color: var(--muted);
}

.profile-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.account-logout-button {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: 12px;
  background: rgba(255, 80, 80, 0.07);
  color: #ff6b6b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.account-logout-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 80, 80, 0.35);
}

@media (max-width: 650px) {
  .account-box {
    width: min(100%, calc(100% - 24px));
    padding: 20px;
  }

  .account-avatar {
    width: 84px;
    height: 84px;
    font-size: 30px;
  }
}
 css
#authModal .auth-icon {
  width: auto;
  min-width: 150px;
  height: 78px;
  padding: 0 24px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 22px;

  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-2)
  );

  color: #fff;
  font-family: var(--font);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;

  border: 1px solid rgba(255, 255, 255, 0.1);

  box-shadow:
    0 15px 40px rgba(108, 140, 255, 0.3),
    0 0 30px rgba(91, 140, 255, 0.12);

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.18);
}
 css
/* =========================================
   AUTH LOGO — MOBILE
========================================= */

@media (max-width: 600px) {
  #authModal .auth-icon {
    width: auto;
    min-width: 130px;
    height: 68px;
    padding: 0 18px;

    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;

    border-radius: 19px;
  }
}

  .welcome-start-button {
    width: 100%;
  }
}
