/* 
 * enginebrowsely.lat Design System
 * Modern Mediterranean Glassmorphism & Cozy URL Shortener Layout
 */

:root {
  --base-bg: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(2, 132, 199, 0.15);
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #f59e0b;
  --secondary-hover: #d97706;
  --structure: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(2, 132, 199, 0.08), 0 4px 6px -2px rgba(2, 132, 199, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(2, 132, 199, 0.1), 0 10px 10px -5px rgba(2, 132, 199, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--base-bg);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Helper Classes */
h1, h2, h3, h4 {
  color: var(--structure);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  line-height: 1.625;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-panel:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Header & Slim Premium Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(2, 132, 199, 0.08);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  min-height: 54px;
  box-shadow: 0 2px 8px -3px rgba(15, 23, 42, 0.05);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--structure);
}

.logo-link span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 50px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(2, 132, 199, 0.06);
}

.cta-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 7px 15px !important;
  border-radius: 50px !important;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
  font-weight: 700 !important;
}

.cta-btn:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(2, 132, 199, 0.35);
}

/* Hamburger Menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--structure);
  margin: 4px 0;
  transition: var(--transition);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 54px;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-150%);
  transition: transform 0.4s ease-in-out;
  z-index: 99;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav a:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary);
}

/* Global Content Layout Layout wrappers */
main {
  flex: 1;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 60px 24px 80px;
  text-align: center;
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.05) 0%, rgba(245, 158, 11, 0.03) 90%);
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(245, 158, 11, 0.02) 70%);
  filter: blur(80px);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--structure), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Secondary Button style */
.btn-secondary {
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.3);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(2, 132, 199, 0.4);
}

/* Custom UI Mockup & Screenshots representation */
.browser-mockup {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: 24px auto;
  max-width: 750px;
}

.browser-header {
  background: #f1f5f9;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.browser-bar {
  flex: 1;
  background: var(--white);
  height: 24px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.browser-content {
  padding: 24px;
  min-height: 200px;
  background: var(--base-bg);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Feature grid and generic layouts */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.feature-col-card {
  padding: 32px 24px;
  text-align: center;
}

.feature-col-card svg {
  margin-bottom: 16px;
}

.feature-col-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Reviews Panel */
.reviews-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--base-bg) 0%, rgba(2, 132, 199, 0.03) 100%);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.review-card {
  padding: 24px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.review-meta h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.review-meta span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Form Styles */
.form-card {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--structure);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 999;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  transform: translateY(200px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-accept:hover {
  background: var(--primary-hover);
}

.cookie-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.cookie-decline:hover {
  background: rgba(2, 132, 199, 0.05);
}

/* Custom UI Alert Notification popup system */
.custom-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.custom-toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 280px;
  max-width: 400px;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  max-width: 500px;
  width: 90%;
  padding: 32px;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-close:hover {
  color: var(--primary);
}

/* Legal Page Layout style */
.legal-page {
  padding: 60px 24px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.legal-date {
  background: rgba(245, 158, 11, 0.1);
  color: var(--secondary-hover);
  font-weight: bold;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Success Modal Notification */
.success-msg {
  text-align: center;
  padding: 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

/* Footer Section */
footer {
  background: var(--structure);
  color: #94a3b8;
  padding: 64px 24px 32px;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #94a3b8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-links-title {
  color: var(--white);
  font-weight: bold;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-contact strong {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Animations helpers */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

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

/* Interactive URL Shortener Styles */
.shortener-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  padding: 32px;
  width: 100%;
}

.shortener-form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.input-wrap label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.input-with-icon input:focus,
.input-with-icon select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.input-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.shortener-btn {
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

/* Shortener Dashboard */
.shortener-dashboard {
  margin-top: 32px;
  border-top: 1px solid rgba(2, 132, 199, 0.1);
  padding-top: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.local-badge-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.shortlinks-scroll-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar */
.shortlinks-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.shortlinks-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.shortlinks-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.15);
  border-radius: 3px;
}

/* Shortlink Row Card */
.shortlink-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid rgba(2, 132, 199, 0.08);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: left;
}

.shortlink-card:hover {
  background: var(--white);
  border-color: rgba(2, 132, 199, 0.2);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.link-info-col {
  flex: 1;
  min-width: 0;
  margin-right: 16px;
}

.shortlink-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.shortlink-anchor {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.shortlink-anchor:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.longlink-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

.badge-tag.personal { background: rgba(236, 72, 153, 0.08); color: #ec4899; }
.badge-tag.academic { background: rgba(147, 51, 234, 0.08); color: #9333ea; }
.badge-tag.recipe { background: rgba(245, 158, 11, 0.08); color: #d97706; }
.badge-tag.design { background: rgba(16, 185, 129, 0.08); color: #10b981; }
.badge-tag.sorter { background: rgba(2, 132, 199, 0.08); color: #0284c7; }

.link-actions-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn-pill {
  background: var(--white);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.action-btn-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(2, 132, 199, 0.04);
}

.action-btn-pill.btn-delete:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

.clicks-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 10px;
}

/* Redirection Portal Style */
.redirection-portal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  color: #f1f5f9;
}

.redirection-card {
  max-width: 500px;
  width: 100%;
  padding: 40px;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.redirection-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.redirection-header h2 {
  color: var(--white) !important;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.redirect-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.url-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: monospace;
  color: #38bdf8;
  word-break: break-all;
  margin-bottom: 24px;
  max-height: 70px;
  overflow-y: auto;
}

.circular-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.spinner {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(56, 189, 248, 0.1);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: rotateSpinner 1.2s linear infinite;
}

.countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}

.redirect-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 16px;
}

.redirection-footer {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 0.8rem;
  color: #64748b;
}

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

/* QR Code overlay */
.qr-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.qr-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal-card {
  max-width: 320px;
  width: 90%;
  padding: 24px;
  text-align: center;
  background: var(--white);
}

.qr-image-wrap {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid var(--glass-border);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.qr-image-wrap img {
  display: block;
  width: 160px;
  height: 160px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-section {
    padding: 40px 16px 60px;
  }
  .section-title {
    font-size: 1.85rem;
  }
  header {
    padding: 6px 16px;
    min-height: 48px;
  }
  .mobile-nav {
    top: 48px;
  }
}

@media (max-width: 600px) {
  .input-row {
    grid-template-columns: 1fr;
  }
  .shortlink-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .link-actions-col {
    width: 100%;
    justify-content: flex-end;
  }
}