:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-page: #f8fafc;
    --border-color: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #a78bfa;
    --success-color: #34d399;
    --error-color: #f87171;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-medium: #94a3b8;
    --text-light: #64748b;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --bg-card: #1e293b;
    --bg-page: #0f172a;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-page);
    min-height: 100vh;
    padding: 80px 20px 20px 20px;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    height: 60px;
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    line-height: 1;
}

.navbar-bit { color: #3b82f6; }
.navbar-bot { color: #8b5cf6; }
.navbar-boo { color: #ec4899; }

.navbar-solutions {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    font-stretch: condensed;
    line-height: 1;
    margin-bottom: 2px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-btn-login {
    color: #6366f1;
    border: 1.5px solid #6366f1;
    background: transparent;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn-login:hover {
    background: #6366f1;
    color: white;
}

.nav-btn-privacy {
    color: #10b981;
    border: 1.5px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn-privacy:hover {
    background: #10b981;
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-light);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

.nav-btn-signup {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.nav-btn-signup:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
}

.tool-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.all-tools-btn {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    background: var(--bg-white);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.all-tools-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.back-btn {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 16px 24px;
    background: var(--bg-white);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--border-color);
}

.back-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.site-name {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 16px 24px;
    letter-spacing: 0.3px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

header h1 {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid var(--border-color);
}

.card h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.date-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.select-group {
    display: flex;
    flex-direction: column;
}

.select-group label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.select-group select:hover {
    border-color: var(--primary-color);
}

.select-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="range"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="number"]:hover,
input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
    border-color: var(--primary-color);
}

/* Form group styling for contact page */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

input[type="checkbox"] {
    accent-color: var(--primary-color);
}

label {
    color: var(--text-primary);
}

.btn-primary,
.btn-calculate,
.calculate-btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    width: 100%;
}

.btn-primary:hover,
.btn-calculate:hover,
.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary,
.btn-reset {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: 100%;
    margin-top: 15px;
}

.btn-secondary:hover,
.btn-reset:hover {
    background: #6366f1;
    color: #ffffff;
}

.btn-success {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.error-message {
    background: #fee2e2;
    color: var(--error-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid var(--error-color);
    font-weight: 500;
}

.format-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.format-btn {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.format-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.age-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
}

.age-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.age-main .age-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.age-main .age-label {
    font-size: 1.2rem;
    margin-top: 8px;
    opacity: 0.9;
}

.age-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.age-secondary .age-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.age-secondary .age-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 3px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

footer.tool-footer {
    text-align: center;
    margin-top: auto;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

footer.tool-footer p {
    margin: 0;
}

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

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

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 1000px;
        padding: 0 25px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 750px;
    }
    
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 25px;
    }
    
    .tool-nav {
        padding: 15px 20px;
    }
    
    .site-name {
        font-size: 1.15rem;
    }
}

@media (max-width: 767px) {
    header h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }
    
    .tool-nav {
        padding: 0;
    }
    
    .all-tools-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .back-btn {
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 14px 20px;
    }
    
    .site-name {
        font-size: 1.1rem;
        text-align: center;
        order: -1;
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .date-selector {
        grid-template-columns: 1fr;
    }

    .age-display {
        flex-direction: column;
        gap: 15px;
    }

    .age-main .age-number {
        font-size: 3rem;
    }

    .age-secondary .age-number {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navbar Optimization */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }

    .navbar {
        height: auto;
        min-height: 60px;
    }

    .navbar-container {
        flex-direction: column;
        padding: 8px 15px;
        gap: 8px;
    }

    .navbar-brand {
        font-size: 1.3rem;
        align-items: flex-end;
    }

    .navbar-solutions {
        font-size: 0.55rem;
        letter-spacing: 2px;
        margin-left: 6px;
        margin-bottom: 3px;
    }

    .navbar-nav {
        gap: 4px;
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .nav-btn-privacy {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 90px;
    }

    .navbar-container {
        padding: 6px 10px;
        gap: 6px;
    }

    .navbar-brand {
        font-size: 1.2rem;
        align-items: flex-end;
    }

    .navbar-solutions {
        font-size: 0.5rem;
        letter-spacing: 1.5px;
        margin-bottom: 2px;
    }

    .nav-link {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .nav-btn-privacy {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

.btn-calculate.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-calculate.loading span::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.upload-content svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-list-container {
    margin-bottom: 25px;
}

.file-list-container h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.move-btn,
.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.move-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.move-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.remove-btn {
    color: var(--error-color);
}

.remove-btn:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.options-section {
    margin-bottom: 25px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-message {
    margin-top: 20px;
    padding: 12px 15px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    font-weight: 500;
}

.privacy-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.privacy-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-top: 20px;
}

.privacy-notice svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #16a34a;
}

.privacy-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #166534;
    line-height: 1.5;
}

.privacy-notice strong {
    font-weight: 600;
}

.privacy-footer {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

footer.tool-footer p:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.seo-content {
    margin-top: 40px;
}

.seo-content .card {
    text-align: left;
}

.seo-content .card h2 {
    text-align: left;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.seo-content .card h3 {
    text-align: left;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    color: var(--text-primary);
}

.seo-content .card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.benefits-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 8px !important;
}

.related-tools-section {
    margin-top: 40px;
}

.related-tools-heading {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.related-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-tool-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.related-tool-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.category-item,
.zodiac-item,
.type-item,
.use-item,
.user-type,
.use-case,
.guideline-item,
.stat-detail,
.format-item,
.option-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-item:last-child,
.zodiac-item:last-child,
.type-item:last-child,
.use-item:last-child,
.user-type:last-child,
.use-case:last-child,
.guideline-item:last-child,
.stat-detail:last-child,
.format-item:last-child,
.option-item:last-child {
    border-bottom: none;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-label {
    font-weight: 600;
    color: var(--text-primary);
}

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

.zodiac-item span {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    min-width: 100px;
}

.formula-section {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.formula-section:last-child {
    margin-bottom: 0;
}

.formula {
    font-family: monospace;
    background: var(--bg-white);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 3px solid var(--primary-color);
}

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

.tips-list p,
.requirements-list p,
.writing-tips p,
.char-types p,
.calculation-breakdown p {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.tips-list p:last-child,
.requirements-list p:last-child,
.writing-tips p:last-child,
.char-types p:last-child,
.calculation-breakdown p:last-child {
    border-bottom: none;
}

.strength-examples {
    margin-top: 15px;
}

.strength-weak,
.strength-medium,
.strength-strong {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.strength-weak {
    background: #fee2e2;
    border-left: 4px solid var(--error-color);
}

.strength-medium {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.strength-strong {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
}

.strength-label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.strength-examples code {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.formula-box {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.steps-list {
    counter-reset: step;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .related-tools {
        flex-direction: column;
    }
    
    .related-tool-link {
        text-align: center;
    }
    
    .category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
