* { margin: 0; padding: 0; box-sizing: border-box; }

    :root{
      /* Lebanon-inspired civic palette (subtle, not flag-waving) */
      --primary: #8B1E1E;          /* deep cedar red */
      --primary-2: #6F1717;        /* darker red */
      --accent: #0F6A3A;           /* cedar green (sparingly) */
      --ink: #111827;     /* dark slate */

      --bg: #f3f4f6;               /* darkest layer */
      --card: rgba(255,255,255,.85);
--card-2: rgba(255,255,255,.60);
      --border: rgba(0, 0, 0, 0.08);

      --shadow-sm: 0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
--shadow-md: 0 8px 24px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
--shadow-lg: 0 20px 48px rgba(0,0,0,.16), 0 10px 24px rgba(0,0,0,.10);

      --radius: 16px;
      --radius-sm: 12px;
      --focus: 0 0 0 3px rgba(139,30,30,.18);
      .card{
  --glass-angle: 120deg;
}

    }

    body{
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      line-height: 1.6;
      color: #e8eaed;
      background: var(--bg);
    }

    a{ color: inherit; text-decoration: none; }
    button, select, textarea{ font: inherit; }

    .container{
      max-width: 1600px;
      margin: 0 auto;
      padding: 0 1.25rem;
    }

    /* Header */
    header{
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255,255,255,.12);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border-bottom: 1.5px solid rgba(255,255,255,.25);
      box-shadow: 0 1px 0 rgba(255,255,255,.1), 0 4px 12px rgba(0,0,0,.06);
    }

    .header-content{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding: 1rem 0;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .logo{
      color: var(--ink);
      display:flex;
      align-items:center;
      gap:.65rem;
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .logo-mark{
      width: 36px; height: 36px;
      border-radius: 12px;
      background: linear-gradient(145deg, rgba(139,30,30,.16), rgba(15,106,58,.10));
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      display:grid;
      place-items:center;
    }

    .logo-mark svg{ width: 18px; height: 18px; color: var(--primary); }

    nav ul{
      list-style:none;
      display:flex;
      gap: 1.25rem;
      align-items:center;
    }

    nav a{
      color: var(--ink);
      font-weight: 600;
      font-size: .95rem;
      padding: .35rem .5rem;
      border-radius: 10px;
      transition: background .2s ease, color .2s ease;
    }

    nav a:hover{
      background: rgba(139,30,30,.08);
      color: var(--primary);
    }

    /* Hero */
    .hero{
      padding: 4.25rem 0 2.5rem;
    }

    .hero-wrap{
      background: rgba(0,0,0,.85);
      backdrop-filter: blur(28px) saturate(180%);
      -webkit-backdrop-filter: blur(28px) saturate(180%);
      border: 1.5px solid rgba(255,255,255,.35);
      border-radius: 22px;
      box-shadow: 
        var(--shadow-md),
        inset 0 1px 1px rgba(255,255,255,.2),
        0 0 28px rgba(255,255,255,.08);
      padding: 2.5rem 1.75rem;
      text-align:center;
      position: relative;
      overflow:hidden;
    }

    .hero-inner{
      position: relative;
      display:grid;
      gap: 1.15rem;
      text-align: center;
      align-items:center;
      justify-items:center;
    }

    .hero h1{
      font-size: clamp(2rem, 4vw, 3.15rem);
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .hero p{
      max-width: 720px;
      color: var(--muted);
      font-size: 1.05rem;
    }

    .hero-sub{
      display:flex;
      flex-direction: column;
      gap: .25rem;
      align-items:center;
    }

    .arabic-sub{
      direction: rtl;
      font-family: "Segoe UI", Tahoma, Arial, sans-serif;
      font-weight: 700;
      color: #f8fafc;
      letter-spacing: 0;
    }

    /* Handwritten “cursive writing” animation */
    .handwritten-line{
      min-height: 38px;
      display:flex;
      align-items:center;
      justify-content:center;
      margin-top: .2rem;
      padding: .25rem .75rem;
      border-radius: 999px;
      background: rgba(255,255,255,.85);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border: 1.5px solid rgba(255,255,255,.9);
      box-shadow: 
        var(--shadow-md),
        inset 0 1px 1px rgba(255,255,255,.4),
        0 0 24px rgba(255,255,255,.15);
    }

    .handwritten{
      /* Use local cursive-like fonts (no external fetch) */
      font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", "Apple Chancery", cursive;
      font-size: 1.25rem;
      color: #1f2937;
      letter-spacing: .01em;
      position: relative;
      white-space: nowrap;
      min-width: 280px;
    }

    .handwritten:after{
      /* subtle “ink caret” */
      content:"";
      display:inline-block;
      width: 10px;
      height: 1.1em;
      margin-left: 6px;
      border-left: 2px solid rgba(31,41,55,.75);
      transform: translateY(2px);
      animation: blink 1s step-end infinite;
    }

    @keyframes blink{ 50%{ opacity:0; } }

    .cta-row{
      display:flex;
      gap: .75rem;
      justify-content:center;
      flex-wrap: wrap;
      margin-top: .35rem;
    }

    .btn{
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: .85rem 1.1rem;
      font-weight: 700;
      cursor:pointer;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
      box-shadow: var(--shadow-sm);
      display:flex;
      align-items:center;
      gap:.6rem;
    }

    .btn:focus{ outline: none; box-shadow: var(--shadow-sm), var(--focus); }

    .btn-primary{
      background: linear-gradient(180deg, rgba(139,30,30,1), rgba(111,23,23,1));
      color: #fff;
      border-color: rgba(139,30,30,.35);
    }

    .btn-primary:hover{ transform: translateY(-1px); box-shadow: var(--shadow-md); }

    .btn-ghost{
      background: rgba(0,0,0,.75);
      color: var(--ink);
    }
    .btn-ghost:hover{ transform: translateY(-1px); box-shadow: var(--shadow-md); background: rgba(0,0,0,.85); }

    /* Section */
    .section{
      padding: 3.5rem 0;
    }

    .section-title{
      color: var(--ink);
      text-align:center;
      font-size: 1.85rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 1.75rem;
    }

    .section-sub{
      text-align:center;
      max-width: 820px;
      margin: -.95rem auto 2.2rem;
      color: var(--ink);
      font-size: 1rem;
    }

    /* User Switcher */
    .user-switcher{
      display:flex;
      justify-content: space-between;
      align-items:center;
      gap: 1rem;
      flex-wrap: wrap;
      padding: 1rem 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: rgba(0,0,0,.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: var(--shadow-sm);
      margin: 1.25rem 0 1.75rem;
    }

    .switcher-left{
      display:flex;
      align-items:center;
      gap: .75rem;
      flex-wrap: wrap;
    }

    .switcher-label{
      font-weight: 700;
      color: var(--ink);
    }

    select{
      padding: .6rem .85rem;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(0,0,0,.65);
      color: var(--ink);
      font-weight: 700;
      cursor:pointer;
      transition: box-shadow .18s ease, border-color .18s ease;
      min-width: 220px;
    }
    select:focus{ outline:none; box-shadow: var(--focus); border-color: rgba(139,30,30,.35); }

    .switcher-note{
      color: var(--muted);
      font-size: .92rem;
    }

    .switcher-note strong{ color: rgba(31,41,55,.82); }

    /* Cards Grid */
    .grid{
      display:grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 1.25rem;
    }

    .card{
      border-radius: var(--radius);
      border: none;
      background: #141a22; /* solid medium layer */
      box-shadow: 0 12px 30px rgba(0,0,0,0.45);
      overflow:hidden;
      transition: transform .18s ease, box-shadow .18s ease;
      position: relative; 
    }

    .card:hover{ transform: translateY(-6px); 
    box-shadow: 
    0 24px 56px rgba(0,0,0,.18),
    0 12px 28px rgba(0,0,0,.14),
    inset 0 1px 1px rgba(255,255,255,.35),
    0 0 32px rgba(255,255,255,.15); }

    .topic-head{
      padding: 1.15rem 1.15rem .85rem;
      position: relative;
      background: #1c2430; /* lightest layer */
      border-bottom: 1px solid rgba(255,255,255,0.06);
      min-height: 88px;
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 1rem;
    }

    .topic-icon{
      width: 44px; height: 44px;
      border-radius: 14px;
      display:grid;
      place-items:center;
      border: none;
      background: rgba(255,255,255,0.04); /* no glass */
      flex: 0 0 auto;
      color: #94a3b8;
      position: relative;
      z-index: 2;
    }
    .topic-icon svg{ width: 22px; height: 22px; }

    .topic-tag{
      font-size: .8rem;
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
      padding: .35rem .6rem;
      border-radius: 999px;
      border: none;
      color: #94a3b8;
      background: rgba(255,255,255,0.04); /* no glass */
      height: fit-content;
      position: relative;
      z-index: 2;
      opacity: 0.6;
    }

    .topic-body{
      padding: 1.1rem 1.15rem 1.15rem;
      display:grid;
      gap: .75rem;
      background: #10161d; /* darker content layer */
    }

    .topic-title{
      font-size: 1.35rem;
      font-weight: 800;
      letter-spacing: -0.01em;
      color: #f8fafc; /* hero text - lightest */
    }

    .topic-desc{
      color: #94a3b8; /* supportive gray */
      font-size: .98rem;
    }

    .topic-meta{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: .75rem;
      color: #64748b;
      font-size: .8rem;
      padding-top: .15rem;
      opacity: 0.6;
    }

    .author{
      display:flex;
      align-items:center;
      gap: .55rem;
      min-width: 0;
    }

    .avatar{
      width: 32px; height: 32px;
      border-radius: 50%;
      border: none;
      background: rgba(255,255,255,0.04); /* no glass */
      display:grid;
      place-items:center;
      font-weight: 800;
      color: #94a3b8;
      flex: 0 0 auto;
    }

    .author span{
      overflow:hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 180px;
    }

    /* Voting */
    .vote-box{
      border-top: 1px solid var(--border);
      padding-top: .9rem;
      display:grid;
      gap: .6rem;
    }

    .vote-row{
      display:grid;
      /* grid-template-columns: repeat(4, minmax(0, 1fr)); */
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: .55rem;
    }

    .vote-btn{
      position: relative;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04); /* neutral monochrome */
      border-radius: 12px;
      padding: .7rem .6rem;
      cursor:pointer;
      transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
      display:flex;
      align-items:center;
      justify-content:center;
      gap: .45rem;
      color: #cbd5e1; /* neutral gray */
      font-weight: 600;
      font-size: .92rem;
      min-height: 44px;
      user-select:none;
      overflow: hidden;
    }

    .vote-btn svg{ width: 18px; height: 18px; position: relative; z-index: 2; }
    .vote-btn span{ position: relative; z-index: 2; }

    .vote-btn:hover{ 
      transform: translateY(-1px); 
      border-color: rgba(255,255,255,.45);
      box-shadow: 
        inset 0 1px 0 rgba(255,255,255,.25),
        0 0 18px rgba(255,255,255,.12),
        var(--shadow-sm); }

    .vote-btn:focus{ outline:none; box-shadow: var(--shadow-sm), var(--focus); }

    .vote-btn[disabled]{
      opacity: .55;
      cursor:not-allowed;
      transform: none !important;
      box-shadow: none !important;
    }

    /* Vote button colors - only active state gets color */
    .vote-btn[data-choice="for"].active{
      background: rgb(34,197,94);
      border-color: rgb(34,197,94);
      color: #0b0f14;
      font-weight: 900;
    }

    .vote-btn[data-choice="against"].active{
      background: rgb(239,68,68);
      border-color: rgb(239,68,68);
      color: #0b0f14;
      font-weight: 900;
    }

    .vote-btn[data-choice="undecided"].active{
      background: rgb(251,191,36);
      border-color: rgb(251,191,36);
      color: #0b0f14;
      font-weight: 900;
    }

    .vote-btn[data-choice="dontcare"].active{
      background: rgb(107,114,128);
      border-color: rgb(107,114,128);
      color: #f8fafc;
      font-weight: 900;
    }

    .vote-counts{
      display:flex;
      flex-wrap: wrap;
      gap: .6rem;
      align-items:center;
      justify-content:space-between;
      color: var(--muted);
      font-size: .92rem;
    }

    .pill{
      display:inline-flex;
      align-items:center;
      gap:.35rem;
      padding: .25rem .55rem;
      border-radius: 999px;
      border: none;
      background: rgba(255,255,255,0.04); /* no glass */
      color: #94a3b8;
      font-weight: 800;
      font-size: .85rem;
    }

    .why-link{
      display:inline-flex;
      align-items:center;
      gap: .35rem;
      color: rgba(232,234,237,.80);
      font-weight: 800;
      cursor:pointer;
      border-radius: 10px;
      padding: .25rem .45rem;
      transition: background .16s ease;
      user-select:none;
    }
    .why-link:hover{ background: rgba(139,30,30,.08); color: rgba(139,30,30,.95); }

    /* Profiles */
    .profile-card{
      padding: 0;
      display:grid;
      gap: 0;
      background: #141a22; /* same as topic cards */
    }

    .profile-top{
      display:flex;
      align-items:center;
      gap: .85rem;
      padding: 1.15rem 1.15rem .85rem;
      background: #1c2430; /* header layer - same as topic-head */
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .profile-avatar{
      width: 56px; height: 56px;
      border-radius: 18px;
      background: rgba(255,255,255,0.04); /* no glass */
      border: none;
      display:grid;
      place-items:center;
      font-weight: 900;
      color: #94a3b8;
      letter-spacing: .02em;
    }

    

    .profile-name{
      font-size: 1.15rem;
      font-weight: 900;
      letter-spacing: -0.01em;
      color: #f8fafc; /* hero text */
    }

    .profile-role{
      display:inline-flex;
      width: fit-content;
      align-items:center;
      gap:.45rem;
      padding: .3rem .6rem;
      border-radius: 999px;
      border: none;
      background: rgba(255,255,255,0.04); /* no glass */
      font-size: .78rem;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: #94a3b8;
      opacity: 0.8;
    }

    .role-verified{
      color: rgba(239,68,68,.85);
      background: rgba(239,68,68,.08);
      opacity: 1;
    }

    .trust-badge{
      display:inline-flex;
      align-items:center;
      gap:.45rem;
      padding: .35rem .7rem;
      border-radius: 999px;
      background: rgba(255,255,255,0.04); /* no glass */
      border: none;
      color: #94a3b8;
      font-weight: 800;
      font-size: .85rem;
      width: fit-content;
      opacity: 0.7;
      margin: 0 1.15rem; /* match card padding */
      margin-top: 1.1rem;
    }

    .trust-badge svg{ width: 16px; height: 16px; }

    .profile-bio{ 
      color: #94a3b8; 
      font-size: .97rem; 
      padding: 0 1.15rem;
      margin-top: .5rem;
    }

    .stats{
      display:flex;
      justify-content: space-between;
      gap: .75rem;
      padding: .9rem 1.15rem;
      margin-top: 1rem;
      border-top: 1px solid rgba(255,255,255,0.06);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      color: #f8fafc;
    }

    .stat{
      text-align:center;
      flex:1;
    }
    .stat .value{ font-weight: 900; font-size: 1.35rem; }
    .stat .label{ color: #64748b; font-size: .74rem; font-weight: 900; letter-spacing:.08em; text-transform:uppercase; margin-top:.1rem; opacity: 0.7; }

    .actions{
      display:flex;
      gap:.6rem;
      padding: 1.15rem;
      background: #10161d; /* darker body layer */
    }

    .action{
      flex: 1;
      padding: .75rem .85rem;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.08);
      font-weight: 800;
      cursor:pointer;
      transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
      background: rgba(255,255,255,0.04); /* no glass */
      color: #cbd5e1;
    }
    .action:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.08); }

    .action.primary{
      background: linear-gradient(180deg, rgba(139,30,30,1), rgba(111,23,23,1));
      color:#fff;
      border-color: rgba(139,30,30,.35);
    }
    .action.primary:hover{ box-shadow: var(--shadow-md); }

    /* About Section */
    .about-content{
      color: #94a3b8;
      line-height: 1.7;
    }

    .about-heading{
      font-size: 1.5rem;
      font-weight: 900;
      color: #f8fafc;
      margin-bottom: .75rem;
      letter-spacing: -0.02em;
    }

    .about-text{
      font-size: 1.05rem;
      color: #94a3b8;
      line-height: 1.8;
      margin-bottom: 1.5rem;
    }

    .info-box{
      background: #141a22;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      padding: 1.5rem 1.75rem;
      margin-top: 1.5rem;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .box-heading{
      font-size: 1.1rem;
      font-weight: 900;
      color: #f8fafc;
      margin-bottom: .65rem;
      letter-spacing: -0.01em;
    }

    .box-text{
      font-size: 1rem;
      color: #94a3b8;
      line-height: 1.7;
      margin: 0;
    }

    .principles-grid{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
      margin-top: 1.5rem;
    }

    .principle-item{
      background: #141a22;
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 14px;
      padding: 1.5rem;
      text-align: center;
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .principle-item:hover{
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .principle-icon{
      font-size: 2.5rem;
      margin-bottom: .75rem;
    }

    .principle-title{
      font-size: 1.05rem;
      font-weight: 900;
      color: #f8fafc;
      margin-bottom: .5rem;
    }

    .principle-desc{
      font-size: .95rem;
      color: #94a3b8;
      line-height: 1.6;
      margin: 0;
    }

    /* Contact Section */
    .contact-layout{
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 3rem;
      align-items: start;
    }

    @media (max-width: 768px){
      .contact-layout{
        grid-template-columns: 1fr;
        gap: 2rem;
      }
    }

    .contact-heading{
      font-size: 1.35rem;
      font-weight: 900;
      color: #f8fafc;
      margin-bottom: 1.5rem;
      letter-spacing: -0.02em;
    }

    .contact-info-section{
      background: #141a22;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      padding: 1.75rem;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .contact-item{
      display: flex;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .contact-item:last-of-type{
      border-bottom: none;
    }

    .contact-icon{
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
      display: grid;
      place-items: center;
      color: #94a3b8;
      flex-shrink: 0;
    }

    .contact-label{
      font-size: .8rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: #64748b;
      margin-bottom: .25rem;
    }

    .contact-value{
      font-size: 1.05rem;
      font-weight: 700;
      color: #f8fafc;
      text-decoration: none;
      transition: color .2s ease;
    }

    a.contact-value:hover{
      color: rgba(239,68,68,.95);
    }

    .contact-form-section{
      background: #141a22;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      padding: 1.75rem 2rem;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .contact-form{
      display: grid;
      gap: 1.25rem;
    }

    .form-group{
      display: grid;
      gap: .5rem;
    }

    .form-label{
      font-size: .9rem;
      font-weight: 800;
      color: #cbd5e1;
      letter-spacing: .01em;
    }

    .form-input,
    .form-textarea{
      width: 100%;
      padding: .85rem 1rem;
      background: #10161d;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 10px;
      font-size: .98rem;
      color: #f8fafc;
      font-family: inherit;
      transition: border-color .2s ease, background .2s ease;
    }

    .form-input:focus,
    .form-textarea:focus{
      outline: none;
      border-color: rgba(239,68,68,.5);
      background: #0b0f14;
    }

    .form-input::placeholder,
    .form-textarea::placeholder{
      color: #64748b;
    }

    .form-textarea{
      resize: vertical;
      min-height: 120px;
    }

    .form-submit{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .6rem;
      padding: .9rem 1.5rem;
      background: linear-gradient(180deg, rgba(139,30,30,1), rgba(111,23,23,1));
      border: none;
      border-radius: 12px;
      color: #fff;
      font-weight: 900;
      font-size: 1rem;
      cursor: pointer;
      transition: transform .2s ease, box-shadow .2s ease;
      margin-top: .5rem;
    }

    .form-submit:hover{
      transform: translateY(-2px);
      box-shadow: 0 12px 30px rgba(139,30,30,0.4);
    }

    .form-submit svg{
      flex-shrink: 0;
    }

    /* Footer */
    footer{
      padding: 2.75rem 0 1.5rem;
      border-top: 1px solid var(--border);
      background: rgba(240,235,230,.85);
      margin-top: 3rem;
    }
    .footer-grid{
      display:grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 1.25rem;
      margin-bottom: 1.5rem;
    }
    .footer-grid h3{
      font-size: 1rem;
      font-weight: 900;
      margin-bottom: .75rem;
      color: rgba(31,41,55,.86);
    }
    .footer-grid p, .footer-grid a{
      color: rgba(31,41,55,.85);
      font-size: .92rem;
    }
    .footer-grid ul{ list-style:none; display:grid; gap:.4rem; }

    .footer-bottom{
      padding-top: 1.25rem;
      border-top: 1px solid var(--border);
      color: rgba(31,41,55,.55);
      text-align:center;
      font-weight: 800;
      font-size: .9rem;
    }

    /* Modal (Vote reason) */
    .modal-overlay{
      position: fixed;
      inset: 0;
      background: rgba(17,24,39,.55);
      display:none;
      align-items:center;
      justify-content:center;
      padding: 1rem;
      z-index: 2000;
    }
    .modal{
      width: min(560px, 100%);
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.18);
      background: rgba(240,235,230,.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: var(--shadow-lg);
      overflow:hidden;
    }
    .modal-head{
      padding: 1rem 1.1rem;
      border-bottom: 1px solid var(--border);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 1rem;
    }
    .modal-title{
      font-weight: 950;
      letter-spacing: -0.01em;
      color: rgba(31,41,55,.60);
    }
    .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.modal-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.modal-close:focus {
  outline: none;
  box-shadow: var(--shadow-sm), var(--focus);
}

    .modal-body{
      padding: 1rem 1.1rem 1.1rem;
      display:grid;
      gap: .75rem;
    }
    .modal-help{
      color: rgba(31,41,55,.60);
      font-size: .95rem;
    }
    textarea{
      width: 100%;
      min-height: 104px;
      resize: vertical;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(240,235,230,.85);
      padding: .85rem .9rem;
      color: rgba(31,41,55,.60);
      font-weight: 650;
      transition: box-shadow .16s ease, border-color .16s ease;
    }
    textarea:focus{ outline:none; box-shadow: var(--focus); border-color: rgba(139,30,30,.35); }
    .modal-foot{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: .75rem;
      flex-wrap: wrap;
      padding: 0 1.1rem 1.1rem;
    }
    .charcount{
      color: rgba(31,41,55,.60);
      font-weight: 850;
      font-size: .92rem;
    }
    .modal-actions{
      display:flex;
      gap: .55rem;
      flex-wrap: wrap;
      justify-content:flex-end;
    }

    /* Subtle entrance */
    @keyframes fadeUp{
      from{ opacity:0; transform: translateY(10px); }
      to{ opacity:1; transform: translateY(0); }
    }
    .card{ animation: fadeUp .45s ease both; }

    @media (max-width: 860px){
      nav ul{ gap: .65rem; }
      .vote-row{ grid-template-columns: repeat(2, minmax(0,1fr)); }
      select{ min-width: 100%; }
      .switcher-note{ width: 100%; }
    }
    /* New profile picture size */
.profile-picture {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Half-width input fields */
.half-width-field {
  width: 48%;
  min-width: 140px;
  box-sizing: border-box;
}

/* Styled radio buttons */
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  cursor: pointer;
  color: #cbd5e1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  cursor: pointer;
}

.radio-group input[type="radio"]:checked {
  border-color: #8B1E1E;
  background: #8B1E1E;
}

.radio-group input[type="radio"]:hover {
  border-color: #8B1E1E;
  box-shadow: 0 0 6px rgba(139,30,30,0.5);
}

/* Form rows for side-by-side alignment */
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Keep half-width fields responsive */
.half-width-field {
  flex: 1 1 48%;
  min-width: 180px; /* prevent being too small on larger screens */
  box-sizing: border-box;
}

/* Optional: for radio group, ensure it fills its container */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* =====================================================
   Activist Page Specific Styles
===================================================== */

.header-grid {
  display: flex ;
  grid-template-columns: 96px 1fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}
.activist-header {
  width: 100vw;           /* full viewport width */
  min-width: 320px;       /* optional: prevent too tiny on very small screens */
  overflow-x: auto;       /* allow horizontal scroll if content is too wide */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  background: rgba(11,15,20,1); /* or same as page background */
  padding: 0.5rem 0;      /* optional padding top/bottom */
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .activist-header .container {
    max-width: none;      /* remove max-width */
    width: max-content;   /* allow it to expand naturally */
    padding: 0 1rem;      /* optional horizontal padding */
    margin: 0; 
  }

  .header-grid {
    display: flex;        /* keep horizontal layout */
    gap: 1rem;            /* smaller gap for mobile */
    align-items: center;
  }

  .activist-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;       /* prevent shrinking */
  }

  .activist-identity {
    flex-shrink: 0;
    min-width: 120px;     /* optional: prevent collapsing text */
  }

  .activist-bio {
    display: inline-block; /* show if you want it scrollable */
    min-width: 200px;
  }

  .activist-name {
    font-size: 1.5rem; /* smaller for mobile */
  }

  .activist-meta,
  .activist-joined,
  .activist-bio {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .credibility-panel {
    justify-content: center; /* center UL items */
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

.activist-avatar {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
}

.activist-identity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activist-name {
  font-size: 2rem;
  font-weight: 300;
  margin: 0;
  line-height: 1;
}

.activist-meta,
.activist-joined {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1;
}

.activist-meta::after {
  content: "·";
  margin: 0 0.3rem;
}

/* --- Civic Summary (Bio) --- */
.activist-bio {
  grid-column: 3;
  margin: 0;            /* remove any default margin */
  padding: 0;
  color: #6b7280;
  font-size: 1.5rem;
  line-height: 1.5;     /* tighter spacing */
}
.activist-bio ul.credibility-panel {
  margin-top: 1rem; /* adjust this value to your taste */
}

.credibility-panel {
  grid-column: 3;
  margin: 0;            /* remove default UL margin */
  padding: 0;           /* remove default UL padding */
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;    /* small vertical gap, bigger horizontal gap */
  font-size: 1rem;
  color: #96a1b3;
  list-style: none;
  align-items: flex-start; /* make all items align to top */
}


.follow-grid {
  display: flex;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 768px) {
  .follow-grid .btn.btn-primary {
    font-size: 0.85rem;      /* smaller text */
    padding: 0.4rem 0.8rem;  /* less padding */
    border-radius: 12px;     /* slightly smaller corners */
    width: 100%;             /* optional: full width of container */
    max-width: 150px;        /* optional max width */
  }
}

@media (max-width: 768px) {
  .follow-grid select.follow-intent {
    width: 100%;          /* full width of container */
    max-width: 280px;     /* optional: limit to prevent huge stretch */
    font-size: 0.85rem;   /* smaller text for mobile */
    padding: 0.4rem 0.6rem;
  }

  .follow-grid {
    flex-direction: column; /* stack button + select */
    align-items: flex-start; /* align items left or center if you prefer */
    gap: 0.5rem;             /* reduce vertical gap */
  }

  .follow-grid .btn {
    width: 100%;             /* button fills width too */
    max-width: 280px;
  }
}


/* Post Card Base */
.post-card {
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Meta row */
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .82rem;
  color: #9ca3af;
  opacity: 0.85;
}

/* Date */
.post-date {
  font-weight: 700;
  letter-spacing: .02em;
}

/* Topic pill */
.post-topic {
  padding: .25rem .6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
}

/* Main text */
.post-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #f1f5f9;
  margin: .5rem 0 1rem;
}

/* Reactions row */
.post-reactions {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  font-weight: 700;
  color: #94a3b8;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Positive endorsement highlight */
.post-reactions span,
.post-reactions {
  letter-spacing: .01em;
}


/* Stance Card */
.stance-card {
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  padding: 1.4rem 1.45rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  display: grid;
  gap: .75rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.stance-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 48px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Topic title */
.stance-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f8fafc;
  margin-bottom: .15rem;
}

/* Meta line */
.stance-meta {
  font-size: .85rem;
  font-weight: 700;
  color: #9ca3af;
  opacity: 0.85;
}

/* Opinion text */
.stance-opinion {
  font-size: .98rem;
  line-height: 1.65;
  color: #e5e7eb;
  margin: .4rem 0 .75rem;
}

/* Button row */
.stance-card .btn {
  margin-top: .25rem;
}

.stance-card .btn + .btn {
  margin-left: .5rem;
}


/* Modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 20, 0.5);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* high enough to be on top */
  overflow-y: auto;
  padding: 1rem; /* prevents content from touching edges */
  box-sizing: border-box;
}

.modal.hidden {
  display: none;
}

/* Modal content */
.modal-content {
  position: relative; /* prevent any weird offset */
  width: min(720px, 92vw);
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  border: none;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.12);
  display: grid;
  gap: 1.25rem;
  overflow: hidden;
  margin: auto; /* extra safety */
}

/* Modal title */
.modal-content h3 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #f8fafc;
  margin: 0;
}

/* Table */
.modal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* Table header */
.modal-content th {
  text-align: left;
  padding: 0.65rem 0.5rem;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table cells */
.modal-content td {
  padding: 0.65rem 0.5rem;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

/* Row hover */
.modal-content tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
}

/* Stance emphasis */
.modal-content td:nth-child(2) {
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* Explanation column */
.modal-content td:nth-child(3) {
  color: #cbd5e1;
  line-height: 1.55;
}

/* Last row cleanup */
.modal-content tr:last-child td {
  border-bottom: none;
}



/* =====================================================
   ENDORSEMENT LEDGER
===================================================== */

.endorsement-ledger p {
  text-align: center;
  max-width: 760px;
  margin: -1rem auto 1.75rem;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.6;
}

/* Chart placeholder */
.endorsement-chart-placeholder,
.trust-graph-placeholder {
  height: 320px; /* bigger than 180px */
  width: 100%; /* full width of container */
  max-width: 720px; /* optional max width */
  margin: 0 auto; /* center it */
  border-radius: 18px;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  display: flex;
  place-items: center;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}

.endorsement-chart-placeholder:hover,
.trust-graph-placeholder:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 48px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.endorsement-chart-placeholder canvas {
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 768px) {
  .endorsement-chart-placeholder,
  .trust-graph-placeholder {
    height: 220px;       /* smaller height for mobile */
    max-width: 100%;      /* fill the mobile screen width */
    margin: 0 auto;
  }

  .endorsement-chart-placeholder canvas,
  .trust-graph-placeholder canvas {
    width: 100% !important;
    height: 100% !important;
  }
}

/* =====================================================
   TRUST NETWORK
===================================================== */

.trust-graph-placeholder {
  margin-top: .75rem;
}

/* =====================================================
   CIVIC CONSISTENCY INDICATORS
===================================================== */

.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
}

.indicators-grid > div {
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  font-size: .95rem;
  font-weight: 700;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.indicators-grid strong {
  font-weight: 900;
  letter-spacing: .02em;
}

/* =====================================================
   TRANSPARENCY PANEL
===================================================== */

.transparency-panel {
  background: linear-gradient(
    180deg,
    rgba(11,15,20,1),
    rgba(11,15,20,0.85)
  );
  border-top: 1px solid rgba(255,255,255,0.08);
}

.transparency-panel ul {
  list-style: none;
  display: grid;
  gap: .65rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 0;
  color: #94a3b8;
  font-size: .95rem;
}

.transparency-panel li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .35rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.transparency-panel li:last-child {
  border-bottom: none;
}


* {
  box-sizing: border-box;
}


.page {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  gap: 20px;
  padding: 20px;
}

/* GENERAL ROW */
.row {
  display: grid;
  gap: 16px;
}

/* =====================
   ROW 1
===================== */
.row-1 {
  grid-template-columns: 2fr 1fr; /* 1.1 left / 1.2 right */
}

/* LEFT 1.1 */
.left-1-1 {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 16px;
}

/* 1.1.1 */
.subrow-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 1.1.2 */
.subrow-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 1.1.3 */
.subrow-3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

/* RIGHT 1.2 */
.right-1-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* grid of 2 columns */
  gap: 12px;
}

/* =====================
   ROW 2
===================== */
.row-2 {
  grid-template-columns: repeat(3, 1fr);
}

/* =====================
   ROW 3
===================== */
.row-3 {
  grid-template-columns: 1fr;
}

/* =====================
   ROW 4, 5, 6
===================== */
.row-4,
.row-5,
.row-6 {
  grid-template-columns: 1fr;
}

/* DEMO BOX STYLE */
.box {
  background: #0b0f14;
  padding: 16px;
  border-radius: 12px;
  min-height: 80px;

  /* depth instead of border */
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.6);
}

/* =========================
   PROFILE PAGE MOBILE FIX
========================= */

/* Improve profile card spacing */
.profile-card{
  max-width: 500px;
  margin: 0 auto;
}

.profile-top{
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-avatar{
  width: 64px;
  height: 64px;
  font-size: 1.2rem;
}

.profile-name{
  word-break: break-word;
}

/* -------------------------
   Mobile Navigation
------------------------- */

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.4rem;
  padding: .4rem .7rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Mobile layout */
@media (max-width: 768px){

  .header-content{
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  nav {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.9); /* white with 80% opacity */
      display: none;
      padding: 1rem 0;
  }

  nav ul{
    display: flex;
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }

  nav ul li a{
    display: block;
    padding: .75rem 1rem;
  }

  nav.active{
    display: block;
  }

  .nav-toggle{
    display: block;
  }

  /* Profile stacking */
  .profile-top{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-avatar{
    width: 72px;
    height: 72px;
  }

}

/* =========================
   USER PROFILE FORM FIX
========================= */

/* Form row layout */
.form-row{
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* Half width fields (desktop) */
.half-width-field{
  flex: 1 1 calc(50% - .75rem);
  display: flex;
  flex-direction: column;
}

/* Full width */
.full-width-field{
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

/* Inputs consistent styling */
.form-group input,
.form-group textarea{
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #10161d;
  color: #f8fafc;
  font-size: .95rem;
}

.form-group label{
  margin-bottom: .4rem;
  font-weight: 700;
  font-size: .9rem;
  color: #cbd5e1;
}

/* Add to your style.css or in a <style> tag */
@media (max-width: 768px) {
  /* Stack all columns vertically */
  .row {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* optional spacing between rows */
  }

  /* Ensure all inner columns take full width */
  .row .col {
    width: 100%;
    flex: none;
  }

  /* Stack inner subrows vertically */
  .subrow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Stack boxes inside subrows vertically */
  .subrow .box {
    width: 100%;
  }

  /* Grid elements inside right columns (e.g., activist cards, keypoints) */
  .grid, .principles-grid, .indicators-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Video iframe full width */
  .video-switcher iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  /* Ensure reflection buttons wrap nicely */
  .reflection-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}
