@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #030063;
  --primary-light: #2c2998;
  --secondary-color: #4f46e5;
  --accent-color: #818cf8;
  --bg-color: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  
  --gradient-soft: linear-gradient(135deg, #030063 0%, #4f46e5 100%);
  --gradient-light: linear-gradient(135deg, #e0e7ff 0%, #ffffff 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.hero {
  background-color: #ffffff;
  background-image: 
    linear-gradient(to right, rgba(79, 70, 229, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: var(--gradient-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 1px !important;
  transition: none !important;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--primary-color) !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-outline {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 1.5px solid var(--primary-color) !important;
  box-shadow: none !important;
}

.btn-outline:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Cards & Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  position: relative;
  z-index: 1010;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-soft);
  transition: width 0.2s ease;
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Beautiful modern buttons for navbar */
.nav-actions .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 1px !important;
  font-weight: 600;
  transition: none !important;
}

.nav-actions .btn-outline {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 1.5px solid var(--primary-color) !important;
}

.nav-actions .btn-outline:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: none !important;
  box-shadow: none !important;
}

.nav-actions .btn-primary {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--primary-color) !important;
  box-shadow: none !important;
}

.nav-actions .btn-primary:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: none !important;
  box-shadow: none !important;
}

.mobile-only-auth {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  padding: 4px;
  line-height: 1;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.shortener-box {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.shortener-box input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: var(--gradient-light);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
}

.shortener-box input:focus {
  outline: 2px solid var(--accent-color);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  opacity: 0.6;
  margin-top: 4rem;
}

/* Hero buttons row */
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

/* ===== RESPONSIVE / MOBILE ===== */
@media (max-width: 768px) {

  /* --- Navbar --- */
  .navbar {
    position: relative;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -2rem;           /* bleed to container edge */
    width: calc(100% + 4rem);
    background: white;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12);
    z-index: 1000;
    gap: 0;
    border-top: 1px solid #f1f5f9;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover {
    color: var(--primary-color);
    padding-left: 0.75rem;
    background: rgba(79, 70, 229, 0.03);
    border-radius: var(--radius-sm);
  }
  .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000 !important;
  }

  /* Mobile auth buttons inside dropdown */
  .mobile-only-auth {
    display: flex !important;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.5rem 0;
  }
  .mobile-only-auth .btn {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-radius: 1px !important;
    font-weight: 600;
    text-align: center;
    flex: 1;
    transition: none !important;
  }
  .mobile-only-auth .btn-outline {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color) !important;
  }
  .mobile-only-auth .btn-primary {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--primary-color) !important;
    box-shadow: none !important;
  }

  /* --- Hero --- */
  .hero {
    padding: 3.5rem 0 2.5rem;
  }
  .hero h1 {
    font-size: 2rem;
    line-height: 1.25;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .shortener-box {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 2rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 320px;
  }
  .trust-badges {
    gap: 0.75rem 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.88rem;
  }

  /* --- Section headings --- */
  h2[style*="font-size: 2.5rem"] {
    font-size: 1.7rem !important;
  }

  /* --- CTA section --- */
  section[style*="padding: 6rem 0; text-align: center; background"] {
    padding: 3.5rem 1.5rem !important;
    margin: 2rem 0 !important;
  }

  /* --- FAQ max-width --- */
  section[style*="max-width: 800px"] {
    padding: 3rem 0 !important;
  }

  /* --- Footer --- */
  footer {
    padding: 3rem 0 !important;
  }
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
}

.sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
  background: var(--gradient-light);
  color: var(--primary-color);
}

.main-content {
  flex: 1;
  padding: 2rem 3rem;
  overflow-y: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.data-table th, .data-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.data-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container .form-input {
  padding-right: 2.5rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--primary-color);
}

.password-strength {
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
  display: flex;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  background-image: 
    linear-gradient(to right, rgba(79, 70, 229, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 4rem 2rem;
  position: relative;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
}



/* ===== WITHDRAWAL METHODS SECTION ===== */
.withdrawal-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 50%, #eef2ff 100%);
  border-radius: var(--radius-xl);
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.withdrawal-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.withdrawal-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(3, 0, 99, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.withdrawal-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 0 2rem;
}

.withdrawal-badge {
  display: inline-block;
  background: var(--gradient-soft);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.withdrawal-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.withdrawal-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.withdrawal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.withdrawal-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(3, 0, 99, 0.08);
  border: 1.5px solid rgba(79, 70, 229, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.withdrawal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(3, 0, 99, 0.15);
  border-color: var(--accent-color);
}

.withdrawal-logo-wrap {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  padding: 14px;
  border: 2px solid rgba(79, 70, 229, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.withdrawal-card:hover .withdrawal-logo-wrap {
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15);
}

.withdrawal-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

.withdrawal-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.withdrawal-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.withdrawal-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.withdrawal-tag.crypto {
  background: #fef3c7;
  color: #b45309;
}

.withdrawal-tag.mobile {
  background: #dcfce7;
  color: #166534;
}

.withdrawal-tag.bank {
  background: #dbeafe;
  color: #1d4ed8;
}

.withdrawal-footer-note {
  text-align: center;
  margin-top: 3rem;
  padding: 1.2rem 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: rgba(79, 70, 229, 0.05);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

/* ===== RESPONSIVE: Withdrawal Section ===== */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .withdrawal-section {
    padding: 4rem 1rem;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
  }
  .withdrawal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0 0.5rem;
  }
  .withdrawal-header {
    padding: 0 1rem;
    margin-bottom: 2.5rem;
  }
  .withdrawal-header h2 {
    font-size: 2rem;
  }
  .withdrawal-footer-note {
    margin: 2rem 1rem 0;
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
  }
}

/* Mobile: 1 card per row, horizontal layout */
@media (max-width: 600px) {
  .withdrawal-section {
    padding: 3rem 1rem;
    margin: 1.5rem 0;
  }

  .withdrawal-header {
    padding: 0;
    margin-bottom: 2rem;
  }

  .withdrawal-header h2 {
    font-size: 1.6rem;
  }

  .withdrawal-header p {
    font-size: 0.9rem;
  }

  .withdrawal-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.9rem;
  }

  /* Single column — 1 card per row */
  .withdrawal-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    padding: 0;
  }

  /* Horizontal card layout: logo left, text right */
  .withdrawal-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 1rem 1.25rem;
    gap: 1rem;
    border-radius: var(--radius-lg);
  }

  .withdrawal-logo-wrap {
    width: 60px;
    height: 60px;
    min-width: 60px;
    padding: 10px;
    margin-bottom: 0;
  }

  /* Text block fills remaining space */
  .withdrawal-card-text {
    flex: 1;
  }

  .withdrawal-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .withdrawal-card p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
  }

  .withdrawal-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.65rem;
    margin-top: 0;
  }

  .withdrawal-footer-note {
    margin: 1.5rem 0 0;
    font-size: 0.82rem;
    padding: 0.875rem 1rem;
  }
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  background: var(--gradient-light);
  border-radius: var(--radius-xl);
  margin: 4rem 0;
}

.cta-btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

@media (max-width: 600px) {
  .cta-section {
    padding: 3.5rem 1.5rem;
    margin: 2rem 0;
  }
  .cta-btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    max-width: 300px;
  }
}
