/**
 * dgvt.in — Aurora Deep Design System (v2.0.0)
 * =====================================================
 * ZERO hardcoded colours in this file.
 * All visual tokens come from theme.php via :root CSS vars.
 * =====================================================
 * Architecture:
 *  1. Keyframe Animations
 *  2. Base & Reset
 *  3. Body & Background
 *  4. Layout Container
 *  5. Navbar
 *  6. Buttons
 *  7. Hero Section & Shortener
 *  8. Feature / Why Cards
 *  9. Pricing
 * 10. Footer
 * 11. Flash Alerts
 * 12. Forms & Inputs
 * 13. Modals
 * 14. Utilities & Status Pills
 * 15. Mobile Responsive
 */

/* ============================================================
 * 1. KEYFRAME ANIMATIONS
 * ============================================================ */

@keyframes orbFloat1 {
  0%,  100% { transform: translate(0, 0) scale(1); }
  33%        { transform: translate(40px, -30px) scale(1.09); }
  66%        { transform: translate(-25px, 35px) scale(0.94); }
}

@keyframes orbFloat2 {
  0%,  100% { transform: translate(0, 0) scale(1); }
  33%        { transform: translate(-45px, 25px) scale(1.07); }
  66%        { transform: translate(30px, -40px) scale(0.96); }
}

@keyframes orbFloat3 {
  0%,  100% { transform: translate(0, 0) scale(1); }
  50%        { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes gradientFlow {
  0%,  100% { background-position: 0%   50%; }
  50%        { background-position: 100% 50%; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes resultSlide {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes borderGlow {
  0%,  100% { border-color: var(--accent-primary);   box-shadow: var(--shadow-glow-primary); }
  50%        { border-color: var(--accent-secondary); box-shadow: var(--shadow-glow-secondary); }
}

@keyframes navbarSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-primary-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}

/* ============================================================
 * 2. BASE & RESET
 * ============================================================ */

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

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

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ============================================================
 * 3. BODY & BACKGROUND
 * ============================================================ */

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated ambient background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 15%, var(--orb-1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 80%, var(--orb-2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 40%, var(--orb-3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat1 20s ease-in-out infinite;
}

/* Global page content sits above the ambient layer */
body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary-light);
}

/* ============================================================
 * 4. LAYOUT CONTAINER
 * ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ============================================================
 * 5. NAVBAR
 * ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  background: var(--bg-glass);
  animation: navbarSlideDown 0.5s var(--transition-slow) both;
}

/* Gradient underline border */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-navbar-line);
  opacity: 0.8;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img,
.brand-logo svg {
  height: 36px;
  width: auto;
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass-border);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 10%;
  right: 10%;
}

/* Nav action buttons area */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Mobile hamburger button */
.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass-border);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: var(--bg-glass-border-hover);
  border-color: var(--accent-primary);
}

@media (min-width: 900px) {
  .mobile-nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--bg-glass-border);
}

.mobile-nav-drawer.active {
  display: flex;
  animation: fadeInDown 0.25s var(--transition-slow) both;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
}

/* ============================================================
 * 6. BUTTONS
 * ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

/* Shimmer sweep on btn-primary hover */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-shimmer);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::before {
  opacity: 1;
  animation: shimmer 0.7s ease forwards;
}

.btn-primary {
  background: var(--gradient-button-primary);
  background-size: 200% 200%;
  color: var(--text-on-primary) !important;
  box-shadow: var(--shadow-glow-primary), var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--gradient-button-primary-hover);
  background-size: 200% 200%;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-primary-lg), var(--shadow-md);
  color: var(--text-on-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-glass-border);
  color: var(--text-primary);
  border-color: var(--bg-glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-glass-border-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--bg-glass-border-hover);
}

.btn-outline:hover {
  background: var(--bg-glass-border);
  border-color: var(--accent-primary);
  color: var(--accent-primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass-border);
}

.btn-danger {
  background: var(--accent-rose-glow);
  color: var(--accent-rose);
  border-color: var(--accent-rose);
}

