/* ===========================
   NCEC Brand Foundation
   المركز الوطني للرقابة على الالتزام البيئي
   National Center for Environmental Compliance

   Typeface : DIN Next LT Arabic (self-hosted, per brand guideline)
   Palette  : #006930 / #06aa43 / #d8e024 / #13dbfd
   =========================== */

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/din-next-arabic-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/din-next-arabic-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/din-next-arabic-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/din-next-arabic-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/din-next-arabic-heavy.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/din-next-arabic-black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   Global Styles & Variables
   =========================== */
:root {
    /* --- Brand core (Pantone references from the visual identity guideline) --- */
    --brand: #006930;              /* primary  — text, icons, UI chrome (6.9:1 on white) */
    --brand-rgb: 0, 105, 48;
    --brand-dark: #005426;         /* 80% shade — gradients, hover */
    --brand-darker: #003f1d;       /* 60% shade — deep gradient stops */

    --brand-green: #06aa43;        /* secondary — fills, bars, accents (large text only) */
    --brand-green-rgb: 6, 170, 67;
    --brand-green-deep: #05933a;   /* accessible-ish variant for icon fills */

    --brand-lime: #d8e024;         /* accent — decorative highlights, meters */
    --brand-lime-rgb: 216, 224, 36;
    --brand-lime-deep: #7a6b00;    /* readable lime for text (5.3:1 on white) */

    --brand-cyan: #13dbfd;         /* accent — decorative highlights on dark */
    --brand-cyan-rgb: 19, 219, 253;

    /* --- Brand tints (75% / 50% / 25%, as drawn in the guideline tint bars) --- */
    --brand-75: #408e64;
    --brand-50: #80b498;
    --brand-25: #bfdacb;
    --brand-light: #e6f2ea;        /* soft brand wash for chips and panels */
    --brand-tint: #f2f9f5;         /* lightest brand wash for section bands */

    /* --- Surfaces & text --- */
    --surface: #ffffff;
    --surface-soft: #f4faf6;
    --dark-bg: #ffffff;
    --primary-text: #0b2e1a;
    --secondary-text: #4a6354;

    /* --- Semantic states --- */
    --accent: #006930;
    --success: #046628;
    --warning: #7a6b00;
    --danger: #b3121f;

    /* --- Elevation & shape --- */
    --card-bg: #ffffff;
    --card-border: rgba(var(--brand-rgb), 0.12);
    --shadow-sm: 0 2px 8px rgba(var(--brand-rgb), 0.06);
    --shadow-md: 0 8px 24px rgba(var(--brand-rgb), 0.08);
    --shadow-lg: 0 18px 48px rgba(var(--brand-rgb), 0.14);
    --shadow-xl: 0 28px 70px rgba(var(--brand-rgb), 0.2);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* --- Type --- */
    --font-brand: 'DIN Next LT Arabic', 'Tajawal', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-brand);
    background-color: var(--surface);
    background-image:
        radial-gradient(rgba(var(--brand-rgb), 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    background-attachment: fixed;
    color: var(--primary-text);
    line-height: 1.8;
    font-size: 18px;
    direction: rtl;
    overflow-x: hidden;
    padding-top: 110px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

::selection {
    background: var(--brand);
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn-cta:focus-visible,
.btn-outline-primary:focus-visible,
.btn-secondary:focus-visible,
.cracktest-copy:focus-visible,
.toggle-password:focus-visible {
    outline: 3px solid rgba(var(--brand-rgb), 0.45);
    outline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
}

.logo-container img {
    display: block;
}

.fact-icon .bi,
.tip-icon .bi,
.threat-icon .bi,
.practice-check .bi {
    color: inherit !important;
}

.cracktest-header__icon .bi,
.cracktest-cta .bi,
.btn-cta .bi {
    color: #ffffff !important;
}

.btn-outline-primary .bi,
.back-link .bi {
    color: var(--brand) !important;
}

.participant-name {
    color: var(--brand);
    font-weight: 700;
}

.container {
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 56px;
    color: var(--primary-text);
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 18px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.result-page .section-title {
    text-align: center;
}

.result-page .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===========================
   Header & Logo
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--brand);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.15), transparent 50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(var(--brand-rgb), 0.25);
    padding: 14px 0;
}

/* Brand keyline: the four identity colours, left to right */
.site-header::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--brand-green) 0%,
        var(--brand-lime) 45%,
        var(--brand-cyan) 100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Knockout lockup — the guideline's approved white-on-green usage.
   The asset ships white, so no CSS inversion is applied to the mark. */
.logo-container img {
    height: 72px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s var(--ease);
}

.logo-container img:hover {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .logo-container img {
        height: 52px;
    }
    body {
        padding-top: 88px;
    }
}

@media (max-width: 420px) {
    .logo-container img {
        height: 46px;
    }
}

/* ===========================
   Matrix Background Animation
   =========================== */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-section::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(var(--brand-rgb), 0.18), transparent 70%);
    top: -120px;
    right: -120px;
    animation: floatBlob 14s ease-in-out infinite;
}

