:root {
    --cream-1: #FBF8F1;
    --cream-2: #F5EDD8;
    --cream-3: #E8DCC4;
    --paper: #FFFFFF;
    --dark-1: #1A2F26;
    --dark-2: #2A3F36;
    --emerald: #2D5F4F;
    --emerald-light: #4A7C68;
    --emerald-dark: #1B4036;
    --gold: #B8895A;
    --gold-light: #D4A574;
    --gold-pale: #E8C896;
    --text-dark: #1F1B16;
    --text-mid: #5C5346;
    --text-muted: #8B7E6B;
    --text-on-dark: #F5F0E5;
    --border-light: #E8DCC4;
    --border-mid: #D4C4A0;

    /* Status colors - متناسقة وغير متعبة للعين */
    --st-available-bg: #ECF5F0;
    --st-available-border: #6FA98C;
    --st-available-text: #2D6A4F;

    --st-completed-bg: #E3F0E3;
    --st-completed-border: #5A9A5A;
    --st-completed-text: #1F5F1F;

    --st-soon-bg: #EFEDE7;
    --st-soon-border: #9A9286;
    --st-soon-text: #5A5346;

    --st-paused-bg: #EAEAE6;
    --st-paused-border: #888880;
    --st-paused-text: #4A4A44;

    --st-closing-bg: #FFE5D5;
    --st-closing-border: #E8915E;
    --st-closing-text: #B65A28;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Cairo', sans-serif;
    background: var(--cream-1);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* ============ HERO ============ */
  .hero {
    background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 50%, var(--emerald-dark) 100%);
    color: var(--text-on-dark);
    padding: 60px 20px 70px;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,165,116,0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(74,124,104,0.2) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
  .ornament {
    color: var(--gold-light);
    font-size: 1.5rem;
    letter-spacing: 6px;
    margin-bottom: 10px;
    opacity: 0.7;
  }
  .logo {
    font-family: 'Amiri', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold-light), var(--gold-pale));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(212,165,116,0.3);
  }
  .subtitle {
    color: var(--gold-light);
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 500;
  }
  .hero-desc {
    color: rgba(245,240,229,0.85);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
  }

  /* ============ WAKE UP BANNER ============ */
  .wake-up-banner {
    background: linear-gradient(135deg, var(--paper), var(--cream-1));
    margin: -40px 20px 30px;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 20px 50px rgba(31,27,22,0.12);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .wake-up-banner::before {
    content: '"';
    position: absolute;
    top: 10px; right: 25px;
    font-family: 'Amiri', serif;
    font-size: 5rem;
    color: var(--gold-pale);
    opacity: 0.4;
    line-height: 1;
  }
  .wake-up-text {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
  }
  .wake-up-text strong {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.15rem;
  }

  .ornate-divider {
    text-align: center;
    margin: 40px 0 20px;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 8px;
  }

  /* ============ MAP SECTION ============ */
  .tree-section {
    padding: 30px 0 50px;
    text-align: center;
  }
  .section-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .tree-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.1rem;
    color: var(--dark-1);
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: -0.5px;
  }
  .tree-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 20px;
  }
  .map-image-wrapper {
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 0 20px;
  }
  .map-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(31,27,22,0.12);
    border: 1px solid var(--border-light);
    display: block;
  }
  .map-placeholder {
    background: linear-gradient(135deg, var(--cream-2), var(--cream-3));
    border: 2px dashed var(--gold);
    border-radius: 18px;
    padding: 80px 30px;
    text-align: center;
    color: var(--text-muted);
  }
  .map-placeholder .map-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 14px;
    opacity: 0.5;
  }
  .map-placeholder p {
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-mid);
  }

  /* ============ DETAIL SECTIONS ============ */
  .detail-section {
    padding: 60px 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 20px;
  }
  .detail-section.alt {
    background: var(--paper);
    max-width: 100%;
    padding-left: max(20px, calc((100% - 1160px) / 2));
    padding-right: max(20px, calc((100% - 1160px) / 2));
  }
  .detail-section.alt-cream {
    background: var(--cream-2);
    max-width: 100%;
    padding-left: max(20px, calc((100% - 1160px) / 2));
    padding-right: max(20px, calc((100% - 1160px) / 2));
  }

  .section-header { text-align: center; margin-bottom: 35px; }
  .section-badge {
    display: inline-block;
    background: var(--dark-1);
    color: var(--gold-light);
    padding: 8px 22px;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 14px;
    letter-spacing: 1px;
  }
  .section-tagline {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    color: var(--emerald);
    font-weight: 600;
    margin-bottom: 14px;
  }
  .section-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-1);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
  }
  .section-icon { font-size: 1.8rem; margin-left: 8px; }
  .section-sub {
    color: var(--text-mid);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.85;
  }

  /* ============ AGENCY INTRO ============ */
  .agency-intro {
    background: linear-gradient(135deg, var(--paper), var(--cream-1));
    border-radius: 20px;
    padding: 36px 32px;
    margin: 0 0 35px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(31,27,22,0.06);
    position: relative;
    overflow: hidden;
  }
  .agency-intro::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 6px; height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--emerald), var(--gold));
  }
  .intro-eyebrow {
    display: inline-block;
    background: linear-gradient(135deg, var(--dark-1), var(--emerald-dark));
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 18px;
    letter-spacing: 1px;
  }
  .intro-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-1);
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .intro-subtitle {
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 22px;
    font-style: italic;
  }
  .intro-text {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 18px;
  }
  .intro-text strong { color: var(--dark-1); font-weight: 700; }
  .intro-text .highlight {
    background: linear-gradient(135deg, var(--gold-pale), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
  }

  .intro-question {
    background: linear-gradient(135deg, var(--cream-2), var(--cream-3));
    padding: 22px 24px;
    border-radius: 14px;
    margin: 22px 0;
    border-right: 4px solid var(--emerald);
    border: 1px solid var(--border-mid);
    border-right: 4px solid var(--emerald);
  }
  .intro-question-label {
    color: var(--emerald-dark);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Tajawal', sans-serif;
  }
  .intro-question-text {
    color: var(--text-dark);
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 14px;
  }

  .intro-benefits {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
  }
  .intro-benefits li {
    padding: 10px 14px;
    background: var(--paper);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-right: 3px solid var(--gold);
    transition: transform 0.3s;
  }
  .intro-benefits li:hover { transform: translateX(-3px); }

  .intro-support {
    background: linear-gradient(135deg, var(--dark-1), var(--emerald-dark));
    color: var(--text-on-dark);
    padding: 24px 26px;
    border-radius: 14px;
    margin: 24px 0;
    border: 1px solid rgba(212,165,116,0.25);
  }
  .intro-support-title {
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-family: 'Tajawal', sans-serif;
  }
  .intro-support-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .intro-support-list span {
    background: rgba(212,165,116,0.15);
    color: var(--gold-pale);
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(212,165,116,0.35);
    animation: float 3s ease-in-out infinite;
  }
  .intro-support-list span:nth-child(2) { animation-delay: 0.3s; }
  .intro-support-list span:nth-child(3) { animation-delay: 0.6s; }
  .intro-support-list span:nth-child(4) { animation-delay: 0.9s; }
  .intro-support-list span:nth-child(5) { animation-delay: 1.2s; }
  .intro-support-list span:nth-child(6) { animation-delay: 1.5s; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }

  .intro-steps {
    background: var(--cream-1);
    padding: 22px 26px;
    border-radius: 14px;
    margin-top: 22px;
    border: 1px solid var(--border-light);
    border-right: 4px solid var(--gold);
  }
  .intro-steps-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    color: var(--dark-1);
    margin-bottom: 14px;
    font-size: 1.1rem;
  }
  .intro-steps ol {
    margin: 0;
    padding-right: 22px;
    color: var(--text-mid);
    counter-reset: step-counter;
    list-style: none;
  }
  .intro-steps ol li {
    padding: 8px 0 8px 0;
    line-height: 1.7;
    font-size: 0.95rem;
    counter-increment: step-counter;
    position: relative;
    padding-right: 36px;
  }
  .intro-steps ol li::before {
    content: counter(step-counter);
    position: absolute;
    right: 0;
    top: 7px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
  }

  .intro-conclusion {
    background: linear-gradient(135deg, var(--emerald-dark), var(--dark-1));
    color: var(--text-on-dark);
    padding: 24px 28px;
    border-radius: 14px;
    margin-top: 24px;
    text-align: center;
    line-height: 2;
    font-size: 0.98rem;
    border: 1px solid rgba(212,165,116,0.3);
  }
  .intro-conclusion strong { color: var(--gold-light); font-weight: 700; }

  /* ============ CARDS GRID ============ */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 30px;
  }

  /* CARD */
  .card {
    background: var(--paper);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 24px;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
  }
  .card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(31,27,22,0.1);
  }

  /* Status-based card colors */
  .card.is-paused {
    background: linear-gradient(135deg, #F0F0EC, #E5E5E0);
    border-color: #B8B8B0;
    opacity: 0.92;
  }
  .card.is-paused::before { background: linear-gradient(180deg, #888880, #A8A8A0); }
  .card.is-paused .card-title { color: #4A4A44; }
  .card.is-paused .card-desc { color: #555550; }

  .card.is-completed {
    background: linear-gradient(135deg, #E9F2E9, #D4E5D4);
    border-color: #7AB47A;
  }
  .card.is-completed::before { background: linear-gradient(180deg, var(--st-completed-text), var(--st-completed-border)); }

  .card.is-soon {
    background: linear-gradient(135deg, #EFEDE7, #DAD7CE);
    border-color: #A8A296;
  }
  .card.is-soon::before { background: linear-gradient(180deg, #6A6356, #9A9286); }

  .card.is-closing {
    background: linear-gradient(135deg, #FFEEDD, #FFD9B8);
    border-color: var(--st-closing-border);
    animation: pulse-warm 2.5s ease-in-out infinite;
  }
  .card.is-closing::before {
    background: linear-gradient(180deg, var(--st-closing-text), #E8915E);
    width: 5px;
  }
  @keyframes pulse-warm {
    0%, 100% { box-shadow: 0 4px 20px rgba(232,145,94,0.2); }
    50% { box-shadow: 0 6px 28px rgba(232,145,94,0.45); }
  }

  .card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
  }
  .card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }
  .card-icon {
    font-size: 2rem;
    width: 50px; height: 50px;
    background: var(--cream-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .card.is-paused .card-icon { background: #E0E0DA; }
  .card.is-completed .card-icon { background: #D0E5D0; }
  .card.is-soon .card-icon { background: #DDD9D0; }
  .card.is-closing .card-icon { background: #FFD9B8; }

  .card-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark-1);
    line-height: 1.3;
    letter-spacing: -0.3px;
  }

  /* STATUS BADGE */
  .status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Tajawal', sans-serif;
  }
  .status.available {
    background: var(--st-available-bg);
    color: var(--st-available-text);
    border: 1px solid var(--st-available-border);
  }
  .status.completed {
    background: var(--st-completed-bg);
    color: var(--st-completed-text);
    border: 1px solid var(--st-completed-border);
  }
  .status.soon {
    background: var(--st-soon-bg);
    color: var(--st-soon-text);
    border: 1px solid var(--st-soon-border);
  }
  .status.paused {
    background: var(--st-paused-bg);
    color: var(--st-paused-text);
    border: 1px solid var(--st-paused-border);
  }
  .status.closing {
    background: var(--st-closing-bg);
    color: var(--st-closing-text);
    border: 1px solid var(--st-closing-border);
    font-weight: 800;
  }

  .card-desc {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 16px;
    flex: 1;
  }
  .card-desc strong { color: var(--dark-1); font-weight: 700; }
  .card-desc .inline-soon {
    display: inline-block;
    background: #D8D5CC;
    color: #5A5346;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0 3px;
  }

  /* STATS BAR */
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--border-light);
  }
  .stat {
    background: var(--cream-1);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid var(--border-light);
  }
  .card.is-paused .stat,
  .card.is-completed .stat,
  .card.is-soon .stat { background: rgba(255,255,255,0.6); }
  .stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  .stat-value {
    font-size: 0.85rem;
    color: var(--emerald-dark);
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Tajawal', sans-serif;
  }
  .stat.gold .stat-value { color: var(--gold); }
  .stat.note {
    background: rgba(184,137,90,0.06);
    border-color: rgba(184,137,90,0.2);
  }
  .bold-text { font-weight: 800; color: var(--dark-1); }

  /* CLUB SUB-SECTION */
  .club-section {
    background: var(--paper);
    border-radius: 22px;
    padding: 32px 28px;
    margin-top: 28px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(31,27,22,0.05);
    position: relative;
    overflow: hidden;
  }
  .club-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  }
  .club-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .club-icon {
    font-size: 2.2rem;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--dark-1), var(--emerald-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26,47,38,0.25);
  }
  .club-title-wrap { flex: 1; }
  .club-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--dark-1);
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
  }
  .club-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .club-tag {
    background: linear-gradient(135deg, var(--cream-2), var(--cream-3));
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border-mid);
  }
  .club-desc {
    color: var(--text-mid);
    font-size: 0.96rem;
    line-height: 1.95;
    margin-bottom: 22px;
    background: var(--cream-1);
    padding: 20px 24px;
    border-radius: 14px;
    border-right: 4px solid var(--gold);
    border: 1px solid var(--border-light);
    border-right: 4px solid var(--gold);
  }
  .club-desc strong { color: var(--dark-1); font-weight: 700; }

  /* ============ REGISTER BUTTON (animated) ============ */
  .register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 200%;
    color: white;
    border: 2px solid var(--gold);
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(184,137,90,0.35);
    animation: btn-shimmer 3s ease-in-out infinite, btn-pulse 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
  }
  .register-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
  }
  @keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
  }
  @keyframes btn-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  @keyframes btn-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(184,137,90,0.35); transform: scale(1); }
    50% { box-shadow: 0 6px 22px rgba(184,137,90,0.55); transform: scale(1.02); }
  }
  .register-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(184,137,90,0.5);
    animation-play-state: paused;
  }
  .register-btn .btn-icon { font-size: 1.1rem; }

  /* Club register button (slightly different) */
  .club-card .register-btn {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light), var(--emerald));
    background-size: 200% 200%;
    border-color: var(--emerald);
    box-shadow: 0 4px 14px rgba(45,95,79,0.35);
  }
  .club-card .register-btn:hover {
    box-shadow: 0 8px 24px rgba(45,95,79,0.5);
  }

  /* ============ MODAL ============ */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 47, 38, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
  }
  .modal-overlay.active { display: flex; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .modal {
    background: var(--paper);
    border-radius: 20px;
    padding: 28px 22px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-mid);
  }
  @keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .modal-header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
  }
  .modal-icon {
    width: 60px; height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(184,137,90,0.3);
  }
  .modal-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-1);
    margin-bottom: 5px;
  }
  .modal-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
  }
  .modal-product {
    background: var(--cream-2);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-block;
    margin-top: 12px;
    border: 1px solid var(--border-mid);
  }
  .modal-note {
    background: linear-gradient(135deg, #FFF8E7, #FBF1DD);
    color: #6B5314;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 14px;
    border-right: 3px solid var(--gold);
    line-height: 1.6;
    text-align: right;
  }
  .modal-note strong { color: var(--dark-1); font-weight: 700; }
  .modal-note span { color: var(--emerald); font-weight: 700; }

  .modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px; height: 32px;
    background: var(--cream-2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-mid);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-close:hover {
    background: var(--gold);
    color: white;
    transform: rotate(90deg);
  }

  .form-iframe-wrapper {
    margin-top: 18px;
    background: var(--cream-1);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    min-height: 500px;
  }
  .form-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    background: white;
  }
  .form-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 1;
  }
  .form-loading.hidden { display: none; }
  .form-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--cream-3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ============ DIVIDER ============ */
  .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
    margin: 0;
  }

  /* ============ BACK TO TOP ============ */
  .back-to-top { text-align: center; margin-top: 30px; }
  .back-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 22px;
    border: 1px solid var(--border-mid);
    border-radius: 20px;
    transition: all 0.3s;
    background: var(--paper);
  }
  .back-link:hover {
    background: var(--dark-1);
    color: var(--gold-light);
    border-color: var(--dark-1);
  }

  /* ============ FOOTER ============ */
  footer {
    background: linear-gradient(135deg, var(--dark-1) 0%, var(--emerald-dark) 100%);
    color: var(--text-on-dark);
    text-align: center;
    padding: 50px 20px 30px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
  }
  footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  }
  .footer-logo {
    font-family: 'Amiri', serif;
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
  }
  .footer-main {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }
  .footer-tag {
    font-size: 0.92rem;
    color: rgba(245,240,229,0.7);
    font-weight: 500;
    margin-top: 3px;
  }
  .footer-tag::before { content: '( '; }
  .footer-tag::after { content: ' )'; }
  .footer-desc {
    margin-top: 16px;
    opacity: 0.85;
    font-size: 0.9rem;
  }
  .copyright {
    margin-top: 25px;
    font-size: 0.78rem;
    opacity: 0.5;
    border-top: 1px solid rgba(212,165,116,0.15);
    padding-top: 15px;
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 768px) {
    .hero { padding: 40px 15px 50px; }
    .logo { font-size: 2.8rem; }
    .subtitle { font-size: 0.9rem; }
    .hero-desc { font-size: 0.88rem; }
    .wake-up-banner { padding: 24px 20px; margin: -30px 15px 20px; }
    .wake-up-text { font-size: 0.95rem; line-height: 1.9; }
    .tree-title { font-size: 1.6rem; }
    .detail-section { padding: 40px 15px 20px; }
    .section-title { font-size: 1.55rem; }
    .section-badge { font-size: 0.95rem; padding: 7px 18px; }
    .section-sub { font-size: 0.92rem; }
    .agency-intro { padding: 24px 20px; }
    .intro-title { font-size: 1.4rem; }
    .intro-eyebrow { font-size: 0.92rem; padding: 7px 16px; }
    .intro-text { font-size: 0.92rem; line-height: 1.85; }
    .intro-question { padding: 18px 18px; }
    .intro-question-label { font-size: 1.05rem; }
    .intro-support { padding: 20px 22px; }
    .intro-steps { padding: 20px 22px; }
    .cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .card { padding: 20px; }
    .card-icon { width: 44px; height: 44px; font-size: 1.6rem; }
    .card-title { font-size: 1.05rem; }
    .club-section { padding: 22px 18px; }
    .club-icon { width: 50px; height: 50px; font-size: 1.8rem; }
    .club-title { font-size: 1.3rem; }
    .club-desc { padding: 16px 18px; font-size: 0.9rem; }
    .footer-main { font-size: 1.1rem; }
    .footer-tag { font-size: 0.85rem; }
  }