@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
    --red:              #ff0000;
    --red-dim:          #cc0000;
    --red-glow:         #ff000066;
    --red-faint:        #ff000015;
    --red-deep:         #5c010c;
    --dark:             #000000;
    --dark2:            #0a0000;
    --dark3:            #110000;
    --dark4:            #1a0000;
    --gray:             #330000;
    --text:             #ff4444;
    --text-dim:         #882222;
    --text-bright:      #e84242;
    --white:            #ffcccc;

    /* Legacy compat */
    --color-primary:         var(--white);
    --color-danger:          var(--red);
    --color-success:         #ff3355;
    --color-warning:         #ffbb55;
    --color-white:           var(--white);
    --color-info-dark:       #3a0010;
    --color-info-light:      #884444;
    --color-dark:            #ffcccc;
    --color-light:           rgba(0,0,0,0.8);
    --color-primary-variant: var(--red);
    --color-dark-variant:    var(--text-dim);
    --color-background:      var(--dark);
    --color-main:            var(--red);
    --background:            var(--dark);

    --card-border-radius: 2rem;
    --border-radius-1:    0.4rem;
    --border-radius-2:    0.8rem;
    --border-radius-3:    1.2rem;
    --padding-1:          1.2rem;
    --box-shadow:         0 0 20px var(--red-glow);

    --font-family: 'Share Tech Mono', 'Courier New', monospace;
    --font-display: 'Orbitron', sans-serif;

    --red-btn:    #ff006e;
    --yellow-btn: #ffd60a;
    --green-btn:  #ff3355;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0; padding: 0; outline: 0;
    appearance: none; border: 0;
    text-decoration: none; list-style: none;
    box-sizing: border-box;
}

html { font-size: 14px; height: 100%; }

/* ===== SCANLINES OVERLAY ===== */
body::before {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent, transparent 2px,
        rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ===== VIGNETTE ===== */
body::after {
    content: '';
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    z-index: 9998;
}

body {
    width: 100%; height: 100%;
    font-family: var(--font-family);
    background: var(--dark);
    font-size: 0.88rem;
    user-select: none;
    overflow-x: hidden;
    color: var(--text);
    cursor: crosshair;
}

/* Scanlines */
body::before {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px
    );
    pointer-events: none; z-index: 9999;
}
 
/* Vignette */
body::after {
    content: '';
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.75) 100%);
    pointer-events: none; z-index: 9998;
}

/* ===== LOADING PAGE =====*/
#loading-screen {
    position: fixed; inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
 
#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
 
/* Loading canvas */
#matrix-load {
    position: absolute; inset: 0;
    z-index: 0; pointer-events: none;
}
 
/* Scanlines overlay on loader */
.load-scanlines {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
    );
    pointer-events: none; z-index: 1;
}
 
/* Vignette overlay on loader */
.load-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none; z-index: 2;
}
 
/* Stage wrapper */
.load-stage {
    position: relative; z-index: 10;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 28px;
    animation: load-intro-pop 0.8s cubic-bezier(0.2,0,0,1) 0.2s both;
}
 
/* Logo wrap */
.load-logo-wrap {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
/* Logo wrap — large enough to frame everything */
.load-logo-wrap {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
/* HUD rotating ring — outer (large, behind logo) */
.load-ring-outer {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 0, 0.25);
    top: 0%; left: 0%;
    transform: translate(-50%, -50%);
    animation: load-ring-spin 20s linear infinite;
    pointer-events: none;
}
 
/* HUD rotating ring — inner (slightly smaller, dashed) */
.load-ring-inner {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px dashed rgb(6, 101, 101);
    top: 5%; left: 5%;
    transform: translate(-50%, -50%);
    animation: load-ring-spin 30s linear infinite reverse;
    pointer-events: none;
}
 
/* 4 corner L-brackets — large, positioned at corners of the wrap */
.load-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: #ff0000;
    border-style: solid;
    opacity: 0.85;
    /* box-shadow: 0 0 8px rgba(255, 0, 0, 0.5), 0 0 16px rgba(255, 0, 0, 0.2); */
    z-index: 10;
}
.load-corner-tl { top: 0;  left: 0;  border-width: 2px 0 0 2px; }
.load-corner-tr { top: 0;  right: 0; border-width: 2px 2px 0 0; }
.load-corner-bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.load-corner-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
 
/* Main logo */
.load-logo-img {
    width: 280px; height: 280px;
    object-fit: contain;
    position: relative; z-index: 5;
    filter: drop-shadow(0 0 8px rgba(255,0,0,0.5))
            drop-shadow(0 0 20px rgba(255,0,0,0.25));
    animation: load-logo-pulse 2.5s ease-in-out infinite 1s;
}
 