.hero-section::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(var(--brand-rgb), 0.12), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: floatBlob 16s ease-in-out -3s infinite reverse;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-title {
    font-size: 76px;
    font-weight: 900;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--brand), var(--brand-darker));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease-out;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 30px;
    color: var(--secondary-text);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.warning-note {
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.4);
    border-radius: var(--radius-md);
    padding: 18px 28px;
    display: inline-block;
    margin-bottom: 44px;
    animation: fadeIn 1s ease-out 0.6s both;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.1);
}

.warning-note .warning-icon {
    font-size: 28px;
    margin-left: 10px;
}

.warning-note p {
    font-size: 20px;
    margin: 0;
    display: inline;
    color: var(--primary-text);
}

.btn-cta {
    font-size: 22px;
    padding: 18px 52px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
    box-shadow: 0 12px 30px rgba(var(--brand-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    animation: fadeInUp 1s ease-out 0.9s both;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.btn-cta:hover,
.btn-cta:focus {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-darker));
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(var(--brand-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-cta:hover::after,
.btn-cta:focus::after {
    opacity: 1;
}

.btn-cta:active {
    transform: translateY(-1px);
}

.btn-cta-large {
    font-size: 30px;
    padding: 25px 80px;
}

/* ===========================
   Hero — Vault Redesign
   =========================== */
.hero-section {
    isolation: isolate;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(var(--brand-rgb), 0.18);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroRingRotate 30s linear infinite;
}

.hero-ring--one {
    width: 640px;
    height: 640px;
    border-color: rgba(var(--brand-rgb), 0.18);
}

.hero-ring--two {
    width: 880px;
    height: 880px;
    border-color: rgba(var(--brand-rgb), 0.12);
    animation-duration: 50s;
    animation-direction: reverse;
}

.hero-ring--three {
    width: 1160px;
    height: 1160px;
    border-color: rgba(var(--brand-rgb), 0.07);
    animation-duration: 80s;
}

@keyframes heroRingRotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-spark {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 24px 6px rgba(var(--brand-rgb), 0.35);
    opacity: 0.55;
    animation: heroSparkFloat 9s ease-in-out infinite;
}

.hero-spark--a { top: 18%; left: 14%; animation-delay: 0s; }
.hero-spark--b { top: 28%; right: 12%; width: 6px; height: 6px; animation-delay: -2.5s; animation-duration: 11s; }
.hero-spark--c { bottom: 22%; left: 20%; width: 8px; height: 8px; animation-delay: -4s; animation-duration: 12s; }
.hero-spark--d { bottom: 26%; right: 16%; width: 5px; height: 5px; animation-delay: -1s; animation-duration: 10s; }

@keyframes heroSparkFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.55; }
    50% { transform: translate(-14px, -20px); opacity: 0.9; }
}

.hero-vault {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    padding: 70px 60px 60px;
    text-align: center;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.85), rgba(245, 250, 248, 0.65));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(var(--brand-rgb), 0.14);
    border-radius: 36px;
    box-shadow:
        0 30px 80px rgba(var(--brand-rgb), 0.16),
        0 6px 18px rgba(var(--brand-rgb), 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: heroVaultIn 1s var(--ease) both;
}

@keyframes heroVaultIn {
    from { opacity: 0; transform: translateY(20px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-emblem {
    position: relative;
    width: 110px;
    height: 110px;
    margin: -130px auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-emblem__core {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--brand), var(--brand-darker));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow:
        0 20px 40px rgba(var(--brand-rgb), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-emblem__core .bi {
    color: #ffffff !important;
}

.hero-emblem__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--brand);
    opacity: 0.6;
    animation: heroEmblemPulse 2.4s ease-out infinite;
}

.hero-emblem__pulse--delayed {
    animation-delay: 1.2s;
}

@keyframes heroEmblemPulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.9); opacity: 0; }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--brand-tint);
    border: 1px solid rgba(var(--brand-rgb), 0.18);
    margin-bottom: 26px;
}

.hero-eyebrow .bi {
    color: var(--brand) !important;
    font-size: 14px;
}

.hero-title {
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title__highlight {
    position: relative;
    display: inline-block;
    padding: 0 6px;
    color: var(--brand);
    -webkit-text-fill-color: var(--brand);
}

.hero-title__underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    width: 100%;
    height: 14px;
    color: var(--brand);
    opacity: 0.85;
    animation: heroUnderlineDraw 1.2s var(--ease) 0.6s both;
}

@keyframes heroUnderlineDraw {
    from { stroke-dasharray: 240; stroke-dashoffset: 240; }
    to { stroke-dasharray: 240; stroke-dashoffset: 0; }
}

.hero-title__underline path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: heroUnderlineDraw 1.2s var(--ease) 0.6s forwards;
}