.btn-danger:hover {
  background: var(--accent-rose);
  color: var(--text-on-primary);
}

.btn-sm {
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  min-height: 36px;
  border-radius: var(--radius-sm);
  gap: 0.35rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  min-height: 54px;
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
 * 7. HERO SECTION & URL SHORTENER
 * ============================================================ */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated foreground orbs specific to hero */
.hero::before {
  content: '';
  position: absolute;
  top: -35%;
  left: -18%;
  width: 68vw;
  height: 68vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--orb-1) 0%, transparent 65%);
  animation: orbFloat1 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -22%;
  right: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 680px;
  max-height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--orb-2) 0%, transparent 65%);
  animation: orbFloat2 26s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero top radial highlight */
.hero-radial {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-radial);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero { padding: 5.5rem 0 4rem; }
}

/* Launch badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: var(--gradient-hero-badge);
  border: 1px solid var(--bg-glass-border-active);
  border-radius: var(--radius-full);
  color: var(--accent-primary-light);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.6s 0.1s var(--transition-slow) both;
  box-shadow: var(--shadow-glow-primary), 0 0 0 1px var(--accent-primary-glow);
}

/* Animated pulse dot inside badge */
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary-light);
  animation: pulseDot 2s ease-in-out infinite;
  display: inline-block;
}

/* Main headline */
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s 0.2s var(--transition-slow) both;
}

@media (min-width: 480px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 4.2rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.8rem; } }

/* Animated gradient text */
.gradient-text {
  background: var(--gradient-brand-wide);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease-in-out infinite;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s 0.3s var(--transition-slow) both;
}

@media (min-width: 768px) { .hero-subtitle { font-size: 1.2rem; } }

/* Shortener Card */
.shortener-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: left;
  box-shadow: var(--shadow-xl), var(--shadow-inner-top);
  animation: scaleIn 0.55s 0.35s var(--transition-slow) both;
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient border on shortener card */
.shortener-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gradient-navbar-line);
  opacity: 0.7;
}

@media (min-width: 768px) { .shortener-card { padding: 2.5rem; } }

.shortener-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 600px) { .shortener-input-group { flex-direction: row; } }

.shortener-input {
  flex: 1;
  background: var(--bg-surface-2);
  border: 1.5px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.3rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 54px;
  transition: all var(--transition-normal);
}

.shortener-input::placeholder {
  color: var(--text-muted);
}

.shortener-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-surface-2);
  box-shadow: 0 0 0 4px var(--accent-primary-glow);
}

/* Guest notice row */
.guest-notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Result Success Box */
.shortener-result {
  display: none;
  margin-top: 1.75rem;
  background: var(--accent-primary-glow);
  border: 1px solid var(--bg-glass-border-active);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  animation: resultSlide 0.35s var(--transition-slow) both;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  background: var(--accent-emerald-glow);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-full);
  color: var(--accent-emerald);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.result-url-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  flex-wrap: wrap;
}

.result-url-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary-light);
  word-break: break-all;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Recent guest links */
.guest-recent-section {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  text-align: left;
  animation: fadeInUp 0.5s var(--transition-slow) both;
}

.guest-recent-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  transition: border-color var(--transition-fast);
}

.guest-recent-card:hover {
  border-color: var(--bg-glass-border-hover);
}

/* Platform stats row */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  animation: fadeInUp 0.6s 0.5s var(--transition-slow) both;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-top: 0.3rem;
}

/* ============================================================
 * 8. WHY / FEATURE GRID & CARDS
 * ============================================================ */

.section {
  padding: 5rem 0;
}

@media (min-width: 768px) { .section { padding: 7rem 0; } }

.section-alt {
  background: var(--gradient-surface);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.section-header {
  text-align: center;
  margin-bottom: 3.75rem;
  animation: fadeInUp 0.5s var(--transition-slow) both;
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary-light);
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.9rem;
  background: var(--accent-primary-glow);
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-glass-border-active);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

@media (min-width: 768px) { .section-title { font-size: 3rem; } }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s var(--transition-slow) both;
}

