:root {
    --bg-color: #e2e8f0;
    --card-bg: rgba(17, 22, 34, 0.85);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --font-stack: 'Fira Code', 'Courier New', monospace;

    /* Accent Colors */
    --yellow: #FFD700;
    --red: #ff3333;
    --blue: #00f3ff;
    --green: #00ff41;
    --light-blue: #ADD1FF;
    --gold: #d4af37;
    --purple: #bd93f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow-y: auto;
    position: relative;
}

/* CRT and Cyber Effects */
.scanline {
    display: block;
    width: 100%;
    height: 4px;
    z-index: 100;
    background: rgba(0, 243, 255, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    animation: scanline 12s linear infinite;
    pointer-events: none;
}

.crt-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.08) 0px,
            rgba(0, 0, 0, 0.08) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 99;
}

@keyframes scanline {
    0% { top: -10px; }
    100% { top: 100%; }
}

/* Layout Wrapper - Bento Grid */
.layout-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Column Spans */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

/* Bento Cards */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    border-color: rgba(0, 243, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.08), inset 0 0 8px rgba(0, 243, 255, 0.02);
    transform: translateY(-2px);
}

/* Headings */
h2 {
    font-size: 1rem;
    color: var(--blue);
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Header Component */
.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.8rem;
    background: rgba(17, 22, 34, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hub-header h1 {
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.header-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.9rem 0.38rem 0.55rem;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 999px;
    transition: all 0.25s ease;
}

.header-instagram-link:hover {
    color: #fff;
    background: rgba(0, 243, 255, 0.14);
    border-color: var(--blue);
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.25);
    transform: translateY(-1px);
}

.header-instagram-link .ig-profile-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e1306c;
    box-shadow: 0 0 8px rgba(225, 48, 108, 0.35);
    flex-shrink: 0;
    display: block;
}

.header-instagram-link .ig-icon {
    width: 1rem;
    height: 1rem;
    color: var(--blue);
    flex-shrink: 0;
}

.header-instagram-link .ig-label {
    color: var(--text-muted);
    letter-spacing: 0.6px;
}

.header-instagram-link .ig-handle {
    color: var(--blue);
    font-weight: bold;
    word-break: break-all;
}

.header-instagram-link .ig-arrow {
    color: var(--blue);
    font-weight: bold;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Intro Text */
.intro-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--green);
    margin-bottom: 0.4rem;
}

/* Exam Buttons Grid */
.exam-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.2rem;
}

.exam-btn {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.25s ease;
}

.exam-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.btn-yellow:hover { border-color: var(--yellow); box-shadow: 0 0 10px rgba(255, 215, 0, 0.15); }
.btn-red:hover { border-color: var(--red); box-shadow: 0 0 10px rgba(255, 51, 51, 0.15); }
.btn-blue:hover { border-color: var(--blue); box-shadow: 0 0 10px rgba(0, 243, 255, 0.15); }
.btn-green:hover { border-color: var(--green); box-shadow: 0 0 10px rgba(0, 255, 65, 0.15); }

.exam-btn .btn-icon {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.btn-yellow .btn-icon { color: var(--yellow); }
.btn-red .btn-icon { color: var(--red); }
.btn-blue .btn-icon { color: var(--blue); }
.btn-green .btn-icon { color: var(--green); }

.exam-btn .btn-text {
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
}

.exam-btn .btn-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Security+ Specialization */
.security-plus-middle {
    margin-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
}

.security-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.special-exam-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.25s ease;
}

.special-exam-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.purple-theme:hover { border-color: var(--purple); box-shadow: 0 0 10px rgba(189, 147, 249, 0.15); }
.green-theme:hover { border-color: var(--green); box-shadow: 0 0 10px rgba(0, 255, 65, 0.15); }
.secai-theme:hover { border-color: var(--blue); box-shadow: 0 0 10px rgba(0, 243, 255, 0.25); }
.cissp-theme:hover { border-color: var(--light-blue); box-shadow: 0 0 10px rgba(173, 209, 255, 0.15); }
.net-theme:hover { border-color: var(--blue); box-shadow: 0 0 10px rgba(0, 243, 255, 0.25); }

.special-exam-btn .btn-icon {
    font-size: 1.2rem;
}

.special-exam-btn .btn-text {
    font-weight: bold;
    color: #fff;
    font-size: 0.8rem;
    display: block;
}

.special-exam-btn .btn-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Tools Content (Converter, Activity) */
.converter-content, .activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.activity-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.activity-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

input[type="text"], input[type="number"], textarea {
    background: rgba(10, 12, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-radius: 4px;
    padding: 0.5rem;
    font-family: inherit;
    width: 100%;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.2);
}

/* Word of the Day */
.bento-word-day {
    display: flex;
    flex-direction: column;
}

.word-day-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.main-word {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--blue);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.15);
}