.hero-lede {
    font-size: 20px;
    line-height: 1.8;
    color: var(--secondary-text);
    max-width: 640px;
    margin: 0 auto 48px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--brand);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 1px 2px rgba(1, 54, 42, 0.18),
        0 6px 16px -4px rgba(var(--brand-rgb), 0.28);
    transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
    animation: fadeInUp 1s var(--ease) 0.6s both;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    background: var(--brand-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 1px 2px rgba(1, 54, 42, 0.2),
        0 10px 24px -6px rgba(var(--brand-rgb), 0.38);
}

.hero-cta:active {
    transform: translateY(0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 2px rgba(1, 54, 42, 0.16),
        0 4px 10px -3px rgba(var(--brand-rgb), 0.24);
}

.hero-cta:focus-visible {
    outline: 2px solid rgba(var(--brand-rgb), 0.35);
    outline-offset: 3px;
}

.hero-cta__label {
    line-height: 1;
}

.hero-cta__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s var(--ease);
}

.hero-cta__arrow .bi {
    color: #ffffff !important;
}

.hero-cta:hover .hero-cta__arrow {
    transform: translateX(-3px);
}

@media (max-width: 767.98px) {
    .hero-vault {
        padding: 56px 28px 40px;
        border-radius: 28px;
    }

    .hero-emblem {
        width: 88px;
        height: 88px;
        margin-top: -110px;
    }

    .hero-emblem__core { font-size: 38px; }

    .hero-lede { font-size: 17px; margin-bottom: 36px; }

    .hero-cta {
        font-size: 16px;
        padding: 16px 36px;
    }

    .hero-ring--one { width: 460px; height: 460px; }
    .hero-ring--two { width: 620px; height: 620px; }
    .hero-ring--three { width: 800px; height: 800px; }
}

@media (max-width: 480px) {
    .hero-vault {
        padding: 48px 20px 32px;
    }
}

/* ===========================
   Quick Facts Section
   =========================== */
.quick-facts {
    background: var(--surface-soft);
}

.fact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    height: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.4s var(--ease);
}

.fact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--brand-rgb), 0.25);
    box-shadow: var(--shadow-lg);
}

.fact-card:hover::before {
    transform: scaleX(1);
    transform-origin: left center;
}

.fact-icon {
    font-size: 56px;
    margin-bottom: 22px;
    width: 96px;
    height: 96px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-tint);
    color: var(--brand);
    transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.fact-card:hover .fact-icon {
    transform: scale(1.06);
    background: var(--brand-light);
}

.fact-card p {
    font-size: 22px;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   Did You Know Section
   =========================== */
.did-you-know {
    background: var(--brand-tint);
    position: relative;
    overflow: hidden;
}

.did-you-know::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), 0.15), transparent 70%);
    top: -100px;
    left: -100px;
    filter: blur(50px);
}

.did-you-know .container {
    position: relative;
    z-index: 1;
}

.rotating-facts-container {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 880px;
    margin: 0 auto;
}

.rotating-fact {
    position: absolute;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    text-align: center;
    width: 100%;
}

.rotating-fact.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-fact p {
    font-size: 26px;
    font-weight: 500;
    color: var(--brand-darker);
    background: #ffffff;
    padding: 38px 56px;
    border-radius: var(--radius-xl);
    display: inline-block;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    position: relative;
    line-height: 1.6;
    max-width: 760px;
}

.rotating-fact p::before,
.rotating-fact p::after {
    content: '"';
    position: absolute;
    font-family: 'Georgia', serif;
    font-size: 80px;
    line-height: 1;
    color: var(--brand);
    opacity: 0.25;
    font-weight: 900;
}

.rotating-fact p::before {
    top: 4px;
    right: 18px;
}

.rotating-fact p::after {
    bottom: -28px;
    left: 18px;
}

/* ===========================
   Threats Section
   =========================== */
.threat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.threat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(185, 28, 28, 0.35);
    box-shadow: 0 18px 40px rgba(185, 28, 28, 0.12);
}

.threat-icon {
    font-size: 48px;
    margin-bottom: 18px;
    width: 84px;
    height: 84px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 28, 28, 0.08);
    color: var(--danger);
    transition: transform 0.4s var(--ease);
}

.threat-card:hover .threat-icon {
    transform: scale(1.08);
}

.threat-card p {
    font-size: 22px;
    margin: 0;
}

/* ===========================
   Best Practices Section
   =========================== */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.practice-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
    box-shadow: var(--shadow-sm);
}

.practice-item:hover {
    background: var(--brand-tint);
    border-color: rgba(var(--brand-rgb), 0.3);
    transform: translateX(-6px);
    box-shadow: var(--shadow-md);
}

.practice-check {
    font-size: 28px;
    color: var(--brand);
    font-weight: 700;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-tint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s var(--ease);
}

.practice-item:hover .practice-check {
    background: var(--brand-light);
}

.practice-item p {
    font-size: 20px;
    margin: 0;
}

/* ===========================
   Comparison Section
   =========================== */
