/* ===========================
   GOshare – Global Design System
   =========================== */

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

/* ── CSS Variables ── */
:root {
  /* Green Palette */
  --green-50:  #E8F5E9;
  --green-100: #C8E6C9;
  --green-200: #A5D6A7;
  --green-300: #69F0AE;
  --green-400: #00E676;
  --green-500: #00C853;
  --green-600: #00B248;
  --green-700: #00963C;

  /* Diamond / Crystal Palette */
  --diamond-100: #E0FFFE;
  --diamond-200: #B9F2FF;
  --diamond-300: #80DEEA;
  --diamond-400: #4DD0E1;
  --diamond-500: #26C6DA;
  --diamond-600: #00BCD4;

  /* Dark Backgrounds */
  --bg-deep:    #040C06;
  --bg-dark:    #071009;
  --bg-card:    #0C1A0E;
  --bg-card2:   #0F2012;
  --bg-border:  rgba(0, 200, 83, 0.15);

  /* Glass */
  --glass-bg:       rgba(0, 200, 83, 0.06);
  --glass-bg-hover: rgba(0, 200, 83, 0.12);
  --glass-border:   rgba(0, 200, 83, 0.2);
  --glass-blur:     blur(16px);

  /* Text */
  --text-primary:   #F0FFF4;
  --text-secondary: #A8D5B5;
  --text-muted:     #5A8A65;
  --text-dim:       #3A5A42;

  /* Gradients */
  --grad-green:    linear-gradient(135deg, #00C853 0%, #00E676 100%);
  --grad-diamond:  linear-gradient(135deg, #4DD0E1 0%, #B9F2FF 100%);
  --grad-hero:     linear-gradient(135deg, #00C853 0%, #26C6DA 50%, #B9F2FF 100%);
  --grad-dark:     linear-gradient(180deg, #040C06 0%, #071009 100%);
  --grad-card:     linear-gradient(135deg, rgba(0,200,83,0.1) 0%, rgba(77,208,225,0.06) 100%);

  /* Shadows */
  --shadow-green:   0 0 30px rgba(0, 200, 83, 0.3);
  --shadow-diamond: 0 0 30px rgba(77, 208, 225, 0.3);
  --shadow-card:    0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow:    0 0 60px rgba(0, 200, 83, 0.2);

  /* Spacing */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Mode Theme Overrides ── */
html.light-mode {
  --bg-deep:    #f8fafc;
  --bg-dark:    #f1f5f9;
  --bg-card:    #ffffff;
  --bg-card2:   #f8fafc;
  --bg-border:  rgba(0, 200, 83, 0.25);

  --glass-bg:       rgba(0, 200, 83, 0.05);
  --glass-bg-hover: rgba(0, 200, 83, 0.1);
  --glass-border:   rgba(0, 200, 83, 0.25);

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

  --grad-dark:     linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --grad-card:     linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(240,244,248,1) 100%);
  --shadow-card:    0 8px 32px rgba(0, 0, 0, 0.08);
}

html.light-mode body {
  background-color: #f1f5f9 !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .footer {
  background: #e2e8f0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .hero-section,
html.light-mode .features-section,
html.light-mode .stats-section,
html.light-mode .pricing-section,
html.light-mode .dashboard-layout,
html.light-mode .admin-layout,
html.light-mode .auth-section,
html.light-mode .file-main {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light-mode .card,
html.light-mode .file-card,
html.light-mode .file-list-item,
html.light-mode .file-hero-card,
html.light-mode .share-card,
html.light-mode .info-card,
html.light-mode .plan-card,
html.light-mode .auth-card,
html.light-mode .request-card,
html.light-mode .modal-card,
html.light-mode .sidebar {
  background: #ffffff !important;
  border-color: rgba(0, 200, 83, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}

html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4,
html.light-mode p,
html.light-mode span,
html.light-mode div,
html.light-mode label,
html.light-mode .nav-logo span {
  color: #0f172a;
}

html.light-mode .text-muted,
html.light-mode p.subtitle {
  color: #64748b !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 200, 83, 0.3);
  color: var(--text-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--green-600);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--green-400); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--green-400);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--green-300); }

/* ── Utility Classes ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-green    { color: var(--green-400); }
.text-diamond  { color: var(--diamond-400); }
.text-muted    { color: var(--text-muted); }
.text-gradient {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
  color: #fff;
}

.btn-diamond {
  background: var(--grad-diamond);
  color: #0A2A2A;
  box-shadow: 0 4px 20px rgba(77, 208, 225, 0.4);
}
.btn-diamond:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(77, 208, 225, 0.5);
  color: #0A2A2A;
}

.btn-outline {
  background: transparent;
  color: var(--green-400);
  border: 2px solid var(--green-500);
}
.btn-outline:hover {
  background: rgba(0, 200, 83, 0.1);
  transform: translateY(-2px);
  color: var(--green-300);
}

.btn-glass {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}
.btn-glass:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(0, 200, 83, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  padding: 24px;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-green {
  background: rgba(0, 200, 83, 0.15);
  color: var(--green-400);
  border: 1px solid rgba(0, 200, 83, 0.3);
}
.badge-diamond {
  background: rgba(77, 208, 225, 0.15);
  color: var(--diamond-400);
  border: 1px solid rgba(77, 208, 225, 0.3);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(4, 12, 6, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(4, 12, 6, 0.95);
  border-bottom-color: rgba(0, 200, 83, 0.2);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-green);
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,200,83,0.4); }
  50%       { box-shadow: 0 0 40px rgba(0,200,83,0.7); }
}

.nav-logo span { background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-green);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--green-400); }
.nav-links a:hover::after { width: 100%; }

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

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--bg-border);
  padding: 60px 24px 30px;
}

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

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

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.footer-social-btn:hover {
  background: rgba(0,200,83,0.15);
  border-color: var(--green-400);
  color: var(--green-400);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,200,83,0.2);
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--green-400);
  padding-left: 6px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--green-500);
  background: rgba(0, 200, 83, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.form-input::placeholder { color: var(--text-dim); }

.form-input.error { border-color: #ef5350; }
.form-error { color: #ef5350; font-size: 0.82rem; display: none; }
.form-error.show { display: block; }

/* ── Progress / Loading ── */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-green);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes diamond-sparkle {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(77,208,225,0.6)); }
  50%       { filter: brightness(1.4) drop-shadow(0 0 20px rgba(185,242,255,0.9)); }
}

.animate-fadeInUp { animation: fadeInUp 0.7s ease forwards; }
.animate-float    { animation: float 4s ease-in-out infinite; }
.animate-spin     { animation: spin 1s linear infinite; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Toast Notification ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card2);
  border: 1px solid var(--bg-border);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  animation: slideInRight 0.3s ease;
  box-shadow: var(--shadow-card);
}
.toast.success { border-color: rgba(0,200,83,0.4); }
.toast.error   { border-color: rgba(239,83,80,0.4); }
.toast.info    { border-color: rgba(77,208,225,0.4); }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: var(--transition);
}
.toast-close:hover { color: var(--text-primary); }

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

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  margin: 24px;
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }

/* ── Responsive & Mobile Touch UX ── */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img, video, canvas, iframe, table, input, button {
  max-width: 100%;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 12px 20px; font-size: 0.95rem; width: 100%; }
  .btn-sm { padding: 6px 12px; font-size: 0.8rem; }
  
  .hero-h1 {
    font-size: 2rem !important;
  }

  .hero-p {
    font-size: 0.95rem !important;
  }
}


/* ── Premium / Gold Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-free {
  background: rgba(0,200,83,0.12);
  color: var(--green-400);
  border: 1px solid rgba(0,200,83,0.25);
}
.badge-pro {
  background: rgba(124,77,255,0.15);
  color: #c4a8ff;
  border: 1px solid rgba(124,77,255,0.35);
}
.badge-gold {
  background: linear-gradient(135deg, rgba(255,193,7,0.18) 0%, rgba(255,160,0,0.22) 100%);
  color: #ffc107;
  border: 1px solid rgba(255,193,7,0.4);
  text-shadow: 0 0 12px rgba(255,193,7,0.5);
  box-shadow: 0 0 10px rgba(255,193,7,0.12);
}

/* ── Gold Shimmer Name for Premium Users ── */
@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.premium-name {
  display: inline-block !important;
  color: #ffd700 !important;
  background: linear-gradient(
    90deg,
    #b8860b 0%,
    #ffd700 25%,
    #fffacd 50%,
    #ffd700 75%,
    #b8860b 100%
  ) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: goldShimmer 2s linear infinite !important;
  font-weight: 800 !important;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6)) !important;
}