.word-translations {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.word-row {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.lang-irish {
    background-color: rgba(0, 255, 65, 0.15);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.lang-spanish {
    background-color: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.trans-text {
    color: #ffffff;
    font-weight: 600;
}

.pron {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8rem;
}

.word-day-quote {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(6, 10, 18, 0.75);
    border: 1px solid rgba(0, 243, 255, 0.16);
    border-radius: 6px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.word-day-quote p {
    font-style: italic;
    color: var(--green);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Study Music: Instrumental Albums */
.bento-music {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bento-music:hover {
    border-color: rgba(189, 147, 249, 0.45);
    box-shadow: 0 0 24px rgba(189, 147, 249, 0.14), inset 0 0 10px rgba(189, 147, 249, 0.04);
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(189, 147, 249, 0.25);
    flex-wrap: wrap;
}

.music-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.music-badge {
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 0.8px;
    color: var(--purple);
    background: rgba(189, 147, 249, 0.12);
    border: 1px solid rgba(189, 147, 249, 0.45);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.music-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.album-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.album-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
    padding: 0.65rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 24, 0.8);
    color: var(--text-muted);
    font-family: var(--font-stack);
    font-size: 0.74rem;
    line-height: 1.25;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.album-tab:hover {
    border-color: var(--purple);
    color: #ffffff;
    background: rgba(189, 147, 249, 0.12);
}

.album-tab.active {
    border-color: var(--purple);
    background: rgba(189, 147, 249, 0.2);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(189, 147, 249, 0.25);
}

.album-num {
    color: var(--purple);
    font-size: 0.7rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.music-footer {
    display: flex;
    justify-content: flex-end;
}

.music-open-link {
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.6px;
    color: var(--purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

.music-open-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* shhon.online Links Card */
.bento-shhon {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shhon-header {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.shhon-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shhon-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.shhon-link-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.05rem;
    padding: 0.9rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(10, 14, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.shhon-link-card:hover {
    background: rgba(0, 243, 255, 0.07);
    border-color: var(--blue);
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.16);
    transform: translateY(-2px);
}

.shhon-thumb-wrap {
    width: 84px;
    height: 84px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000000;
}

.shhon-thumb-logo {
    padding: 0.25rem;
}

.shhon-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.shhon-thumb-logo .shhon-thumb {
    object-fit: contain;
}

.shhon-link-card:hover .shhon-thumb {
    transform: scale(1.06);
}

.shhon-link-text {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    flex: 1;
    min-width: 0;
}

.shhon-link-title {
    font-size: 0.92rem;
    font-weight: bold;
    letter-spacing: 0.7px;
    color: #ffffff;
}

.shhon-link-desc {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.shhon-link-url {
    font-size: 0.72rem;
    color: var(--blue);
    letter-spacing: 0.4px;
}

.shhon-link-arrow {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--blue);
    flex-shrink: 0;
}

.bento-mindset {
    display: flex;
    flex-direction: column;
}

.bento-mindset .quote-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.bento-mindset .quote-content p {
    font-style: italic;
    color: var(--green);
    font-size: clamp(1rem, 1.25vw, 1.08rem);
    line-height: 1.65;
}

/* Social & Integrations Card */
.card.bento-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-text-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.social-text-link:hover {
    color: var(--blue);
}

/* YouTube Playlists Showcase Section */
.bento-yt-playlists {
    padding: 1.8rem;
}

.btn-yt-playlists:hover {
    border-color: var(--red);
    box-shadow: 0 0 24px rgba(255, 51, 51, 0.14), inset 0 0 8px rgba(255, 51, 51, 0.04);
}

.yt-playlists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 51, 51, 0.22);
    flex-wrap: wrap;
}

.yt-playlists-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--blue);
}

.yt-view-all {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--red);
    text-decoration: none;
    letter-spacing: 1px;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 51, 51, 0.35);
    border-radius: 4px;
    background: rgba(255, 51, 51, 0.08);
    transition: all 0.2s ease;
}

.yt-view-all:hover {
    background: rgba(255, 51, 51, 0.2);
    border-color: var(--red);
    box-shadow: 0 0 12px rgba(255, 51, 51, 0.3);
}

.yt-playlist-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
}

.yt-playlist-card {
    flex: 1 1 320px;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: rgba(10, 14, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.yt-playlist-card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: 0 8px 24px rgba(255, 51, 51, 0.22);
}

.yt-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0d14;
}

.yt-playlist-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.yt-playlist-card:hover .yt-playlist-thumb {
    transform: scale(1.06);
}

.yt-play-badge {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 51, 51, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding-left: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, background 0.25s ease;
}

.yt-playlist-card:hover .yt-play-badge {
    transform: scale(1.12);
    background: var(--red);
}

.yt-playlist-info {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.yt-playlist-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.35;
}

.yt-playlist-tag {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* CIDR / Subnet Calculator */
.bento-subnet:hover {
    border-color: rgba(0, 255, 65, 0.35);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), inset 0 0 8px rgba(0, 255, 65, 0.03);
}

.subnet-content {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.subnet-error {
    min-height: 1rem;
    font-size: 0.7rem;
    color: var(--red);
}

.subnet-results {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    background: rgba(6, 10, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
}

.subnet-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.74rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0.28rem;
}

.subnet-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.subnet-label {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.subnet-val {
    color: #ffffff;
    font-weight: bold;
    text-align: right;
    word-break: break-word;
}

.subnet-val.green {
    color: var(--green);
}

.subnet-val.blue {
    color: var(--blue);
}

.subnet-val.yellow {
    color: var(--yellow);
}

/* Footer Card */
.hub-footer {
    text-align: center;
    padding: 1.2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsiveness Media Queries */
@media (max-width: 1024px) {
    .col-8, .col-6, .col-4 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    .col-12, .col-8, .col-6, .col-4 {
        grid-column: span 1;
    }
    .hub-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-instagram-link {
        flex-wrap: wrap;
        font-size: 0.75rem;
        border-radius: 18px;
    }
    .exam-menu {
        grid-template-columns: 1fr;
    }
    .security-links {
        grid-template-columns: 1fr;
    }
    .yt-playlist-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .shhon-thumb-wrap {
        width: 64px;
        height: 64px;
    }
    .shhon-link-card {
        padding: 0.8rem 0.9rem;
        gap: 0.8rem;
    }
}