.comparison-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.comparison-card h3 {
    font-size: 26px;
    margin-bottom: 28px;
    font-weight: 700;
}

.password-display {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 28px;
    background: var(--surface-soft);
    padding: 22px;
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
    letter-spacing: 4px;
    border: 1px dashed var(--card-border);
    color: var(--brand-darker);
}

.crack-time {
    padding: 22px;
    border-radius: var(--radius-md);
}

.crack-time.danger {
    background: rgba(185, 28, 28, 0.08);
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: var(--danger);
}

.crack-time.success {
    background: var(--brand-tint);
    border: 1px solid rgba(var(--brand-rgb), 0.25);
    color: var(--brand-dark);
}

.crack-time .label {
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
}

.crack-time .time {
    font-size: 26px;
    font-weight: 700;
}

.comparison-card.weak {
    border-color: rgba(185, 28, 28, 0.35);
}

.comparison-card.weak::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--danger);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.comparison-card.strong {
    border-color: rgba(var(--brand-rgb), 0.35);
}

.comparison-card.strong::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.comparison-card {
    position: relative;
    overflow: hidden;
}

/* ===========================
   Global Stats Section
   =========================== */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 50px 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.stat-card p {
    font-size: 24px;
    margin: 0;
}

.stat-highlight {
    padding: 20px;
}

.stat-highlight p {
    font-size: 28px;
    margin-bottom: 15px;
}

.common-password {
    font-size: 48px;
    font-weight: 700;
    color: var(--danger);
    font-family: 'Courier New', monospace;
}

/* ===========================
   Final CTA Section
   =========================== */
.final-cta {
    background: linear-gradient(135deg, var(--brand), var(--brand-darker));
    padding: 110px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.18), transparent 40%);
    pointer-events: none;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta .cta-title,
.final-cta .cta-text {
    color: #ffffff;
}

.final-cta .btn-cta {
    background: #ffffff;
    color: var(--brand-darker);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.final-cta .btn-cta:hover,
.final-cta .btn-cta:focus {
    background: var(--brand-tint);
    color: var(--brand-darker);
}

.cta-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 26px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 46px;
}

/* ===========================
   Input Page Styles
   =========================== */
.input-page,
.contest-page,
.result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.input-container,
.contest-container,
.contest-password-container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.input-container::before,
.contest-container::before,
.contest-password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.back-link {
    margin-bottom: 30px;
}

.back-link a {
    color: var(--brand);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--brand-tint);
}

.back-link a:hover {
    color: var(--brand-dark);
    background: var(--brand-light);
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.page-subtitle {
    font-size: 22px;
    color: var(--secondary-text);
    margin-bottom: 40px;
    text-align: center;
}

.password-input-wrapper {
    margin: 40px 0;
}

.password-field,
.name-field {
    background: var(--surface-soft);
    border: 2px solid var(--card-border);
    color: var(--primary-text);
    font-size: 20px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    width: 100%;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.password-field:focus,
.name-field:focus {
    background: #ffffff;
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12);
    color: var(--primary-text);
}

.toggle-password {
    background: var(--surface-soft);
    border: 2px solid var(--card-border);
    color: var(--brand);
    font-size: 20px;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.toggle-password:hover,
.toggle-password:focus {
    background: var(--brand-tint);
    border-color: var(--brand);
    color: var(--brand-dark);
}

/* ===========================
   Loading Animation
   =========================== */
.loading-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
}

.loading-container.hidden {
    display: none;
}

.loading-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.loading-bar-wrapper {
    margin-bottom: 30px;
}

.loading-bar {
    width: 100%;
    height: 18px;
    background: var(--surface-soft);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 20px;
}

.loading-percentage {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 20px;
}

.loading-text {
    font-size: 20px;
    color: var(--secondary-text);
    margin-top: 20px;
}

/* ===========================
   Result Page Styles
   =========================== */
.result-page .container {
    max-width: 1200px;
}

.strength-meter-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.strength-meter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.strength-label {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.strength-bar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.strength-bar {
    flex: 1;
    height: 22px;
    background: var(--surface-soft);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 1s var(--ease), background 0.5s var(--ease);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.strength-percentage {
    font-size: 36px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
}

.strength-status {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.crack-time-display {
    background: var(--brand-tint);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
}

.crack-label {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 12px;
    font-weight: 500;
}

.crack-value {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

/* ===========================
   Pattern Analysis
   =========================== */
.analysis-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}

.analysis-checklist {
    display: grid;
    gap: 20px;
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: var(--surface-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 18px;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.analysis-item:hover {
    transform: translateX(-4px);
}

.analysis-item.pass {
    background: var(--brand-tint);
    border-color: rgba(var(--brand-rgb), 0.2);
}

.analysis-item.fail {
    background: rgba(185, 28, 28, 0.06);
    border-color: rgba(185, 28, 28, 0.18);
}

.analysis-item .icon {
    font-size: 32px;
}

.analysis-item.pass .icon {
    color: var(--success);
}

.analysis-item.fail .icon {
    color: var(--danger);
}

/* ===========================
   Crack Test Section (merged hash + tutorial)
   =========================== */
.cracktest-section {
    margin-bottom: 56px;
}

/* Section header */
.cracktest-head {
    text-align: center;
    margin-bottom: 28px;
}

.cracktest-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--brand-tint);
    border: 1px solid rgba(var(--brand-rgb), 0.16);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 14px;
}

.cracktest-eyebrow .bi {
    color: var(--brand) !important;
    font-size: 13px;
}

.cracktest-title {
    margin: 0 0 10px;
}

.cracktest-sub {
    max-width: 620px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--secondary-text);
}

/* Card */
.cracktest-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(1, 54, 42, 0.04),
        0 12px 32px -16px rgba(var(--brand-rgb), 0.18);
    overflow: hidden;
}

/* Hash strip */
.cracktest-hash {
    padding: 28px 32px;
    border-bottom: 1px solid var(--card-border);
    background: var(--surface-soft);
}

.cracktest-hash__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cracktest-hash__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-text);
}

