/* GLOBAL */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0b0b0f; /* deep stage-black */
    color: #f5f5f7; /* pure white for readability */
}

/* ACCENT COLOURS */
:root {
    --accent: #a200ff;     /* neon purple */
    --accent-2: #ff0099;     /* neon pink */
    --text: #ffffff;
    --dim-text: #b8b8c7;
}

/* TOP BAR */
.top-bar {
    width: 100%;
    height: 60px;
    background: #111118;
    border-bottom: 1px solid #222;
    color: var(--text);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.menu-icon {
    font-size: 27px;
    cursor: pointer;
    margin-right: 20px;
    color: var(--accent);
}

.profile-login {
    color: var(--accent2);
    margin-left: auto;
    text-decoration: none;
    font-size: 18px;
}

.profile-login:hover {
    text-shadow: 0 0 10px var(--accent2);
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: -400px;
    top: 0;
    width: 260px;
    height: 100%;
    background: #0f0f17;
    padding-top: 80px;
    transition: right 0.3s ease;
    border-left: 1px solid #1f1f2a;
}

.sidebar.show {
    left: 0;
}

.sidebar a {
    display: block;
    padding: 15px 25px;
    color: var(--dim-text);
    font-size: 16px;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar a.active,
.sidebar a:hover {
    color: var(--accent2);
    background: rgba(0, 234, 255, 0.08);
    border-left: 3px solid var(--accent2);
}

/* CONTENT */
.content {
    padding: 50px 10%;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid #1b1b26;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

section.reveal {
    opacity: 1;
    transform: translateY(0);
}

section h1 {
    font-size: 2.4rem;
    color: var(--accent);
    text-shadow: 0 0 12px rgba(162, 0, 255, 0.6);
    margin-bottom: 15px;
}

section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
}


/* SIDEBAR BACKDROP OVERLAY */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,20,0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
}

#overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ENSURE SIDEBAR LAYERS ABOVE CONTENT */
.sidebar {
    z-index: 10;
}

/* IMAGE + LINKS BLOCKS */
.media-block {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #222;
    border-radius: 10px;
    background: #111118;
}

.media-block a {
    color: var(--accent2);
}

/* Additional styling for improved aesthetics */
:root{
  --bg:#07070a;
  --panel:#0f1115;
  --muted:#9aa1b2;
  --accent:#e754ff;   /* magenta-ish cyber accent */
  --accent-2:#00d4ff; /* cyan */
  --glass: rgba(255,255,255,0.03);
  --card-shadow: 0 6px 28px rgba(0,0,0,0.6);
  --radius:14px;
  --mono: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body.dark{
  background: radial-gradient(1200px 400px at 10% 10%, rgba(231,84,255,0.06), transparent 6%),
              radial-gradient(900px 300px at 95% 90%, rgba(0,212,255,0.03), transparent 8%),
              var(--bg);
  color:#e6eef8;
  font-family:var(--mono);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  margin:0;
}

/* Topbar */
.topbar{
  position:fixed;
  top:12px;
  left:12px;
  right:12px;
  z-index:60;
  display:flex;
  align-items:center;
  gap:16px;
  padding:10px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius:12px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(6px) saturate(120%);
}

.topbar.small{ top:10px; left:10px; right:10px; }

.left-controls{ display:flex; gap:8px; align-items:center; }
.icon-btn{
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.03);
  color:var(--muted);
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
  font-size:18px;
}
.icon-btn:hover{ color:var(--accent-2) }

.profile-login{
  color:var(--muted);
  text-decoration:none;
  padding:6px 8px;
  font-weight:600;
  border-radius:8px;
}
.profile-login:hover{ color:var(--accent) }

.brand{ margin-left:auto; display:flex; gap:12px; align-items:center; }
.logo-spot{
  min-width:44px; min-height:44px;
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;color:#071023;font-size:16px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.5);
}
.brand-text .name{ font-weight:700; font-size:15px; }
.brand-text .sub{ font-size:12px; color:var(--muted); }

/* Sidebar */
.sidebar{
  position:fixed; top:0; right:-320px; width:320px; height:100vh; padding:72px 18px 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-left: 1px solid rgba(255,255,255,0.03);
  z-index:70; transition:right .36s cubic-bezier(.2,.9,.2,1);
  display:flex; flex-direction:column; gap:12px;
}
.sidebar.open{ right:0; }

.sidebar nav{ display:flex; flex-direction:column; gap:6px; }
.sidebar .nav-item{
  color:var(--muted); text-decoration:none; padding:12px 14px; border-radius:10px;
  display:block; font-weight:600; transition:transform .18s ease, background .18s;
}
.sidebar .nav-item:hover{ transform:translateX(-6px) }
.sidebar .nav-item.active{ background: rgba(255,255,255,0.03); color:#dfe8ff; }

/* close button */
.close-x{
  margin-top:auto; background:transparent; border:0; color:var(--muted); font-size:20px; cursor:pointer;
  padding:8px 10px;
}

/* Main layout */
.main{ padding:120px 48px 80px 48px; max-width:1200px; margin:0 auto; }
.panel{ background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent); padding:28px; margin-bottom:28px; border-radius:12px; box-shadow: var(--card-shadow); border: 1px solid rgba(255,255,255,0.02); }

/* Hero */
.hero{ display:flex; gap:28px; align-items:stretch; }
.hero-left{ flex:1; display:flex; flex-direction:column; gap:12px; }
.hero-left h1{ font-size:34px; margin:0; letter-spacing: -0.02em; }
.lead{ color:var(--muted); font-size:15px; line-height:1.5; margin:0; }
.cta-row{ margin-top:14px; display:flex; gap:10px; }
.cta{ background: linear-gradient(90deg,var(--accent),var(--accent-2)); color:#071023; padding:10px 14px; border-radius:10px; text-decoration:none; font-weight:700; }
.cta.outline{ background:transparent; border:1px solid rgba(255,255,255,0.04); color:var(--muted); }

/* Hero right */
.hero-right{ width:320px; display:flex; flex-direction:column; gap:12px; }
.portrait.placeholder{ background:linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:10px; height:220px; display:flex; align-items:center; justify-content:center; color:var(--muted); border:1px dashed rgba(255,255,255,0.03); }
.quick-stats{ display:flex; flex-direction:column; gap:8px; color:var(--muted); font-size:13px; }

/* Grid / cards */
.grid-2{ display:grid; grid-template-columns:1fr 380px; gap:20px; align-items:start; }
.media-slot .photo{ height:140px; border-radius:10px; margin-bottom:12px; display:flex; align-items:center; justify-content:center; color:var(--muted); border:1px dashed rgba(255,255,255,0.03); }

.edu-card{ display:flex; gap:20px; padding:14px; border-radius:10px; background:linear-gradient(180deg, rgba(255,255,255,0.005), transparent); }
.edu-left{ width:220px; }
.edu-right{ flex:1; }
.slot-photos{ margin-top:10px; display:flex; gap:8px; }
.small-photo{ width:84px; height:64px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--muted); border:1px dashed rgba(255,255,255,0.03); }

.simple-list{ list-style:none; padding:0; margin:0; color:var(--muted) }
.simple-list li{ padding:8px 0; border-bottom:1px dashed rgba(255,255,255,0.02) }

.media-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:12px; }
.card.placeholder{ height:110px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--muted); border:1px dashed rgba(255,255,255,0.03); }

