/* ==========================================================
   Nexaa Design System
   Aesthetic: Clean, Elegant, Refined Dark Matte (Zero AI Neon)
   Inspired by High-End Studio Craft (Linear / Raycast / Stripe)
   ========================================================== */

:root {
  /* Neutral Color Palette (Quiet, Luxurious, High Legibility) */
  --bg-deep: #0a0b10;
  --bg-subtle: #0e1017;
  --card-bg: #12151f;
  --card-bg-elevated: #171b26;
  --card-border: #1e2230;
  --card-border-hover: #2b3245;

  --input-bg: #0c0e14;
  --input-border: #202534;
  --input-focus-border: #475569;

  --text-main: #f1f3f7;
  --text-secondary: #8e97a8;
  --text-muted: #576073;

  --btn-primary-bg: #f3f5f9;
  --btn-primary-text: #090a0f;
  --btn-primary-hover: #e2e5ec;

  --btn-secondary-bg: #171b26;
  --btn-secondary-border: #262c3e;
  --btn-secondary-text: #d5dae5;
  --btn-secondary-hover: #1f2535;

  --success-color: #34d399;
  --success-bg: rgba(52, 211, 153, 0.08);
  --success-border: rgba(52, 211, 153, 0.2);

  --danger-color: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);
  --danger-border: rgba(248, 113, 113, 0.2);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Page Background Atmosphere (Subtle, never garish) */
.bg-vignette {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 41, 59, 0.35), transparent),
    radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.4), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================
   Preloader / Loading Screen
   ========================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background-color: #08090d;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 280px;
}

.brand-monogram-box {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #181b26, #10121a);
  border: 1px solid #282f42;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  position: relative;
}

.monogram-letter {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
}

.preloader-wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.35em;
  margin-bottom: 8px;
}

.preloader-status-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  height: 18px;
}

.preloader-track {
  width: 100%;
  height: 2px;
  background-color: #1a1e2b;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: #cbd5e1;
  border-radius: var(--radius-pill);
  transition: width 0.15s ease-out;
}

.preloader-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ==========================================================
   App Shell & Navigation
   ========================================================== */
.app-shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: #181c28;
  border: 1px solid #262c3e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.brand-text-group {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-tld {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success-color);
  border-radius: 50%;
  display: inline-block;
}

.status-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link-btn {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================
   Main Content Layout
   ========================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 80px 20px;
}

.content-container {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-badge i {
  font-size: 10px;
  color: #64748b;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-title-sub {
  color: #94a3b8;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
}

.hero-subtitle strong {
  color: #cbd5e1;
}

/* ==========================================================
   Shortener Card Form
   ========================================================== */
.shortener-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-text-action {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.btn-text-action:hover {
  color: #ffffff;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.styled-input {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  padding: 14px 44px 14px 44px;
  outline: none;
  transition: all 0.2s ease;
}

.styled-input::placeholder {
  color: #475569;
}

.styled-input:focus {
  border-color: var(--input-focus-border);
  background-color: #0f121a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}

.btn-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* Custom Slug Accordion */
.custom-slug-section {
  background: #0d1017;
  border: 1px solid #1a1e2b;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.custom-slug-section:hover {
  border-color: #262c3e;
}

.custom-slug-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.custom-slug-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
}

.toggle-icon {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

.custom-slug-body {
  display: none;
  padding: 4px 16px 16px 16px;
  border-top: 1px solid #161924;
}

.custom-slug-body.open {
  display: block;
}

.custom-slug-help {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 10px 0;
}

.slug-input-group {
  display: flex;
  align-items: center;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.slug-input-group:focus-within {
  border-color: var(--input-focus-border);
}

.domain-prefix {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #131622;
  padding: 11px 14px;
  border-right: 1px solid var(--input-border);
  user-select: none;
}

.slug-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}

.slug-input::placeholder {
  color: #3b4559;
}

.slug-hint {
  display: block;
  font-size: 11px;
  color: #4b5568;
  margin-top: 6px;
}

/* Submit Button (Crisp White contrast without neon) */
.form-actions {
  margin-top: 4px;
}

.btn-primary {
  width: 100%;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-1px);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error Banner */
.error-banner {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-color);
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease-out;
}

/* ==========================================================
   Result Card
   ========================================================= */
.result-container {
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card {
  background: #0f121a;
  border: 1px solid #232a3d;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-badge-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--success-color);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.result-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

.result-link-display {
  background: #090a0f;
  border: 1px solid #1c202e;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.link-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.short-url-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
  margin-bottom: 4px;
}

.original-url-text {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-actions-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}

.btn-action-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-action-primary:hover {
  background-color: var(--btn-primary-hover);
}

.btn-action-secondary {
  background-color: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-action-secondary:hover {
  background-color: var(--btn-secondary-hover);
  color: #ffffff;
  border-color: #3b445c;
}

/* ==========================================================
   Recent Links Section & Table
   ========================================================== */
.recent-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.badge-count {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: #161a26;
  border: 1px solid #252b3d;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.btn-icon-refresh {
  background: none;
  border: 1px solid #1e2434;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s ease;
}

.btn-icon-refresh:hover {
  color: var(--text-main);
  border-color: #333d56;
}

.links-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-row-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.15s ease;
}

.link-row-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-elevated);
}

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

.link-short-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-short-text {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.link-short-text:hover {
  color: #93c5fd;
}

.link-clicks-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: #11141d;
  border: 1px solid #1f2537;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.link-dest-text {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-row-action {
  background: #151824;
  border: 1px solid #23293c;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s ease;
}

.btn-row-action:hover {
  background: #202638;
  color: #ffffff;
  border-color: #3b445e;
}

.btn-row-action.delete:hover {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-color);
}

/* Empty State */
.empty-state {
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-icon {
  width: 44px;
  height: 44px;
  background: #151824;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.empty-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 360px;
}

/* ==========================================================
   QR Code Modal
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-box {
  background: #11141c;
  border: 1px solid #232838;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.btn-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.qr-preview-area {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-canvas {
  width: 200px !important;
  height: 200px !important;
  display: block;
}

.qr-target-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 20px;
  word-break: break-all;
  text-align: center;
}

.modal-footer {
  width: 100%;
}

.btn-download-qr {
  width: 100%;
  background: #1c2130;
  border: 1px solid #2f374e;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-download-qr:hover {
  background: #252c40;
  border-color: #404b68;
}

/* ==========================================================
   Toast Notification
   ========================================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #141722;
  border: 1px solid #252b3d;
  color: #f1f3f7;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  animation: toastRise 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast i {
  color: var(--success-color);
}

@keyframes toastRise {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================
   Footer
   ========================================================== */
.app-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(10, 11, 16, 0.5);
  margin-top: auto;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #8e97a8;
}

.footer-sep {
  color: #2c3244;
}

.author-highlight {
  color: #cbd5e1;
  font-weight: 600;
}

/* Animations & Helpers */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }
  .shortener-card {
    padding: 20px 16px;
  }
  .result-actions-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .link-row-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .link-row-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