.cracktest-hash__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(var(--brand-rgb), 0.08);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cracktest-hash__badge .bi {
    color: var(--brand) !important;
    font-size: 11px;
}

.cracktest-hash__row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px;
    padding-inline-end: 16px;
    transition: border-color 0.2s var(--ease);
}

.cracktest-hash__row:focus-within,
.cracktest-hash__row:hover {
    border-color: rgba(var(--brand-rgb), 0.32);
}

.cracktest-hash__text {
    flex: 1;
    min-width: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 15px;
    color: var(--primary-text);
    direction: ltr;
    text-align: left;
    letter-spacing: 0.4px;
    word-break: break-all;
    user-select: all;
}

.cracktest-copy {
    flex-shrink: 0;
    order: -1;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    background: var(--brand);
    color: #ffffff;
    border: 1px solid var(--brand);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 1px 2px rgba(1, 54, 42, 0.16);
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.cracktest-copy .copy-icon,
.cracktest-copy .copy-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.cracktest-copy:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 1px 2px rgba(1, 54, 42, 0.2),
        0 4px 12px -4px rgba(var(--brand-rgb), 0.32);
}

.cracktest-copy .bi {
    color: #ffffff !important;
    font-size: 15px;
}

.cracktest-copy.copied {
    background: var(--brand-darker);
    border-color: var(--brand-darker);
}

.cracktest-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--secondary-text);
}

.cracktest-privacy .bi {
    flex-shrink: 0;
    color: var(--brand) !important;
    font-size: 14px;
    margin-top: 3px;
}

/* Step rows (vertical, professional layout) */
.cracktest-steps {
    list-style: none;
    margin: 0;
    padding: 8px 16px;
}

.cracktest-step {
    display: grid;
    grid-template-columns: 48px 1fr 200px;
    align-items: center;
    gap: 22px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--card-border);
}

.cracktest-step:last-child {
    border-bottom: none;
}

.cracktest-step__num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 17px;
    font-weight: 800;
    border: 1px solid rgba(var(--brand-rgb), 0.16);
}

.cracktest-step__body {
    min-width: 0;
}

.cracktest-step__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-text);
}

.cracktest-step__desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--secondary-text);
}

.cracktest-step__visual {
    position: relative;
    width: 200px;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}

button.cracktest-step__visual {
    cursor: zoom-in;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

button.cracktest-step__visual:hover {
    border-color: rgba(var(--brand-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(var(--brand-rgb), 0.4);
}

.cracktest-step__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--ease);
}

button.cracktest-step__visual:hover img {
    transform: scale(1.04);
}

.cracktest-step__zoom {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(13, 46, 38, 0.78);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    backdrop-filter: blur(4px);
}

.cracktest-step__zoom .bi {
    color: #ffffff !important;
}

button.cracktest-step__visual:hover .cracktest-step__zoom,
button.cracktest-step__visual:focus-visible .cracktest-step__zoom {
    opacity: 1;
    transform: translateY(0);
}

.cracktest-step__visual--icon {
    color: var(--brand);
    font-size: 28px;
    background: var(--brand-tint);
    border-color: rgba(var(--brand-rgb), 0.18);
}

.cracktest-step__visual--icon .bi {
    color: var(--brand) !important;
}

/* Footer with CTA */
.cracktest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 32px;
    background: var(--surface-soft);
    border-top: 1px solid var(--card-border);
}

.cracktest-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--brand);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 10px;
    border: 1px solid var(--brand);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 1px 2px rgba(1, 54, 42, 0.18),
        0 6px 16px -6px rgba(var(--brand-rgb), 0.34);
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.cracktest-cta:hover,
.cracktest-cta:focus-visible {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 1px 2px rgba(1, 54, 42, 0.22),
        0 10px 24px -8px rgba(var(--brand-rgb), 0.44);
}