/* Volunteering grid */
.vol-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:30px; }
.vol-card{ padding-top:5px; padding-left: 40px; border-radius:10px; background:rgba(255,255,255,0.01);}


/* Experience grid */
.exp-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.exp-card{ padding:12px; border-radius:10px; background:rgba(255,255,255,0.01); margin-bottom: 20px;}

/* Projects */
.proj-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.proj-card{ padding:12px; border-radius:10px; background:rgba(255,255,255,0.01); }
.proj-links a{ margin-right:12px; text-decoration:none; color:var(--muted); font-weight:600; }

/* Contact form */
.contact-form{ display:grid; gap:10px; max-width:640px; }
.contact-form label{ font-size:13px; color:var(--muted); }
.contact-form input, .contact-form textarea{
  background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.03);
  color: #e6eef8; padding:10px; border-radius:8px;
}
.form-actions{ display:flex; gap:8px; margin-top:8px; }
.btn{ background:linear-gradient(90deg,var(--accent),var(--accent-2)); border:0; padding:10px 12px; border-radius:10px; color:#071023; font-weight:700; cursor:pointer; text-decoration: bold; }
.btn.outline{ background:transparent; border:1px solid rgba(255,255,255,0.03); color:var(--muted); }

/* Auth / login page */
.auth-page{ display:flex; align-items:center; justify-content:center; min-height:70vh; padding-left:48px; }
.auth-card {background: rgba(0, 0, 40, 0.95); border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 12px; width: 100%; max-width: 400px; box-shadow: 0 0 15px rgba(0, 255, 255, 0.25); transition: transform 0.25s ease, opacity 0.25s ease; }
.auth-form input{ width:100%; } 


/* responsive */
@media (max-width:980px){
  .grid-2{ grid-template-columns:1fr; }
  .hero{ flex-direction:column; }
  .hero-right{ width:100%; }
  .exp-grid, .proj-grid { grid-template-columns:1fr; }
  .main{ padding:110px 18px 80px 18px; }
  .sidebar{ width:280px; }
}

/* small typography */
.muted{ color:var(--muted); font-size:13px; }
.small{ font-size:12px; color:var(--muted); }
.muted-link{ color:var(--muted); text-decoration:none; font-weight:600; }
.muted-link:hover{ color:var(--accent) }

/* Dropdown wrapper */
/* ==============================
   CV DROPDOWN BUTTON (matches home button)
   ============================== */

.dropdown {
    position: relative;
    width: 100%;
}

.dropbtn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 14px 18px;
    font-size: 1rem;
    color: #fff;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.25s ease;
    font-weight: 500;
}