/* Shimmer sweep on hover */
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-shimmer);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.why-card:hover::after {
  opacity: 1;
  animation: shimmer 0.6s ease forwards;
}

.why-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: var(--bg-glass-border-active);
  background: var(--gradient-card-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-primary-glow);
  border: 1px solid var(--bg-glass-border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.35rem;
  transition: all var(--transition-normal);
}

.why-card:hover .why-icon {
  background: var(--gradient-hero-badge);
  transform: scale(1.1) rotate(-3deg);
}

.why-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.why-card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
}

/* ============================================================
 * 9. PRICING SECTION
 * ============================================================ */

.pricing-grid-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid-dual { grid-template-columns: 1fr 1fr; }
}

.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  overflow: hidden;
  animation: fadeInUp 0.55s var(--transition-slow) both;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Featured/Pro card */
.pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow-primary), var(--shadow-lg);
  animation: borderGlow 4s ease-in-out infinite, fadeInUp 0.55s 0.1s var(--transition-slow) both;
}

/* Shimmer sweep on featured card */
.pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-shimmer);
  background-size: 300% 100%;
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

.pricing-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-button-primary);
  color: var(--text-on-primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.28rem 1.1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-glow-primary);
}

.pricing-price {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 1rem 0 0.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-feature-item.active {
  color: var(--text-primary);
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.cross-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================================
 * 10. FOOTER
 * ============================================================ */

.footer {
  margin-top: auto;
  background: var(--bg-base-alt);
  border-top: 1px solid var(--bg-glass-border);
  padding: 3.5rem 0 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-navbar-line);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h4 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--accent-primary-light);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-glass-border);
  font-size: 0.82rem;
}

@media (min-width: 600px) {
  .footer-bottom { flex-direction: row; }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom-links a:hover {
  color: var(--accent-primary-light);
}

/* ============================================================
 * 11. FLASH ALERTS
 * ============================================================ */

.flash-container {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
  animation: fadeInDown 0.3s var(--transition-slow) both;
}

.flash-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  backdrop-filter: blur(12px);
  font-weight: 500;
}

.flash-success {
  background: var(--accent-emerald-glow);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

.flash-error {
  background: var(--accent-rose-glow);
  border: 1px solid var(--accent-rose);
  color: var(--accent-rose);
}

.flash-warning {
  background: var(--accent-amber-glow);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
}

.flash-info {
  background: var(--accent-primary-glow);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary-light);
}

.flash-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.flash-close:hover { opacity: 1; }

/* ============================================================
 * 12. FORMS & INPUTS
 * ============================================================ */

.form-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 480px;
  margin: 2.75rem auto;
  box-shadow: var(--shadow-xl), var(--shadow-inner-top);
  animation: scaleIn 0.4s var(--transition-slow) both;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gradient-navbar-line);
  opacity: 0.6;
}

@media (min-width: 600px) { .form-card { padding: 2.75rem; } }

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  background: var(--bg-surface-2);
  border: 1.5px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  min-height: 46px;
  transition: all var(--transition-normal);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
  background: var(--bg-surface-2);
}

.form-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* ============================================================
 * 13. MODALS
 * ============================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInUp 0.25s var(--transition-slow) both;
}

.modal-content {
  background: var(--bg-glass-strong);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
  position: relative;
  animation: scaleIn 0.3s var(--transition-slow) both;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-glass-border);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-rose-glow);
  color: var(--accent-rose);
}

/* ============================================================
 * 14. UTILITIES & STATUS PILLS
 * ============================================================ */

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-active {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-dim);
}

.status-expired {
  background: var(--accent-rose-glow);
  color: var(--accent-rose);
  border: 1px solid var(--accent-rose);
}

.status-paused {
  background: var(--accent-amber-glow);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
}

.status-banned {
  background: var(--bg-glass-border);
  color: var(--text-muted);
  border: 1px solid var(--bg-glass-border-hover);
}

/* Pulse dot for live indicators */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2s ease-in-out infinite;
  display: inline-block;
}