/* Chromatic aberration — red */
.load-logo-red {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 4; mix-blend-mode: screen; pointer-events: none;
}
.load-logo-red img {
    width: 280px; height: 280px; object-fit: contain;
    opacity: 0.55; animation: load-chroma-red 3.5s ease-in-out infinite 1.5s;
    filter: url(#red-filter);
}
 
/* Chromatic aberration — cyan */
.load-logo-cyan {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 3; mix-blend-mode: screen; pointer-events: none;
}
.load-logo-cyan img {
    width: 280px; height: 280px; object-fit: contain;
    opacity: 0; animation: load-chroma-cyan 3.5s ease-in-out infinite 1.5s;
    filter: url(#cyan-filter);
}
 
/* Status bar */
.load-status {
    position: absolute;
    bottom: -36px; left: 0; right: 0;
    text-align: center; font-size: 9px;
    color: rgba(0,255,65,0.55); letter-spacing: 3px;
    animation: load-blink 1.5s steps(1) infinite;
    white-space: nowrap;
}
 
/* Title */
.load-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(24px, 4vw, 46px);
    letter-spacing: 0.25em;
    color: var(--red);
    text-shadow: 0 0 10px rgba(255,0,0,0.7), 0 0 30px rgba(255,0,0,0.3);
    position: relative;
    animation: load-title-glitch 4s steps(1) infinite 2.2s;
}
 
.load-title::before {
    content: 'CYBERHACKIT';
    position: absolute; left: -3px; top: 0;
    color: #00ffff; opacity: 0;
    text-shadow: 0 0 10px #00ffff;
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
    animation: load-chroma-title-a 4s steps(1) infinite 2.2s;
}
.load-title::after {
    content: 'CYBERHACKIT';
    position: absolute; left: 3px; top: 0;
    color: var(--red); opacity: 0;
    clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
    animation: load-chroma-title-b 4s steps(1) infinite 2.2s;
}
 
/* Subtitle */
.load-subtitle {
    font-size: 11px; color: rgba(0,255,255,0.4);
    letter-spacing: 8px; text-transform: uppercase;
}
 
/* Progress bar */
.load-progress-wrap {
    width: 300px; display: flex;
    flex-direction: column; gap: 6px;
}
 
.load-progress-label {
    display: flex; justify-content: space-between;
    font-size: 10px; color: rgba(255,68,68,0.6); letter-spacing: 2px;
}
 
.load-progress-track {
    width: 100%; height: 3px;
    background: #110000; border: 1px solid #330000; overflow: hidden;
}
 
.load-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #880000, #ff0000);
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
    transition: width 0.05s linear;
}
 
/* ---- Loading Keyframes ---- */
@keyframes load-intro-pop {
    from { opacity: 0; transform: scale(1.05) translateY(12px); filter: blur(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0);       filter: blur(0); }
}
 
@keyframes load-logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255,26,26,0.3)) drop-shadow(0 0 15px rgba(255,26,26,0.10)); }
    50% { filter: drop-shadow(0 0 10px rgba(255,26,26,0.3)) drop-shadow(0 0 25px rgba(255,26,26,0.20)); }
}
 
@keyframes load-chroma-red {
    0%,80%,100% { transform: translateX(0); }
    81%  { transform: translateX(-10px); }
    83%  { transform: translateX(8px);   }
    85%  { transform: translateX(-4px);  }
    87%  { transform: translateX(0);     }
}
 
@keyframes load-chroma-cyan {
    0%,86%,100% { transform: translateX(0); opacity: 0; }
    87% { transform: translateX(6px);  opacity: 0.5; }
    89% { transform: translateX(-3px); opacity: 0.3; }
    91% { transform: translateX(0);    opacity: 0;   }
}
 
@keyframes load-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
 
@keyframes load-title-glitch {
    0%,93%,100% { transform: translateX(0); clip-path: none; }
    94% { transform: translateX(-4px); clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); }
    95% { transform: translateX(4px);  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); }
    96% { transform: translateX(0);    clip-path: none; }
}
 
@keyframes load-chroma-title-a {
    0%,93%,100% { opacity: 0; }
    94%,95% { opacity: 0.8; transform: translateX(-4px); }
    96% { opacity: 0; }
}
 
@keyframes load-chroma-title-b {
    0%,93%,100% { opacity: 0; }
    94%,95% { opacity: 0.7; transform: translateX(4px); }
    96% { opacity: 0; }
}
 