/* Neon hover effect â€“ same as home button */
.dropbtn:hover {
    background: rgba(0, 225, 255, 0.22);
    box-shadow: 0 0 8px rgba(0, 225, 255, 0.6);
}

/* Arrow style */
.dropbtn .arrow {
    display: inline-block;
    transition: 0.3s ease-in-out;
    transform: rotate(0deg);
}

/* Rotate arrow when open */
.dropdown.open .arrow {
    transform: rotate(90deg);
}

/* Dropdown menu container */
.dropdown-content {
    display: none;
    flex-direction: column;
    margin-top: 8px;
    background: rgba(20, 20, 20, 0.95);
    border-left: 2px solid cyan;
    padding: 6px 0;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.25);
}

/* Show when open */
.dropdown.open .dropdown-content {
    display: flex;
}

/* Dropdown items */
.dropdown-content a {
    display: block;
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s ease;
    border-radius: 4px;
}

/* Hover on items */
.dropdown-content a:hover {
    background: rgba(0, 225, 255, 0.15);
    padding-left: 22px;
}

/* ===============================
   CONTACT FORM: Cyber-Theatre Theme
   =============================== */

#contact {
    padding: 60px 10vw;
    color: #fff;
}

.contact-title {
    font-size: 2.3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 12px cyan;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 650px;
}

/* labels */
.contact-form label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===============================
   CONTACT FORM: Dark Blue Background for Select
   =============================== */

/* Keep everything else as before */
.contact-form input,
.contact-form textarea,
.contact-form select {
    background: #0b0b0f;/* dark blue background */
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 12px 14px;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.25s ease;
}

/* hover glow */
.contact-form select:hover {
    background:#0b0b0f;/* slightly lighter blue on hover */
    border-color: cyan;
}

/* focus glow */
.contact-form select:focus {
    background:#0b0b0f;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.45);
    border-color: cyan;
}

/* textarea size */
.contact-form textarea {
    height: 160px;
    resize: vertical;
}

/* submit button */
.contact-submit {
    background: rgba(0, 255, 255, 0.12);
    border: 1px solid cyan;
    color: white;
    padding: 14px 20px;
    font-size: 1.15rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

/* submit hover animation */
.contact-submit:hover {
    background: rgba(0, 255, 255, 0.32);
    box-shadow: 0 0 15px cyan;
    transform: translateY(-2px);
}

/* submit click interaction */
.contact-submit:active {
    transform: scale(0.97);
}

#wordCount {
    font-size: 0.9rem;
    color: #0ff; /* neon cyan by default */
    text-align: right;
    margin-top: -8px;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

#wordCount.overLimit {
    color: #ff4d4d; /* red if over 500 */
}


/* ============================
   AUTH PAGE (Login + Register)
   ============================ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    padding: 48px;
}

.auth-card {
    width: 420px;
    padding: 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 28px rgba(0,0,0,0.6);
    animation: fadeIn 0.4s ease;
}

.auth-card h2 {
    margin-top: 0;
    color: var(--accent2);
    text-shadow: 0 0 10px rgba(0,212,255,0.5);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form label {
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 8px;
    outline: none;
    transition: 0.25s ease;
}

.auth-form input:focus {
    border-color: var(--accent2);
    box-shadow: 0 0 12px rgba(0,212,255,0.4);
}

/* Submit button */
.auth-form .btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #071023;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.25s ease;
    margin-top: 6px;
}

