/* ===========================
   Global Styles & Variables
   =========================== */
:root {
    --brand: #016853;
    --brand-dark: #014d3d;
    --brand-darker: #00362a;
    --brand-light: #e8f4f0;
    --brand-tint: #f0f8f5;
    --surface: #ffffff;
    --surface-soft: #f5faf8;
    --dark-bg: #ffffff;
    --primary-text: #0d2e26;
    --secondary-text: #5a7570;
    --accent: #016853;
    --success: #016853;
    --warning: #B8860B;
    --danger: #B91C1C;
    --card-bg: #ffffff;
    --card-border: rgba(1, 104, 83, 0.12);
    --shadow-sm: 0 2px 8px rgba(1, 104, 83, 0.06);
    --shadow-md: 0 8px 24px rgba(1, 104, 83, 0.08);
    --shadow-lg: 0 18px 48px rgba(1, 104, 83, 0.14);
    --shadow-xl: 0 28px 70px rgba(1, 104, 83, 0.2);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--surface);
    background-image:
        radial-gradient(rgba(1, 104, 83, 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,
.copy-btn:focus-visible,
.toggle-password:focus-visible {
    outline: 3px solid rgba(1, 104, 83, 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;
}

.hash-header .bi,
.notice-header .bi,
.copy-btn .bi,
.crackstation-btn .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%);
}

/* ===========================
   Header & Logo
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #016853;
    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(1, 104, 83, 0.25);
    padding: 14px 0;
}

.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;
}

.logo-container img {
    max-height: 72px;
    width: auto;
    transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
    filter: brightness(0) invert(1);
}

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

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

/* ===========================
   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(1, 104, 83, 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(1, 104, 83, 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(1, 104, 83, 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(1, 104, 83, 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;
}

/* ===========================
   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(1, 104, 83, 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(1, 104, 83, 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(1, 104, 83, 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(1, 104, 83, 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(1, 104, 83, 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(1, 104, 83, 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(1, 104, 83, 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);
}

/* ===========================
   Password Hash Section
   =========================== */
.password-hash-section {
    margin-bottom: 40px;
}

.hash-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.hash-card:hover {
    transform: translateY(-4px);
    border-color: rgba(1, 104, 83, 0.25);
    box-shadow: var(--shadow-lg);
}

.hash-header {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--card-border);
    color: #ffffff;
}

.hash-icon {
    font-size: 32px;
    animation: hashPulse 2s ease-in-out infinite;
}

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

.hash-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.hash-body {
    padding: 40px;
}

.hash-label {
    font-size: 20px;
    color: var(--secondary-text);
    margin-bottom: 20px;
    text-align: center;
}

.hash-display {
    background: rgba(1, 104, 83, 0.07);
    border: 2px solid var(--card-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}

.hash-display:hover {
    border-color: var(--accent);
    background: rgba(1, 104, 83, 0.13);
}

.hash-text {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: var(--primary-text);
    word-break: break-all;
    flex: 1;
    direction: ltr;
    text-align: left;
    letter-spacing: 1px;
}

.copy-btn {
    background: var(--brand);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(1, 104, 83, 0.3);
}

.copy-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 104, 83, 0.4);
    color: #ffffff;
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(1, 104, 83, 0.4);
}

.copy-btn.copied {
    background: var(--brand-dark);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(1, 104, 83, 0.3);
}

.copy-btn.copied:hover {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(1, 104, 83, 0.4);
}

.copy-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.copy-btn:hover .copy-icon {
    transform: scale(1.1);
}

.copy-text {
    font-size: 14px;
}