@keyframes load-blink {
    0%,49%   { opacity: 0.55; }
    50%,100% { opacity: 0; }
}
 


/* ===== MATRIX CANVAS ===== */
.matrix-bg {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

/* ===== CONTAINER ===== */
.container {
    display: contents;
    width: 100%; height: 100vh;
    margin: 0; position: relative; padding: 0;
}

/* ===== BASE ELEMENTS ===== */
a { color: var(--text-dim); }
a:hover { color: var(--red); }
img { display: block; width: 100%; }

h1 { font-weight: 800; font-size: 1.8rem; font-family: var(--font-display); color: var(--red); text-shadow: 0 0 10px var(--red-glow); }
h2 { font-size: 1.4rem; font-family: var(--font-display); color: var(--text); }
h3 { font-size: 0.87rem; }
h4 { font-size: 0.8rem; }
h5 { font-size: 0.77rem; }
small { font-size: 0.75rem; }

.profile-photo { width: 2.8rem; height: 2.8rem; border-radius: 50%; overflow: hidden; border: 1px solid var(--red-dim); }
.text-muted { color: var(--text-dim); }
p { color: var(--text-dim); }
b { color: var(--text); }

.primary { color: var(--white); }
.danger  { color: var(--red); text-shadow: 0 0 6px var(--red-glow); }
.success { color: #ff3355; }
.warning { color: var(--color-warning); }
.white   { color: var(--white); }

/* ===== GLITCH ANIMATION ===== */
@keyframes glitch {
    0%,95%,100% { transform: translate(0); clip-path: none; opacity: 1; }
    96% { transform: translate(-2px,1px); clip-path: inset(10% 0 80% 0); opacity: 0.8; }
    97% { transform: translate(2px,-1px); clip-path: inset(60% 0 20% 0); opacity: 0.9; }
    98% { transform: translate(-1px,2px); clip-path: inset(40% 0 50% 0); opacity: 0.7; }
}

@keyframes blink {
    0%,49% { opacity: 1; }
    50%,100% { opacity: 0; }
}

@keyframes pulse-red {
    0%,100% { box-shadow: 0 0 5px var(--red-glow), inset 0 0 5px rgba(255,0,0,0.03); }
    50%      { box-shadow: 0 0 20px var(--red-glow), inset 0 0 10px rgba(255,0,0,0.06); }
}

@keyframes flicker {
    0%,96%,100% { opacity: 1; }
    97% { opacity: 0.85; }
    99% { opacity: 0.9; }
}

@keyframes glow {
    0%,100% { filter: drop-shadow(0 0 10px #7f0015) drop-shadow(0 0 20px rgba(255,0,0,0.3)); }
    50%      { filter: drop-shadow(0 0 10px #7f0015) drop-shadow(0 0 30px rgba(255,0,0,0.5)); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scanBorder {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ===== SIDEBAR ===== */
aside {
    padding-left: 2vh;
    background: var(--dark);
    height: 100vh;
    position: fixed;
    width: 7.5%;
    border-right: 2px solid var(--red-deep);
    box-shadow: 4px 0 20px rgba(255,0,0,0.15), 4px 0 60px rgba(100,0,10,0.12);
    z-index: 100;
    animation: flicker 10s infinite;
}

aside::before {
    content: '';
    position: absolute;
    top: 0; right: -1px;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--red), transparent);
    opacity: 0.6;
}

/* TOP LOGO */
aside .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

aside .top .logo {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    position: relative;
    cursor: pointer;
}

aside .top .logo img {
    width: 6rem; height: 4rem;
    z-index: 1;
    filter: drop-shadow(0 0 6px var(--red-glow));
}

aside .top .logo .text {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    transform: translateX(-40px);
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    text-shadow: 0 0 10px var(--red), 0 0 20px var(--red-glow);
    animation: 7s infinite;
}

aside .top .logo:hover .text {
    transform: translateX(0);
    opacity: 1;
}

/* SIDEBAR LINKS */
aside .sidebar {
    display: flex;
    flex-direction: column;
    height: 86vh;
    position: relative;
    top: 3rem;
}

aside .sidebar a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    cursor: pointer;
    padding: 25px 0 15px 20px;
    transition: background 0.2s;
}

aside .sidebar a::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 0;
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
    transition: height 0.25s;
}

aside .sidebar a:hover::before,
aside .sidebar a.active::before { height: 60%; }

aside .sidebar .material-symbols-outlined {
    font-size: 3rem;
    color: var(--text-dim);
    transition: color 0.2s, text-shadow 0.2s;
}

aside .sidebar a:hover .material-symbols-outlined,
aside .sidebar a.active .material-symbols-outlined {
    color: var(--red);
    text-shadow: 0 0 8px var(--red);
}

aside .sidebar h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 2px;
    padding-top: 10px;
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.35s ease;
    white-space: nowrap;
    background: var(--dark3);
    border: 1px solid var(--gray);
    border-radius: 4px;
}

aside .sidebar a:hover h3 {
    transform: translateX(0);
    opacity: 1;
    box-shadow: 0 0 10px var(--red-glow), 0 0 30px rgba(100,0,10,0.3);
    padding: 8px 12px;
    color: var(--red);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 7%;
    width: 93%;
    padding: 2rem;
    color: var(--text);
    position: relative;
    overflow-y: auto;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--red-dim) transparent;
}

.main-content::-webkit-scrollbar { width: 4px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: var(--red-dim); }

/* ===== PAGES ===== */
.page {
    display: none;
    animation: slideIn 0.4s ease;
}

.page.active { display: block; }

.main-content .page {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* ===== TERMINAL WINDOW (shared mixin) ===== */
.terminal-window,
.terminal-window-add,
.terminal-window-tool {
    background: var(--dark);
    border: 1px solid var(--gray);
    border-top: 2px solid var(--red-dim);
    border-radius: 6px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 0 30px rgba(200,30,50,0.25), 0 0 80px rgba(50,0,10,0.2);
    position: relative;
    overflow: hidden;
    animation: pulse-red 4s ease-in-out infinite;
}

/* Top scan-line shimmer on terminal */
.terminal-window::before,
.terminal-window-add::before,
.terminal-window-tool::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* ===== TERMINAL BUTTONS ===== */
.terminal-header,
.terminal-header-add,
.terminal-header-tool {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.terminal-btn {
    width: 12px; height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 5px currentColor;
}

.btn-red    { background: var(--red-btn);    color: var(--red-btn); }
.btn-yellow { background: var(--yellow-btn); color: var(--yellow-btn); }
.btn-green  { background: var(--green-btn);  color: var(--green-btn); }

/* ===== HOME PAGE ===== */
.main-content .box { padding: 15% 12%; }

.terminal-window h1 {
    font-size: 48px;
    margin-bottom: 30px;
    font-family: var(--font-display);
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--red), #ff6666, var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
}

.typing-text {
    font-size: 20px;
    margin-bottom: 30px;
    min-height: 60px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.cursor {
    display: inline-block;
    width: 10px; height: 20px;
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
    animation: blink 0.8s step-end infinite;
    vertical-align: middle;
}

/* ===== ADD / CONTACT / BLOG PAGES ===== */
.main-content .box-add { padding: 8% 10%; }

/* ===== TOOLS PAGE ===== */
.main-content .box-tool { padding: 5% 10%; }

.tool-content { text-align: center; }

.tool-header {
    display: flex;
    justify-content: center;
    height: 2.7rem;
    padding-bottom: 10%;
}

.tool-logo {
    width: 3.5rem; height: 3rem;
    background: linear-gradient(90deg, var(--red-deep), var(--dark), var(--red-deep));
    border-radius: 10px;
    border: 1px solid var(--gray);
    display: flex; align-items: center; justify-content: center;
}

.tool-logo .material-symbols-outlined {
    padding-top: 0;
    font-size: 1.8rem;
    color: var(--red);
    text-shadow: 0 0 8px var(--red);
}

.tool-name {
    padding-top: 5px;
    padding-left: 2%;
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-display);
    letter-spacing: 3px;
    color: var(--white);
    text-shadow: 0 0 10px var(--red-glow);
}

.toolkit { color: var(--red); text-shadow: 0 0 8px var(--red-glow); }

.toolkit-content {
    display: inline-flex;
    color: var(--text-dim);
    width: 92%;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding-bottom: 5%;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* ===== SEARCH BAR ===== */
.tool-search {
    width: 100%;
    display: flex;
    padding: 0 64px;
    gap: 0;
}

.search-content {
    width: 55%;
    display: flex;
    justify-content: center;
    position: relative;
}

.search-content .search-logo {
    background: var(--dark3);
    padding: 7px 10px;
    display: flex;
    width: 100%;
    border: 1px solid var(--gray);
    border-top: 1px solid var(--red-dim);
    border-radius: 4px 0 0 4px;
    color: var(--text-dim);
    transition: border-color 0.2s;
}

.search-content .search-logo:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
}

.search-content .search-logo .material-symbols-outlined {
    color: var(--red);
    font-size: 1.6rem;
    margin-right: 4px;
}

.search-content input {
    width: 100%; height: 100%;
    background-color: transparent;
    padding: 0 10px;
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
}

.search-content input::placeholder { color: var(--text-dim); }

.search-categories {
    width: 45%;
    display: flex;
    justify-content: center;
    position: relative;
    padding-left: 2px;
}

.search-categories .categories-logo {
    background: var(--dark3);
    padding: 7px 10px;
    display: flex;
    width: 100%;
    border: 1px solid var(--gray);
    border-top: 1px solid var(--red-dim);
    border-radius: 0 4px 4px 0;
    color: var(--text-dim);
}

.search-categories .categories-logo .material-symbols-outlined {
    color: var(--red);
    font-size: 1.6rem;
    margin-right: 4px;
}

.search-categories .categories-select {
    background-color: transparent;
    color: var(--text);
    font-family: var(--font-family);
    font-size: 14px;
    letter-spacing: 0.5px;
    width: 90%;
    padding: 0 6px;
    cursor: pointer;
}

.search-categories .categories-select option {
    background: var(--dark3);
    color: var(--text);
}

/* ===== TOOLKIT HEADER ===== */
.toolkit-book-logo {
    padding: 40px 20px 30px 20px;
    display: flex;
    width: 100%;
    align-items: center;
    border-bottom: 1px solid var(--gray);
    margin-bottom: 16px;
}

.toolkit-book-logo .material-symbols-outlined {
    font-size: 36px;
    color: var(--red);
    text-shadow: 0 0 8px var(--red-glow);
}

.toolkit-book-logo .toolkit-name {
    font-size: 22px;
    font-family: var(--font-display);
    letter-spacing: 3px;
    padding-left: 12px;
    color: var(--white);
    text-shadow: 0 0 8px var(--red-glow);
}

/* ===== TOOLKIT ACCORDION ===== */
#toolkit {
    width: 87%;
    display: inline-block;
}

/* CATEGORY */
.category {
    background: var(--dark3);
    border: 1px solid var(--gray);
    border-top: 2px solid var(--red-dim);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s;
}

.category:hover {
    box-shadow: 0 0 12px var(--red-glow);
}

.category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.5;
}