.auth-form .btn:hover {
    box-shadow: 0 0 14px rgba(0,212,255,0.5);
    transform: translateY(-2px);
}

.auth-form .btn:active {
    transform: scale(0.97);
}

/* Hint text below the form */
.auth-card .muted.small {
    text-align: center;
    margin-top: 10px;
}

.auth-card a {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
}

.auth-card a:hover {
    text-shadow: 0 0 10px var(--accent2);
}

/* Flash messages */
.flash {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-align: center;
}

.flash.success {
    background: rgba(0,255,140,0.15);
    border: 1px solid rgba(0,255,140,0.4);
    color: #00ff8c;
}

.flash.error {
    background: rgba(255,0,0,0.15);
    border: 1px solid rgba(255,0,0,0.4);
    color: #ff6b6b;
}

/* Slide + fade reveal */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(12px);}
    to {opacity: 1; transform: none;}
}

/* ===============================
   ADVENT OF CODE TIMELINE
   =============================== */

.aoc-timeline {
    position: relative;
    margin: 60px auto;
    max-width: 900px;
}

/* vertical center line */
.aoc-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        var(--accent-2),
        transparent
    );
    transform: translateX(-50%);
}

/* timeline row */
.aoc-year {
    position: relative;
    display: flex;
    width: 100%;
    margin: 40px 0;
}

/* left / right alignment */
.aoc-year[data-index]:nth-child(even) {
    justify-content: flex-start;
}

.aoc-year[data-index]:nth-child(odd) {
    justify-content: flex-end;
}

/* card */
.aoc-card {
    width: 380px;
    padding: 18px 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 18px rgba(0,0,0,0.6);
}

/* hover */
.aoc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(0,212,255,0.35);
}

/* node (dot) */
.aoc-node {
    position: absolute;
    left: 50%;
    top: 22px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: translateX(-50%);
    box-shadow: 0 0 14px rgba(0,212,255,0.9);
}

/* card typography */
.aoc-card h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--accent);
}

.aoc-card p {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--muted);
}

.aoc-year:hover .aoc-card {
    transform: translateX(8px);
    box-shadow: 0 0 20px rgba(0,212,255,0.25);
}


/* ===============================
   MOBILE STACKING
   =============================== */
@media (max-width: 900px) {
    .aoc-timeline::before {
        left: 20px;
    }

    .aoc-year {
        justify-content: flex-start !important;
        padding-left: 40px;
    }

    .aoc-card {
        width: 100%;
    }

    .aoc-node {
        left: 20px;
    }
}


/* ===============================
   AOC MODAL
   =============================== */

.aoc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,10,0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.aoc-modal.show {
    display: flex;
}

.aoc-modal-card {
    width: 90%;
    max-width: 720px;
    background: #0f1115;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 0 40px rgba(0,212,255,0.35);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--muted);
    cursor: pointer;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
    gap: 12px;
    margin: 16px 0;
}

.aoc-modal-card a{
    text-decoration: none;
}

.modal-images img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}


/* ===============================
   SLIDE-IN REVEAL ANIMATIONS
   =============================== */

.aoc-year {
    opacity: 0;
    transition: all 0.9s cubic-bezier(.18,.9,.32,1);
}

.aoc-year.from-left {
    transform: translateX(-80px);
}

.aoc-year.from-right {
    transform: translateX(80px);
}

.aoc-year.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* ===============================
   RANK BADGES
   =============================== */