.cracktest-cta .bi {
    font-size: 15px;
    transition: transform 0.2s var(--ease);
}

.cracktest-cta:hover .bi {
    transform: translate(-2px, -2px);
}

.cracktest-footer__hint {
    font-size: 13px;
    color: var(--secondary-text);
}

/* Responsive */
@media (max-width: 767.98px) {
    .cracktest-hash { padding: 22px; }

    .cracktest-steps { padding: 4px 8px; }

    .cracktest-step {
        grid-template-columns: 40px 1fr;
        gap: 14px;
        padding: 18px 12px;
    }

    .cracktest-step__visual {
        grid-column: 1 / -1;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .cracktest-step__num {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .cracktest-footer {
        padding: 20px 22px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }

    .cracktest-cta {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .cracktest-hash__row {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .cracktest-hash__text {
        font-size: 14px;
        text-align: center;
    }

    .cracktest-copy {
        justify-content: center;
        padding: 11px;
    }

    .cracktest-sub { font-size: 15px; }
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(8, 24, 20, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}

.lightbox__frame {
    margin: 0;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: scale(0.96);
    transition: transform 0.3s var(--ease);
}

.lightbox.is-open .lightbox__frame {
    transform: scale(1);
}

.lightbox__frame img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.55);
    background: #ffffff;
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 90%;
    padding: 0 8px;
}

.lightbox__caption:empty {
    display: none;
}

.lightbox__close {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.34);
    transform: scale(1.05);
}

.lightbox__close .bi {
    color: #ffffff !important;
}

@media (max-width: 575.98px) {
    .lightbox { padding: 18px; }

    .lightbox__close {
        top: 14px;
        left: 14px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}


/* ===========================
   Smart Tips
   =========================== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tip-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    box-shadow: var(--shadow-sm);
}

.tip-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--brand-rgb), 0.25);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    font-size: 32px;
    margin-bottom: 16px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-card p {
    font-size: 18px;
    margin: 0;
}

/* ===========================
   Competition CTA
   =========================== */
.competition-card {
    background: linear-gradient(135deg, var(--brand), var(--brand-darker));
    border: none;
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.competition-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.12), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.18), transparent 45%);
    pointer-events: none;
}

.competition-card > * {
    position: relative;
    z-index: 1;
}

.competition-card .competition-text {
    color: rgba(255, 255, 255, 0.88);
}

.competition-card .btn-cta {
    background: #ffffff;
    color: var(--brand-darker);
}

.competition-card .btn-cta:hover,
.competition-card .btn-cta:focus {
    background: var(--brand-tint);
    color: var(--brand-darker);
}

.competition-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
}

.competition-text {
    font-size: 24px;
    color: var(--secondary-text);
    margin-bottom: 40px;
}

.qr-code-container {
    margin-top: 40px;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 3px solid var(--accent);
    border-radius: 15px;
    padding: 10px;
    background: white;
    animation: qrGlow 2s ease-in-out infinite;
}

@keyframes qrGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--brand-rgb), 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(var(--brand-rgb), 0.8);
    }
}

.qr-label {
    font-size: 18px;
    color: var(--secondary-text);
}

/* ===========================
   Contest Pages
   =========================== */
.greeting-text {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-text);
}

.participant-name {
    color: var(--accent);
    font-weight: 700;
}

.privacy-note {
    background: var(--brand-tint);
    border: 1px solid rgba(var(--brand-rgb), 0.25);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin: 28px 0;
    text-align: center;
    color: var(--brand-darker);
}

.privacy-note .privacy-icon {
    font-size: 24px;
    margin-left: 10px;
}

.privacy-note p {
    font-size: 18px;
    margin: 0;
    display: inline;
}

/* ===========================
   Leaderboard Page
   =========================== */
.leaderboard-page .container {
    max-width: 1400px;
}

.participant-summary {
    background: linear-gradient(135deg, var(--brand), var(--brand-darker));
    border: none;
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    margin-bottom: 50px;
    text-align: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.participant-summary h2,
.participant-summary .summary-detail {
    color: #ffffff;
}

.participant-summary .highlight {
    color: #ffffff;
    font-weight: 800;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.6);
    padding-bottom: 2px;
}

.participant-summary h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.participant-summary .summary-detail {
    font-size: 24px;
    color: var(--secondary-text);
}

.participant-summary .highlight {
    color: var(--accent);
    font-weight: 700;
}

.leaderboard-table-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 50px;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
}

.leaderboard-table-container .table-responsive {
    border-radius: 15px;
    overflow: hidden;
}

.leaderboard-table {
    width: 100%;
    margin: 0;
    color: var(--primary-text);
}

.leaderboard-table thead th {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 22px 18px;
    border: none;
    text-align: center;
    letter-spacing: 0.01em;
}

.leaderboard-table thead th:first-child {
    border-top-right-radius: var(--radius-md);
}