.category-header {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--red-deep), var(--dark));
    font-size: 15px;
    font-family: var(--font-display);
    letter-spacing: 2px;
    color: var(--text);
    transition: all 0.2s;
    font-weight: 700;
}

.category-header:hover {
    background: var(--dark4);
    color: var(--red);
    text-shadow: 0 0 6px var(--red-glow);
    padding-left: 28px;
}

.category-header span {
    font-family: var(--font-family);
    font-size: 11px;
    color: var(--text-dim);
    background: var(--dark4);
    border: 1px solid var(--gray);
    padding: 2px 8px;
    letter-spacing: 1px;
}

.category-content {
    display: none;
    padding: 14px;
    border-top: 1px solid var(--gray);
}

/* SUB CATEGORY */
.sub-category { margin-bottom: 10px; }

.sub-header {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 14px;
    background: var(--dark);
    border: 1px solid var(--gray);
    border-left: 2px solid var(--red-dim);
    border-radius: 3px;
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: all 0.2s;
}

.sub-header:hover {
    border-left-color: var(--red);
    color: var(--red);
    padding-left: 18px;
    box-shadow: 0 0 6px var(--red-faint);
}

.sub-header span {
    font-size: 10px;
    color: var(--text-dim);
    background: var(--dark4);
    border: 1px solid var(--gray);
    padding: 1px 6px;
    letter-spacing: 1px;
}

.sub-content {
    display: none;
    padding-left: 16px;
    margin-top: 6px;
    border-left: 1px solid var(--gray);
    margin-left: 8px;
}

/* TOOL ITEMS */
.tool {
    padding: 5px 4px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    transition: color 0.15s, padding-left 0.15s;
    cursor: default;
}

.tool:hover {
    color: var(--text);
    padding-left: 6px;
}

.tool::before {
    content: "●";
    color: var(--red);
    margin-right: 8px;
    font-size: 10px;
    text-shadow: 0 0 4px var(--red);
    flex-shrink: 0;
}

.category-content a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 13px;
    transition: color 0.2s;
}

.category-content a:hover { color: var(--red); }

/* ===== NESTED SUB-CATEGORIES ===== */
.sub-category.nested {
    margin-left: 10px;
    border-left: 1px solid var(--gray);
    padding-left: 6px;
}

/* ===== SCROLLBAR GLOBAL ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--red-dim) transparent;
}
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--red-dim); border-radius: 2px; }

/* ===== SELECT SCROLLBAR ===== */
select::-webkit-scrollbar { width: 4px; }