.rank-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* color variants */
.rank-badge.gold {
    background: linear-gradient(135deg,#ffd700,#ffae00);
    color:#2b1a00;
    box-shadow: 0 0 12px rgba(255,215,0,0.6);
}

.rank-badge.silver {
    background: linear-gradient(135deg,#d7d7d7,#9fa4aa);
    color:#1a1a1a;
}

.rank-badge.bronze {
    background: linear-gradient(135deg,#d18b47,#a45a2a);
    color:#1a0f05;
}

.rank-badge.top5 {
    background: rgba(0,212,255,0.15);
    border: 1px solid #00d4ff;
    color:#00d4ff;
}

/* PROFILE AVATAR MENU */
.profile-menu {
    position: relative;
    margin-left: auto;
}

.profile-menu img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0,255,255,0.35);
    box-shadow: 0 0 10px rgba(0,255,255,0.25);
    transition: 0.25s ease;
}

.profile-menu img:hover {
    box-shadow: 0 0 16px rgba(0,255,255,0.7);
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: 54px;
    background: #0f1118;
    border: 1px solid rgba(0,255,255,0.25);
    border-radius: 10px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    padding: 6px 0;
    box-shadow: 0 0 18px rgba(0,255,255,0.35);
    z-index: 999;
}

.profile-dropdown a {
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.profile-dropdown a:hover {
    background: rgba(0,255,255,0.15);
    padding-left: 22px;
}

.profile-dropdown.show {
    display: flex;
}

.exp-card, .vol-card {
    position: relative;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.show-more-btn {
    background: transparent;
    border: none;
    color: cyan;
    cursor: pointer;
    font-weight: 600;
    margin-top: 8px;
    text-align: left;
}

.full-text {
    margin-top: 10px;
    line-height: 1.5;
    display: none;
}


/* ===============================
   RECENT CODING WORK
   =============================== */

.coding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.coding-card {
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.coding-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.35);
}

.coding-card h3 {
  margin: 0 0 6px;
  color: var(--accent-2);
}

.coding-card p {
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(0,234,255,.12);
  color: #00eaff;
}

/* ===============================
   PROJECT MODAL
   =============================== */

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,15,.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.project-modal a {
    text-decoration: none;
}

.project-modal.show {
  display: flex;
}

.project-modal-content {
  width: 90%;
  max-width: 760px;
  background: #0f1115;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid rgba(0,255,255,.15);
  box-shadow: 0 6px 28px rgba(0,0,0,.6);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  border: 0;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.image-placeholder {
  height: 120px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* ===============================
   MEMBERSHIP PAGE
   =============================== */

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.membership-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px;
    position: relative;
    transition: all 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,212,255,0.15);
}

.membership-card.featured {
    border: 2px solid var(--accent-2);
    box-shadow: 0 0 24px rgba(0,212,255,0.2);
}

.membership-card.active {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(231,84,255,0.08), rgba(231,84,255,0.02));
}

.tier-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.tier-badge.free {
    background: rgba(150,150,150,0.15);
    color: #aaa;
}

.tier-badge.basic {
    background: linear-gradient(135deg, #4a9eff, #00d4ff);
    color: #071023;
}

.tier-badge.pro {
    background: linear-gradient(135deg, #e754ff, #ff4da6);
    color: #fff;
}

.tier-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffae00);
    color: #2b1a00;
}

.popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #071023;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.membership-card h3 {
    margin: 8px 0;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-2);
    margin: 16px 0;
}

.price span {
    font-size: 1rem;
    color: var(--muted);
}

.features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.features li {
    padding: 10px 0;
    font-size: 0.95rem;
}

.features li.included {
    color: #00ff8c;
}

.features li.excluded {
    color: var(--muted);
}

.membership-info {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}

.info-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

/* ===============================
   ACCOUNT PAGE
   =============================== */

.account-container {
    max-width: 800px;
    margin: 0 auto;
}

.membership-status {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(231,84,255,0.08), rgba(0,212,255,0.08));
    border-radius: 14px;
    border: 1px solid rgba(0,212,255,0.2);
}

.status-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tier-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    padding: 24px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--accent-2);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.current-value {
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    margin-bottom: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-2);
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--accent);
}

.change-section {
    margin-top: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.change-section input {
    width: 100%;
    margin-bottom: 10px;
}

.twofa-status {
    margin: 8px 0;
}

.status-enabled {
    color: #00ff8c;
    font-weight: 600;
}

.status-disabled {
    color: var(--muted);
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ===============================
   WEB TOOLS PAGE
   =============================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.tool-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,212,255,0.2);
}

.tool-card.locked {
    opacity: 0.6;
    background: linear-gradient(180deg, rgba(100,100,100,0.05), transparent);
}