.leaderboard-table thead th:last-child {
    border-top-left-radius: var(--radius-md);
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInRow 0.5s ease forwards;
}

.leaderboard-table tbody tr:hover {
    background: var(--brand-light);
}

.leaderboard-table tbody td {
    padding: 25px;
    font-size: 22px;
    text-align: center;
    border: none;
}

.leaderboard-table tbody tr.current-user {
    background: var(--brand-light);
    box-shadow: inset 0 0 0 2px var(--brand);
    animation: pulse 2.4s ease-in-out infinite;
}

.leaderboard-table tbody tr.current-user td {
    font-weight: 700;
}

.user-badge {
    display: inline-block;
    background: var(--brand);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 16px;
    margin-right: 10px;
    font-weight: 700;
}

.rank-medal {
    font-size: 28px;
    margin-left: 10px;
}

.qr-section {
    margin: 50px 0;
}

.qr-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
}

.qr-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.qr-text {
    font-size: 22px;
    color: var(--secondary-text);
    margin-bottom: 30px;
}

.action-buttons {
    margin: 60px 0 80px;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.action-buttons .btn-cta,
.action-buttons .btn-outline-primary,
.action-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.action-buttons .btn-outline-primary,
.action-buttons .btn-secondary {
    font-size: 18px;
    padding: 16px 36px;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
    font-size: 20px;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background: var(--brand);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    border: 2px solid var(--brand);
    color: var(--brand);
    font-size: 20px;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--brand-light);
    border-color: var(--brand-dark);
    color: var(--brand-dark);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* ===========================
   Responsive Design - Mobile First Approach
   =========================== */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 80px;
    }
    
    .hero-subtitle {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 56px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 72px;
    }
    
    .hero-subtitle {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 48px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .btn-cta {
        font-size: 22px;
        padding: 18px 50px;
    }
    
    .input-container,
    .contest-container,
    .contest-password-container {
        padding: 50px 40px;
    }
    
    .practices-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .btn-cta {
        font-size: 20px;
        padding: 15px 40px;
    }
    
    .btn-cta-large {
        font-size: 24px;
        padding: 18px 50px;
    }
    
    .fact-card p,
    .threat-card p {
        font-size: 18px;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .input-container,
    .contest-container,
    .contest-password-container {
        padding: 40px 30px;
    }
    
    .leaderboard-table thead th,
    .leaderboard-table tbody td {
        padding: 15px 10px;
        font-size: 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 80px 15px;
    }
    
    .warning-note {
        padding: 15px 20px;
        margin-bottom: 30px;
    }
    
    .warning-note p {
        font-size: 18px;
    }
    
    .fact-card,
    .threat-card {
        padding: 30px 20px;
    }
    
    .comparison-card {
        padding: 30px 20px;
    }
    
    .password-display {
        font-size: 24px;
        padding: 15px;
    }
    
    .crack-time .time {
        font-size: 22px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .stat-card p {
        font-size: 20px;
    }
    
    .common-password {
        font-size: 36px;
    }
    
    .cta-title {
        font-size: 42px;
    }
    
    .cta-text {
        font-size: 24px;
    }
    
    .strength-meter-card {
        padding: 30px 20px;
    }
    
    .strength-label {
        font-size: 24px;
    }
    
    .strength-percentage {
        font-size: 28px;
        min-width: 80px;
    }
    
    .strength-status {
        font-size: 26px;
    }
    
    .crack-value {
        font-size: 32px;
    }
    
    .analysis-card {
        padding: 30px 20px;
    }
    
    .analysis-item {
        padding: 15px;
        font-size: 18px;
    }
    
    .analysis-item .icon {
        font-size: 28px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-card {
        padding: 25px 20px;
    }
    
    .tip-card p {
        font-size: 16px;
    }
    
    .competition-card {
        padding: 40px 30px;
    }
    
    .competition-title {
        font-size: 32px;
    }
    
    .competition-text {
        font-size: 20px;
    }
    
    .participant-summary {
        padding: 30px 20px;
    }
    
    .participant-summary h2 {
        font-size: 28px;
    }
    
    .participant-summary .summary-detail {
        font-size: 20px;
    }
    
    .leaderboard-table-container {
        padding: 20px 15px;
        overflow-x: auto;
    }
    
    .leaderboard-table thead th {
        font-size: 18px;
        padding: 15px 8px;
    }
    
    .leaderboard-table tbody td {
        font-size: 16px;
        padding: 12px 8px;
    }
    
    .qr-card {
        padding: 30px 20px;
    }
    
    .qr-title {
        font-size: 26px;
    }
    
    .qr-text {
        font-size: 18px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-outline-primary,
    .btn-secondary {
        font-size: 18px;
        padding: 12px 30px;
        width: 100%;
        max-width: 300px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-section {
        padding: 60px 10px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .btn-cta {
        font-size: 18px;
        padding: 12px 30px;
        width: 100%;
        max-width: 300px;
    }
    
    .btn-cta-large {
        font-size: 20px;
        padding: 15px 40px;
        width: 100%;
        max-width: 350px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .warning-note {
        padding: 12px 15px;
        margin-bottom: 25px;
    }
    
    .warning-note p {
        font-size: 16px;
    }
    
    .warning-note .warning-icon {
        font-size: 24px;
    }
    
    .fact-card,
    .threat-card {
        padding: 25px 15px;
    }
    
    .fact-icon,
    .threat-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .fact-card p,
    .threat-card p {
        font-size: 16px;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .practice-item {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .practice-check {
        font-size: 28px;
    }
    
    .practice-item p {
        font-size: 16px;
    }
    
    .comparison-card {
        padding: 25px 15px;
    }
    
    .comparison-card h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .password-display {
        font-size: 20px;
        padding: 12px;
        letter-spacing: 2px;
    }
    
    .crack-time {
        padding: 15px;
    }
    
    .crack-time .label {
        font-size: 16px;
    }
    
    .crack-time .time {
        font-size: 18px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .stat-card p {
        font-size: 18px;
    }
    
    .stat-highlight p {
        font-size: 22px;
    }
    
    .common-password {
        font-size: 28px;
    }
    
    .final-cta {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .cta-text {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .page-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .input-container,
    .contest-container,
    .contest-password-container {
        padding: 30px 20px;
        margin: 20px 10px;
    }
    
    .password-field,
    .name-field {
        font-size: 18px;
        padding: 15px;
    }
    
    .toggle-password {
        font-size: 18px;
        padding: 15px;
    }
    
    .greeting-text {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .privacy-note {
        padding: 15px;
        margin: 20px 0;
    }
    
    .privacy-note p {
        font-size: 16px;
    }
    
    .privacy-note .privacy-icon {
        font-size: 20px;
    }
    
    .loading-container {
        padding: 40px 20px;
    }
    
    .loading-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .loading-percentage {
        font-size: 24px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .strength-meter-card {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .strength-label {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .strength-bar-container {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .strength-bar {
        height: 40px;
    }
    
    .strength-percentage {
        font-size: 24px;
        min-width: 70px;
    }
    
    .strength-status {
        font-size: 22px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .crack-time-display {
        padding: 20px;
    }
    
    .crack-label {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .crack-value {
        font-size: 28px;
    }
    
    .analysis-card {
        padding: 25px 15px;
    }
    
    .analysis-checklist {
        gap: 15px;
    }
    
    .analysis-item {
        padding: 12px;
        font-size: 16px;
        gap: 15px;
    }
    
    .analysis-item .icon {
        font-size: 24px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tip-card {
        padding: 20px 15px;
    }
    
    .tip-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .tip-card p {
        font-size: 14px;
    }
    
    .competition-card {
        padding: 30px 20px;
    }
    
    .competition-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .competition-text {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .qr-code-container {
        margin-top: 30px;
    }
    
    .qr-placeholder {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }
    
    .qr-label {
        font-size: 14px;
    }
    
    .participant-summary {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .participant-summary h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .participant-summary .summary-detail {
        font-size: 18px;
    }
    
    .leaderboard-table-container {
        padding: 15px 10px;
        margin-bottom: 30px;
    }
    
    .leaderboard-table-container .table-responsive {
        border-radius: 10px;
    }
    
    .leaderboard-table thead th {
        font-size: 14px;
        padding: 12px 5px;
    }
    
    .leaderboard-table tbody td {
        font-size: 14px;
        padding: 10px 5px;
    }
    
    .leaderboard-table tbody td:first-child {
        display: none;
    }
    
    .leaderboard-table thead th:first-child {
        display: none;
    }
    
    .user-badge {
        font-size: 12px;
        padding: 3px 8px;
        margin-right: 5px;
    }
    
    .rank-medal {
        font-size: 20px;
        margin-left: 5px;
    }
    
    .qr-section {
        margin: 30px 0;
    }
    
    .qr-card {
        padding: 25px 15px;
    }
    
    .qr-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .qr-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .action-buttons {
        margin: 30px 0;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn-outline-primary,
    .btn-secondary {
        font-size: 16px;
        padding: 10px 25px;
        width: 100%;
        max-width: 250px;
    }
}

/* Landscape orientation adjustments for small screens */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    section {
        padding: 30px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cracktest-step__visual img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .matrix-bg,
    .btn-cta,
    .action-buttons,
    .cracktest-copy,
    .cracktest-cta {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

/* Responsive visibility utilities */
@media (max-width: 575.98px) {
    .d-sm-none {
        display: none !important;
    }
    
    .d-sm-block {
        display: block !important;
    }
    
    .d-sm-flex {
        display: flex !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
    
    .d-md-flex {
        display: flex !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: block !important;
    }
    
    .d-lg-flex {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .d-xl-none {
        display: none !important;
    }
    
    .d-xl-block {
        display: block !important;
    }
    
    .d-xl-flex {
        display: flex !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--surface-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark);
}
