/* ========================================
   SecureKey - Password Security Tools
   Modern Dark Theme CSS
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #05060B;
    --bg-secondary: #0B0E16;
    --bg-card: rgba(11, 14, 22, 0.85);
    --accent: #00FF9D;
    --accent-dim: rgba(0, 255, 157, 0.15);
    --accent-glow: rgba(0, 255, 157, 0.3);
    --text-primary: #F4F6FF;
    --text-secondary: #A7B0C8;
    --text-muted: #6B7280;
    --border-color: rgba(244, 246, 255, 0.08);
    --border-hover: rgba(244, 246, 255, 0.15);
    --success: #00FF9D;
    --warning: #FFB800;
    --danger: #FF4757;
    --info: #00D4FF;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

code {
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(5, 6, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 4vw;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo:hover {
    opacity: 1;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease;
}

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

.aurora-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 60vh;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(0, 255, 157, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 212, 255, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(118, 0, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.aurora-bg-2 {
    background: 
        radial-gradient(ellipse at 60% 40%, rgba(0, 255, 157, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 30%, rgba(118, 0, 255, 0.08) 0%, transparent 40%);
}

.hero-card {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 700px;
    box-shadow: var(--shadow);
    text-align: center;
}

.hero-card h1 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--accent);
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.privacy-note::before {
    content: '🔒';
}

/* ========================================
   Analysis Section
   ======================================== */
.analysis-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.analysis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.analysis-card h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Strength Meter */
.strength-meter {
    margin-bottom: 2rem;
}

.strength-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.strength-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.strength-value {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.strength-value.weak {
    color: var(--danger);
}

.strength-value.fair {
    color: var(--warning);
}

.strength-value.strong {
    color: var(--success);
}

.strength-value.excellent {
    color: var(--accent);
}

.strength-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-fill.weak {
    background: var(--danger);
    width: 25%;
}

.strength-fill.fair {
    background: var(--warning);
    width: 50%;
}

.strength-fill.strong {
    background: var(--success);
    width: 75%;
}

.strength-fill.excellent {
    background: var(--accent);
    width: 100%;
}

/* Metrics */
.metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.metric-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metric-value {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-primary);
}

.metric-value.positive {
    color: var(--success);
}

.metric-value.negative {
    color: var(--danger);
}

/* Result Card */
.result-card {
    display: flex;
    flex-direction: column;
}

.crack-time-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.crack-time-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    text-align: center;
}

.crack-time-unit {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.verdict {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tip-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Generator Section
   ======================================== */
.generator-hero {
    min-height: auto;
    padding: 120px 0 60px;
}

.generator-card {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 700px;
    box-shadow: var(--shadow);
}

.generator-card h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.generator-card .subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

/* Password Display */
.password-display-wrapper {
    margin-bottom: 2rem;
}

.password-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.password-display input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1.25rem;
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--accent);
    text-align: center;
    outline: none;
}

.icon-btn {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.regenerate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.regenerate-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Generator Controls */
.generator-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.toggle-label:hover {
    background: rgba(255, 255, 255, 0.03);
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.toggle-label input:checked + .toggle-slider {
    background: var(--accent-dim);
}

.toggle-label input:checked + .toggle-slider::after {
    transform: translateX(20px);
    background: var(--accent);
}

.toggle-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toggle-label input:checked ~ .toggle-text {
    color: var(--text-primary);
}

/* Length Control */
.length-control {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.length-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.length-header label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.length-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
    font-size: 1.1rem;
}

.length-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-primary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.length-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.length-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.length-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Generate Button */
.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.generate-btn:active {
    transform: translateY(0);
}

/* Strength Preview */
.strength-preview-section {
    padding: 2rem 0 4rem;
    background: var(--bg-secondary);
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.preview-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.crack-time-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.crack-label {
    color: var(--text-secondary);
}

.crack-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
}

/* Manager Section */
.manager-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.manager-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.manager-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--accent-dim);
    border-radius: 50%;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.manager-card h2 {
    margin-bottom: 0.75rem;
}

.manager-card > p {
    margin-bottom: 2rem;
}

.manager-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.manager-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.manager-name {
    font-weight: 500;
    color: var(--text-primary);
}

.manager-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    font-family: var(--font-mono);
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* ========================================
   Tips Section
   ======================================== */
.tips-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.tip-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: 1rem;
}

.tip-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tip-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Blog Section
   ======================================== */
.blog-hero {
    padding: 120px 0 60px;
    background: var(--bg-primary);
    text-align: center;
}

.blog-hero-content h1 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.articles-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.article-image {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 255, 157, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-icon {
    color: var(--accent);
    opacity: 0.8;
}

.article-content {
    padding: 1.5rem;
}

.article-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
}

.article-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.read-more-btn:hover {
    opacity: 0.8;
}

.article-full-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.article-body {
    padding-top: 1.5rem;
}

.article-body h3 {
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.article-body h4 {
    margin: 1.25rem 0 0.5rem;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-body ul,
.article-body ol {
    margin: 0.75rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    color: var(--text-primary);
}

.manager-comparison {
    margin: 1.5rem 0;
}

.manager-row {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.manager-row h4 {
    margin: 0 0 0.25rem;
}

.manager-row p {
    margin: 0;
    font-size: 0.9rem;
}

/* Quick Tips Section */
.quick-tips-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.quick-tips-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.checklist {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.checklist-item:hover {
    border-color: var(--border-hover);
}

.checklist-item input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkmark::after {
    content: '✓';
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checklist-item input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checklist-item input:checked + .checkmark::after {
    opacity: 1;
}

.checklist-item span:last-child {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.checklist-item input:checked ~ span:last-child {
    color: var(--text-primary);
    text-decoration: line-through;
    opacity: 0.7;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem 4vw;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-card,
    .generator-card {
        padding: 2rem 1.5rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .control-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .crack-time-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-card h1,
    .generator-card h1,
    .blog-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .password-display {
        flex-direction: column;
    }
    
    .icon-btn {
        width: 100%;
        height: 44px;
    }
}

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

.crack-time-value {
    animation: pulse 3s ease-in-out infinite;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