.tool-card.coming-soon {
    opacity: 0.5;
    border-style: dashed;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tool-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.unlocked {
    background: rgba(0,255,140,0.15);
    color: #00ff8c;
}

.badge.locked {
    background: rgba(255,100,100,0.15);
    color: #ff6b6b;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px 0;
}

.tool-features li {
    padding: 8px 0;
    color: var(--muted);
}

.tools-info {
    margin-top: 60px;
    padding: 28px;
    background: rgba(0,212,255,0.05);
    border-radius: 14px;
    border: 1px solid rgba(0,212,255,0.15);
    text-align: center;
}

.accent-link {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
}

.accent-link:hover {
    text-shadow: 0 0 10px var(--accent-2);
}

/* ===============================
   DISCORD PAGE
   =============================== */

.discord-container {
    margin: 40px 0;
}

.discord-welcome,
.discord-locked {
    background: linear-gradient(180deg, rgba(88,101,242,0.08), rgba(88,101,242,0.02));
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: 14px;
    padding: 32px;
}

.welcome-card {
    max-width: 700px;
    margin: 0 auto;
}

.discord-channels {
    margin: 32px 0;
}

.channel-group {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}

.channel-group.locked {
    opacity: 0.6;
}

.channel-group h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.channel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.channel-list li {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
}

.channel-list li.locked {
    color: var(--muted);
    opacity: 0.5;
}

.discord-invite {
    margin-top: 32px;
    padding: 24px;
    background: rgba(88,101,242,0.1);
    border-radius: 10px;
    text-align: center;
}

.discord-btn {
    background: #5865F2;
    color: white;
    display: inline-flex;
    align-items: center;
}

.discord-btn:hover {
    background: #4752C4;
}

.invite-link {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.invite-link input {
    flex: 1;
}

.discord-locked {
    text-align: center;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.preview-channels {
    margin: 32px auto;
    max-width: 500px;
    text-align: left;
}

.channel-preview {
    list-style: none;
    padding: 0;
}

.channel-preview li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.community-guidelines {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.guideline-card {
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}

.guideline-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    .membership-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .status-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tier-display {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===============================
   FLASH MESSAGES
   =============================== */

.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.flash {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.flash.success {
    background: linear-gradient(135deg, rgba(0,255,140,0.2), rgba(0,255,140,0.1));
    border: 1px solid rgba(0,255,140,0.4);
    color: #00ff8c;
}

.flash.error {
    background: linear-gradient(135deg, rgba(255,70,70,0.2), rgba(255,70,70,0.1));
    border: 1px solid rgba(255,70,70,0.4);
    color: #ff6b6b;
}

.flash.info {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,212,255,0.1));
    border: 1px solid rgba(0,212,255,0.4);
    color: var(--accent-2);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Auto-dismiss animation */
.flash.dismissing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .flash-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ===============================
   PAYMENT MODAL
   =============================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,15,0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 550px;
    background: #0f1115;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(0,212,255,0.2);
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    position: relative;
    animation: slideUp 0.3s ease;
}

.payment-modal {
    max-width: 600px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-2);
}

.payment-summary {
    background: linear-gradient(135deg, rgba(231,84,255,0.08), rgba(0,212,255,0.08));
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.tier-summary h3 {
    margin: 0 0 8px 0;
    color: var(--accent-2);
}

.price-large {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin: 12px 0;
}

.price-large span {
    font-size: 1.2rem;
    color: var(--muted);
}

.summary-perks {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.summary-perks li {
    padding: 6px 0;
    color: #00ff8c;
    font-size: 0.95rem;
}

#payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#payment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#payment-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

#payment-form input {
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

#payment-form input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 12px rgba(0,212,255,0.3);
}

.stripe-element {
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: border 0.3s;
}

.stripe-element:focus-within {
    border-color: var(--accent-2);
    box-shadow: 0 0 12px rgba(0,212,255,0.3);
}

.payment-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 4px;
    min-height: 20px;
}

.payment-terms {
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--accent-2);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-pay {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-secure {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 12px 0 0 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===============================
   PERKS & FAQ SECTIONS
   =============================== */

.perks-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.perk-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.perk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,212,255,0.15);
    border-color: rgba(0,212,255,0.3);
}

.perk-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.perk-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
}

.perk-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.membership-faq {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 20px;
}

.faq-item h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: var(--accent-2);
}

.faq-item p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===============================
   ACCOUNT PAGE ADDITIONS
   =============================== */

.tier-perks {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
}

.membership-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.discord-steps {
    background: rgba(255,255,255,0.02);
    padding: 20px 20px 20px 40px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-2);
    margin: 20px 0;
}

.discord-steps li {
    padding: 8px 0;
    color: var(--muted);
}

.discord-steps code {
    background: rgba(0,212,255,0.15);
    color: var(--accent-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 24px 20px;
    }
    
    .payment-summary {
        padding: 20px;
    }
    
    .price-large {
        font-size: 2.2rem;
    }
    
    .membership-actions {
        flex-direction: column;
    }
    
    .membership-actions .btn {
        width: 100%;
    }
}