/* Code / mono tag */
code, .code-inline {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-surface-3);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xs);
  padding: 0.1em 0.45em;
  color: var(--accent-cyan);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--gradient-navbar-line);
  border: none;
  opacity: 0.4;
  margin: 1.5rem 0;
}

/* Spinner for loading states */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--bg-glass-border-hover);
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

/* ============================================================
 * 15. MOBILE RESPONSIVE
 * ============================================================ */

/* Very small phones (≤400px) */
@media (max-width: 400px) {
  .nav-actions { gap: 0.4rem; }

  .shortener-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
  }

  .shortener-input {
    font-size: 0.93rem;
    padding: 0.8rem 1rem;
  }
}

/* Small phones (≤500px) */
@media (max-width: 500px) {
  .result-url-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-url-text { font-size: 0.93rem; width: 100%; }
}

/* Mid-size phones (≤520px) */
@media (max-width: 520px) {
  .guest-recent-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats { gap: 1.75rem; }
}

/* Phones (≤480px) */
@media (max-width: 480px) {
  .section-title { font-size: 2rem; }
  .section       { padding: 4rem 0; }

  .pricing-card       { padding: 2rem 1.5rem; }
  .pricing-price      { font-size: 2.6rem; }

  .footer      { padding: 2.5rem 0 1.5rem; }
  .footer-grid { gap: 1.75rem; }
}

/* Install form grids (≤550px) */
@media (max-width: 550px) {
  .install-db-host-grid,
  .install-creds-grid,
  .install-admin-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =======================================================
 * EDITORIAL / PLAYFUL SAAS REDESIGN (v1.4.4)
 * ======================================================= */

/* Body & Typography Updates */
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
}

.navbar {
  background: var(--bg-surface) !important;
  border-bottom: 2px solid var(--text-primary) !important;
  box-shadow: none !important;
}

.brand-section {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.brand-tagline {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--accent-primary);
  transform: rotate(-2deg);
  margin-top: 0.25rem;
}

/* Hero Split Layout */
.hero-split {
  padding: 4rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}
.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-blobs::before,
.hero-bg-blobs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-bg-blobs::before {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-amber), transparent);
}
.hero-bg-blobs::after {
  bottom: -150px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-rose), transparent);
}
.hero-split-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.editorial-title {
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin-bottom: 1.5rem;
}
.stagger-1 { margin-left: 0; }
.stagger-2 { margin-left: 2rem; }
.stagger-3 { margin-left: 4rem; }
.hand-drawn-underline {
  position: relative;
  display: inline-block;
}
.hand-drawn-underline::after {
  content: '';
  position: absolute;
  bottom: -0.1em;
  left: -5%;
  width: 110%;
  height: 0.3em;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 10" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 5 Q 50 10 100 5" stroke="%23FF5A5F" stroke-width="4" fill="none" stroke-linecap="round"/></svg>') no-repeat center;
  background-size: 100% 100%;
}
.hand-drawn-underline-small {
  width: 120px;
  height: 8px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 10" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 5 Q 50 10 100 5" stroke="%23FF5A5F" stroke-width="6" fill="none" stroke-linecap="round"/></svg>') no-repeat center;
  background-size: 100% 100%;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.feature-indicators-horizontal {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.feature-indicators-horizontal li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-bg-red { background: #FFE0E0; color: #FF5A5F; }
.icon-bg-green { background: #E0F4EA; color: #00B37E; }
.icon-bg-purple { background: #E8E2FA; color: #6C5CE7; }

.feature-text {
  display: flex;
  flex-direction: column;
}
.feature-title { font-weight: 700; font-size: 0.9rem; }
.feature-desc { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }

.paper-plane-container {
  position: relative;
  width: 350px;
  height: 80px;
  margin-top: 1rem;
}
.paper-plane-svg {
  position: absolute;
  right: 20px;
  top: -20px;
  width: 48px;
  height: 48px;
  transform: rotate(15deg);
}
.dotted-path { width: 100%; height: 100%; }

/* Editorial Card & Pill Input */
.hero-card-wrapper {
  position: relative;
}
.card-tooltip {
  position: absolute;
  top: -30px;
  left: 40px;
  background: var(--text-primary);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
  letter-spacing: 0.05em;
}
.card-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--text-primary) transparent transparent transparent;
}
.card-editorial {
  background: var(--bg-surface);
  border: 2px solid var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: 16px 16px 0px rgba(12, 24, 56, 1);
}

.input-pill-group {
  display: flex;
  align-items: center;
  border: 2px solid var(--text-primary);
  border-radius: 99px;
  padding: 0.35rem;
  background: var(--bg-surface);
  transition: all 0.2s;
  margin-bottom: 2.5rem;
}
.input-pill-group:focus-within {
  border-color: var(--text-primary);
  background: var(--bg-surface);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.link-icon {
  margin-left: 1rem;
  color: var(--text-secondary);
}
.pill-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}
.pill-input:focus {
  outline: none;
}
.btn-coral {
  background: var(--accent-primary);
  color: white;
  border: 2px solid var(--text-primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--text-primary);
  transition: all 0.1s;
  display: inline-block;
  text-align: center;
}
.btn-coral:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--text-primary);
  color: white;
}
.btn-coral:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--text-primary);
}
.pill-button {
  border-radius: 99px !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1.1rem !important;
  white-space: nowrap;
}