.hash-info {
    background: rgba(1, 104, 83, 0.1);
    border: 1px solid rgba(1, 104, 83, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.hash-info p {
    font-size: 16px;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments for hash section */
@media (max-width: 768px) {
    .hash-body {
        padding: 25px;
    }
    
    .hash-display {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .hash-text {
        font-size: 14px;
        text-align: center;
    }
    
    .copy-btn {
        align-self: center;
        min-width: 120px;
    }
    
    .hash-title {
        font-size: 20px;
    }
    
    .hash-label {
        font-size: 18px;
    }
}

/* ===========================
   Password Security Notice Section
   =========================== */
.password-security-notice-section {
    margin-bottom: 40px;
}

.security-notice-card {
    background: var(--card-bg);
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.security-notice-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.notice-header {
    background: linear-gradient(135deg, var(--warning), #946a08);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
}

.notice-icon {
    font-size: 32px;
    animation: warningPulse 2s ease-in-out infinite;
}

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

.notice-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.notice-body {
    padding: 40px;
}

.notice-text {
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 28px;
    text-align: center;
}

.notice-text p {
    font-size: 20px;
    color: var(--primary-text);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.security-steps {
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    background: var(--surface-soft);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step-item:hover {
    background: var(--brand-tint);
    border-color: rgba(1, 104, 83, 0.25);
    transform: translateX(-4px);
}

.step-number {
    background: var(--brand);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(1, 104, 83, 0.3);
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-text);
}

.step-description {
    font-size: 16px;
    color: var(--secondary-text);
    line-height: 1.5;
}

.crackstation-link {
    margin-bottom: 30px;
    text-align: center;
}

.crackstation-btn {
    background: var(--brand);
    border: none;
    border-radius: 15px;
    padding: 20px 40px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(1, 104, 83, 0.35);
    min-width: 300px;
    justify-content: center;
}

.crackstation-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(1, 104, 83, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.crackstation-btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-text {
    flex: 1;
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.crackstation-btn:hover .btn-arrow {
    transform: translateX(-5px);
}

.crackstation-tutorial {
    margin-top: 30px;
}

.tutorial-step {
    background: var(--surface-soft);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tutorial-step:hover {
    background: #ffffff;
    border-color: rgba(1, 104, 83, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tutorial-step:last-child {
    margin-bottom: 0;
}

.step-image {
    text-align: center;
    margin-bottom: 20px;
}

.tutorial-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid var(--card-border);
}

.tutorial-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

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

.step-explanation h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.step-explanation p {
    font-size: 18px;
    color: var(--secondary-text);
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for security notice section */
@media (max-width: 768px) {
    .notice-body {
        padding: 25px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .crackstation-btn {
        min-width: 250px;
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .notice-text p {
        font-size: 18px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .placeholder-icon {
        font-size: 36px;
    }
    
    .placeholder-text {
        font-size: 16px;
    }
    
    .tutorial-step {
        padding: 20px;
    }
    
    .step-explanation h4 {
        font-size: 20px;
    }
    
    .step-explanation p {
        font-size: 16px;
    }
    
    .tutorial-img {
        border-radius: 10px;
    }
}

/* ===========================
   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(1, 104, 83, 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(1, 104, 83, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(1, 104, 83, 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(1, 104, 83, 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;
    }
    
    .hash-body {
        padding: 30px 20px;
    }
    
    .hash-display {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .hash-text {
        font-size: 16px;
        text-align: center;
    }
    
    .copy-btn {
        align-self: center;
        min-width: 120px;
    }
    
    .notice-body {
        padding: 30px 20px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .crackstation-btn {
        min-width: 250px;
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .notice-text p {
        font-size: 18px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .tutorial-step {
        padding: 20px;
    }
    
    .step-explanation h4 {
        font-size: 20px;
    }
    
    .step-explanation p {
        font-size: 16px;
    }
    
    .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;
    }
    
    .hash-body {
        padding: 25px 15px;
    }
    
    .hash-header {
        padding: 20px 15px;
    }
    
    .hash-icon {
        font-size: 28px;
    }
    
    .hash-title {
        font-size: 18px;
    }
    
    .hash-label {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .hash-display {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }
    
    .hash-text {
        font-size: 14px;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    .copy-btn {
        align-self: center;
        min-width: 100px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .copy-icon {
        font-size: 16px;
    }
    
    .copy-text {
        font-size: 12px;
    }
    
    .hash-info {
        padding: 15px;
    }
    
    .hash-info p {
        font-size: 14px;
    }
    
    .notice-body {
        padding: 25px 15px;
    }
    
    .notice-header {
        padding: 20px 15px;
    }
    
    .notice-icon {
        font-size: 28px;
    }
    
    .notice-title {
        font-size: 20px;
    }
    
    .notice-text {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .notice-text p {
        font-size: 16px;
    }
    
    .security-steps {
        margin-bottom: 20px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .step-title {
        font-size: 14px;
    }
    
    .step-description {
        font-size: 12px;
    }
    
    .crackstation-link {
        margin-bottom: 20px;
    }
    
    .crackstation-btn {
        min-width: 200px;
        padding: 12px 20px;
        font-size: 14px;
        gap: 10px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    .btn-text {
        font-size: 14px;
    }
    
    .btn-arrow {
        font-size: 16px;
    }
    
    .crackstation-tutorial {
        margin-top: 20px;
    }
    
    .tutorial-step {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .step-image {
        margin-bottom: 15px;
    }
    
    .tutorial-img {
        border-radius: 8px;
        border-width: 1px;
    }
    
    .step-explanation h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .step-explanation p {
        font-size: 14px;
    }
    
    .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) {
    .tutorial-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .matrix-bg,
    .btn-cta,
    .action-buttons,
    .copy-btn,
    .crackstation-btn {
        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);
}
