:root {
    --navy: #0D1F3C;
    --blue: #1A56DB;
    --blue-light: #3B82F6;
    --gold: #F59E0B;
    --gold-light: #FDE68A;
    --cream: #FAFAF7;
    --gray: #6B7280;
    --gray-light: #F3F4F6;
    --white: #ffffff;
    --green: #059669;
    --red: #DC2626;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(13,31,60,0.10);
    --shadow-lg: 0 12px 48px rgba(13,31,60,0.16);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--navy); overflow-x: hidden; }
  h1,h2,h3,h4 { font-family: 'Syne', sans-serif; }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13,31,60,0.97); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; height: 64px; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--white); letter-spacing: -0.02em; cursor: pointer; }
  .nav-logo span { color: var(--gold); }
  .nav-links { display: flex; gap: 2rem; align-items: center; }
  .nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color .2s; cursor: pointer; }
  .nav-links a:hover { color: var(--white); }
  .nav-ctas { display: flex; gap: 0.75rem; }
  .btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.25rem; border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all .2s; border: none; text-decoration: none; }
  .btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); }
  .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
  .btn-gold { background: var(--gold); color: var(--navy); }
  .btn-gold:hover { background: #FBBF24; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,0.4); }
  .btn-blue { background: var(--blue); color: var(--white); }
  .btn-blue:hover { background: var(--blue-light); transform: translateY(-1px); }
  .btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; }

  /* PAGES */
  .page { display: none; min-height: 100vh; padding-top: 64px; }
  .page.active { display: block; }

  /* HERO */
  #hero {
    background: var(--navy); position: relative; overflow: hidden;
    padding: 100px 5% 80px;
  }
  .hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(26,86,219,0.25) 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 10% 80%, rgba(245,158,11,0.12) 0%, transparent 60%);
  }
  .hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  .hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
  .hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: var(--gold); padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem; animation: fadeUp 0.6s ease both; }
  .hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; color: var(--white); line-height: 1.05; letter-spacing: -0.03em; animation: fadeUp 0.6s ease 0.1s both; }
  .hero-title em { color: var(--gold); font-style: normal; }
  .hero-subtitle { margin-top: 1.25rem; font-size: 1.15rem; color: rgba(255,255,255,0.65); max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.65; animation: fadeUp 0.6s ease 0.2s both; }
  .hero-ctas { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s ease 0.3s both; }
  .hero-stats { margin-top: 4rem; display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s ease 0.4s both; }
  .stat { text-align: center; }
  .stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--white); }
  .stat-num span { color: var(--gold); }
  .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; letter-spacing: 0.04em; text-transform: uppercase; }

  /* SECTIONS */
  .section { padding: 80px 5%; }
  .section-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem; }
  .section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
  .section-sub { margin-top: 0.75rem; color: var(--gray); font-size: 1rem; line-height: 1.65; max-width: 520px; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; max-width: 1100px; margin: 0 auto; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 3rem auto 0; }
  .card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05); transition: transform .2s, box-shadow .2s; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
  .icon-blue { background: rgba(26,86,219,0.1); }
  .icon-gold { background: rgba(245,158,11,0.12); }
  .icon-green { background: rgba(5,150,105,0.1); }
  .card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
  .card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }
  .steps { display: flex; flex-direction: column; gap: 1.5rem; }
  .step { display: flex; gap: 1.25rem; align-items: flex-start; }
  .step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .step-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
  .step-body p { font-size: 0.875rem; color: var(--gray); line-height: 1.55; }

  /* GIGS */
  .gigs-header { background: var(--navy); padding: 60px 5% 40px; text-align: center; color: var(--white); }
  .gigs-header h1 { font-size: 2.25rem; font-weight: 800; }
  .gigs-header p { color: rgba(255,255,255,0.65); margin-top: 0.5rem; }
  .gigs-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; padding: 1.5rem 5%; background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.07); position: sticky; top: 64px; z-index: 100; }
  .filter-btn { padding: 0.45rem 1rem; border-radius: 100px; font-size: 0.82rem; font-weight: 600; border: 1.5px solid rgba(0,0,0,0.12); background: var(--white); cursor: pointer; transition: all .15s; color: var(--navy); }
  .filter-btn.active, .filter-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .gigs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; padding: 2rem 5%; max-width: 1200px; margin: 0 auto; }
  .gig-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(0,0,0,0.07); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
  .gig-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .gig-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
  .gig-category { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 100px; }
  .cat-restaurant { background: #FEE2E2; color: #991B1B; }
  .cat-retail { background: #DBEAFE; color: #1E40AF; }
  .cat-outdoor { background: #D1FAE5; color: #065F46; }
  .cat-events { background: #EDE9FE; color: #5B21B6; }
  .cat-senior { background: #FEF3C7; color: #92400E; }
  .cat-office { background: #E0E7FF; color: #3730A3; }
  .gig-pay { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--green); }
  .gig-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
  .gig-biz { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.75rem; }
  .gig-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
  .gig-tag { font-size: 0.75rem; color: var(--gray); background: var(--gray-light); padding: 0.2rem 0.6rem; border-radius: 6px; display: flex; align-items: center; gap: 0.3rem; }
  .gig-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--gray-light); padding-top: 0.75rem; }
  .gig-verified { font-size: 0.75rem; color: var(--green); font-weight: 600; }
  .apply-btn { font-size: 0.8rem; padding: 0.4rem 0.9rem; }

  /* FORMS */
  .signup-page { min-height: 100vh; background: var(--cream); padding: 80px 5% 60px; }
  .signup-container { max-width: 560px; margin: 0 auto; }
  .signup-toggle { display: flex; background: var(--white); border: 1.5px solid rgba(0,0,0,0.1); border-radius: 10px; padding: 0.3rem; margin-bottom: 2rem; gap: 0.3rem; }
  .toggle-btn { flex: 1; padding: 0.65rem; border-radius: 7px; border: none; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: all .2s; background: transparent; color: var(--gray); }
  .toggle-btn.active { background: var(--navy); color: var(--white); }
  .signup-header { margin-bottom: 2rem; }
  .signup-header h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
  .signup-header p { color: var(--gray); margin-top: 0.4rem; font-size: 0.95rem; }
  .form-card { background: var(--white); border-radius: 16px; padding: 2.5rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,0.06); }
  .form-section-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 1.5rem 0 1rem; border-top: 1px solid var(--gray-light); padding-top: 1.25rem; }
  .form-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
  .form-group label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
  .form-group input, .form-group select, .form-group textarea { padding: 0.7rem 0.9rem; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; background: var(--cream); color: var(--navy); transition: border-color .15s, box-shadow .15s; outline: none; width: 100%; box-sizing: border-box; }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
  .form-group textarea { resize: vertical; min-height: 80px; }
  .checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
  .checkbox-item { display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer; }
  .checkbox-item input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
  .checkbox-item span { font-size: 0.85rem; color: var(--navy); line-height: 1.5; }
  .required { color: var(--red); }
  .form-note { font-size: 0.78rem; color: var(--gray); line-height: 1.55; }
  .submit-btn { width: 100%; margin-top: 1.5rem; padding: 0.9rem; font-size: 1rem; border-radius: 10px; }
  .success-msg { display: none; background: #ECFDF5; border: 1.5px solid #6EE7B7; border-radius: 10px; padding: 1.25rem; text-align: center; color: #065F46; margin-top: 1rem; }
  .success-msg h3 { font-size: 1rem; margin-bottom: 0.3rem; }
  .success-msg p { font-size: 0.85rem; }
  .error-msg { display: none; background: #FEF2F2; border: 1.5px solid #FCA5A5; border-radius: 10px; padding: 1rem; color: #991B1B; font-size: 0.85rem; margin-top: 0.75rem; }

  /* CONTACT */
  .contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; max-width: 1000px; margin: 0 auto; align-items: start; }
  .contact-info h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
  .contact-info p { color: var(--gray); line-height: 1.7; margin-bottom: 1.5rem; }
  .contact-detail { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.9rem; }
  .contact-detail-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(26,86,219,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

  /* ABOUT */
  .about-hero { background: var(--navy); padding: 80px 5% 60px; text-align: center; color: var(--white); }
  .about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
  .about-hero p { color: rgba(255,255,255,0.65); max-width: 560px; margin: 1rem auto 0; line-height: 1.7; }
  .mission-card { background: var(--navy); color: var(--white); border-radius: 16px; padding: 2.5rem; }
  .mission-card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--gold); }
  .mission-card p { color: rgba(255,255,255,0.75); line-height: 1.7; font-size: 0.95rem; }
  .safety-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
  .safety-item { display: flex; gap: 0.75rem; align-items: flex-start; }
  .safety-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.65rem; flex-shrink: 0; margin-top: 2px; }
  .safety-item p { font-size: 0.875rem; color: var(--gray); line-height: 1.55; }

  /* LEGAL PAGES */
  .legal-page { max-width: 780px; margin: 0 auto; padding: 60px 5%; }
  .legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
  .legal-page .updated { font-size: 0.82rem; color: var(--gray); margin-bottom: 2.5rem; }
  .legal-page h2 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--navy); }
  .legal-page p, .legal-page li { font-size: 0.9rem; color: #374151; line-height: 1.75; margin-bottom: 0.75rem; }
  .legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
  .legal-notice { background: #FEF3C7; border: 1.5px solid #FCD34D; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 0.82rem; color: #92400E; line-height: 1.6; }

  /* SETUP GUIDE */
  .setup-page { max-width: 780px; margin: 0 auto; padding: 60px 5%; }
  .setup-step { background: var(--white); border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); padding: 1.75rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
  .setup-step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--blue); color: white; border-radius: 50%; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.75rem; }
  .setup-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
  .setup-step p { font-size: 0.875rem; color: var(--gray); line-height: 1.65; }
  .setup-step a { color: var(--blue); font-weight: 600; }
  .code-block { background: #1E293B; color: #E2E8F0; border-radius: 8px; padding: 1rem 1.25rem; font-family: monospace; font-size: 0.82rem; margin: 0.75rem 0; overflow-x: auto; line-height: 1.6; }
  .highlight { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); border-radius: 6px; padding: 0.75rem 1rem; font-size: 0.82rem; color: #92400E; margin: 0.75rem 0; }

  /* MODAL */
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; padding: 1rem; }
  .modal-overlay.open { display: flex; }
  .modal { background: var(--white); border-radius: 16px; max-width: 460px; width: 100%; padding: 2rem; box-shadow: var(--shadow-lg); position: relative; animation: popIn .25s ease; }
  .modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--gray-light); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
  .modal h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
  .modal p { font-size: 0.875rem; color: var(--gray); margin-bottom: 1.25rem; line-height: 1.6; }

  /* FOOTER */
  footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 3rem 5% 2rem; font-size: 0.85rem; }
  .footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
  .footer-brand p { margin-top: 0.75rem; line-height: 1.65; max-width: 240px; font-size: 0.82rem; }
  .footer-col h4 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 0.04em; }
  .footer-col a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 0.5rem; transition: color .15s; cursor: pointer; }
  .footer-col a:hover { color: var(--white); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

  .text-center { text-align: center; }
  .bg-light { background: var(--gray-light); }
  .max-1100 { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .pill { display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(26,86,219,0.09); color: var(--blue); padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }

  /* LOADING SPINNER */
  .spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
  @keyframes spin { to { transform: rotate(360deg); } }

  @media (max-width: 768px) {
    /* NAV */
    .nav-links { display: none; }
    .nav-ctas { gap: 0.4rem; }
    .nav-ctas .btn { font-size: 0.75rem; padding: 0.45rem 0.75rem; }

    /* LAYOUT */
    .grid-2, .grid-3, .form-row, .contact-grid, .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-stats { gap: 1rem; flex-wrap: wrap; }

    /* HERO BUTTONS — stack on mobile */
    .hero-ctas { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; width: 100%; max-width: 340px; margin: 0 auto; }
    .hero-ctas .btn { width: 100%; justify-content: center; text-align: center; }
    .btn-lg { padding: 0.85rem 1.25rem; font-size: 0.95rem; }

    /* FORMS — full width on mobile */
    .form-group input,
    .form-group select,
    .form-group textarea { width: 100%; box-sizing: border-box; font-size: 1rem; padding: 0.8rem 0.9rem; }
    .form-group { margin-bottom: 1.1rem; }
    .submit-btn { width: 100%; padding: 1rem; font-size: 1rem; box-sizing: border-box; }

    /* CHECKBOXES */
    .checkbox-item { font-size: 0.875rem; }

    /* MODAL */
    .modal-box { width: 95vw; max-width: 95vw; padding: 1.5rem 1.25rem; margin: 1rem; box-sizing: border-box; }
    .modal-box .btn { width: 100%; justify-content: center; margin-bottom: 0.5rem; }

    /* ADMIN PANEL */
    #admin-dashboard .btn { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
    #admin-gigs-list > div { padding: 1rem; }

    /* GIG CARDS */
    .gig-card { padding: 1rem; }
    .apply-btn { width: 100%; text-align: center; justify-content: center; margin-top: 0.75rem; }

    /* FILTER BUTTONS */
    .filter-btn { font-size: 0.78rem; padding: 0.4rem 0.75rem; }

    /* SECTION PADDING */
    section, .section { padding-left: 1rem; padding-right: 1rem; }

    /* FOOTER */
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .footer-col a { font-size: 0.875rem; }
    .gigs-grid { grid-template-columns: 1fr; }
  }