.config-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}
.config-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.config-text {
  display: flex;
  flex-direction: column;
}
.config-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.config-select, .config-input {
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0;
  outline: none;
  cursor: pointer;
  border-bottom: 1px dashed var(--text-muted);
}
.config-divider {
  width: 1px;
  height: 30px;
  background: var(--text-muted);
  opacity: 0.5;
}
.hand-annotation-row {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
  transform: rotate(-5deg);
}
.hand-arrow {
  position: absolute;
  left: -25px;
  top: 15px;
}

/* Stats Section */
.stats-section {
  padding: 2rem 0;
}
.stats-unified-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 40px rgba(12, 24, 56, 0.05);
  border: 1px solid rgba(12, 24, 56, 0.1);
  position: relative;
  overflow: hidden;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  opacity: 0.3;
  z-index: 2;
}
.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-bg-lavender { background: #F0E6FF; color: #6C5CE7; }
.stat-bg-mint { background: #E0F4EA; color: #00B37E; }
.stat-bg-yellow { background: #FFF3CD; color: #F39C12; }
.stat-bg-orange { background: #FFE5E0; color: #E74C3C; }

.stat-content {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}
.stat-illustration {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 100px;
  z-index: 1;
}

/* Recent Links */
.recent-links-section {
  padding: 4rem 0 8rem 0;
}
.view-all-link {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
}
.view-all-link:hover { text-decoration: underline; }

.recent-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.recent-link-row {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(12,24,56,0.05);
}
.row-icon-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 2;
}
.link-circle-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-soft-coral { background: #FFE0E0; }
.bg-soft-mint { background: #E0F4EA; }
.bg-soft-yellow { background: #FFF3CD; }

.link-meta {
  display: flex;
  flex-direction: column;
}
.link-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
}
.link-original {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.row-short-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1.5;
}
.short-pill {
  background: #F4F0FF;
  padding: 0.5rem 1rem;
  border-radius: 99px;
}
.short-text {
  color: #6C5CE7;
  font-weight: 700;
  font-size: 0.9rem;
}

.row-status {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.row-stats {
  flex: 0.5;
  text-align: center;
}
.stat-count {
  font-weight: 800;
  font-size: 1.1rem;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
}

.row-actions {
  flex: 0.5;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.btn-icon-soft {
  background: transparent;
  border: 1px solid rgba(12,24,56,0.1);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon-soft:hover {
  background: var(--bg-base-alt);
  color: var(--text-primary);
}

/* Mobile Resets */
@media (max-width: 1024px) {
  .hero-split-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .editorial-title { font-size: 4rem; }
  .stats-unified-card {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .stat-divider { width: 100%; height: 1px; }
  .recent-link-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .row-short-group, .row-status, .row-stats, .row-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
