﻿/* ============================================
   KEPYO - Advanced Calculator Styles
   Clean, Light Design System
   ============================================ */

:root {
    /* Light Color Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;

    --accent-primary: #4338ca;
    --accent-secondary: #6d28d9;
    --accent-gradient: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    --accent-glow: rgba(67, 56, 202, 0.25);
    --accent-light: rgba(67, 56, 202, 0.12);

    --text-primary: #020617;
    --text-secondary: #334155;
    --text-muted: #475569;

    --success: #16a34a;
    --warning: #d97706;
    --error: #dc2626;

    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    /* Typography - System fonts for faster loading */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* AdSense Support */
    --ad-placeholder-bg: rgba(67, 56, 202, 0.03);
    --ad-placeholder-border: dashed 2px var(--border-color);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-secondary);
    outline-offset: 2px;
}

/* Link Accessibility - Must be distinguishable */
a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration-thickness: 2px;
}

a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Remove underline for specific elements */
.logo,
.tab-btn,
.nav-tabs a,
.calc-btn,
.promo-card,
.card-title a {
    text-decoration: none;
}

/* App Container */
.app-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
/* Header */
.header {
    text-align: center !important;
    padding: 10px 0 4px;
    /* Significantly reduced */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Ensure logo is centered on mobile */
.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2px;
}

.logo-icon {
    position: absolute;
    right: 100%;
    margin-right: 8px;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.8rem;
    /* Smaller text */
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 4px;
}

/* Ad Placement Containers */
.ad-slot {
    width: 100%;
    min-height: 90px;
    background: var(--ad-placeholder-bg);
    border: var(--ad-placeholder-border);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.ad-slot::before {
    content: 'Reklam AlanÄ±';
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-slot-header {
    margin-bottom: 15px;
}

.ad-slot-content {
    margin: 25px 0;
}

.ad-slot-footer {
    margin-top: 15px;
}

@media (max-width: 480px) {
    .ad-slot {
        min-height: 50px;
        margin: 15px 0;
    }
}

/* Navigation Tabs */
.nav-tabs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    /* Reduced from 12px for tighter spacing */
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 10px;
    z-index: 1000;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.nav-tabs a,
.nav-tabs a:link,
.nav-tabs a:visited,
.nav-tabs a:hover,
.nav-tabs a:active,
a.tab-btn,
a.tab-btn:link,
a.tab-btn:visited,
a.tab-btn:hover,
a.tab-btn:active {
    text-decoration: none !important;
    color: inherit;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 60px;
    width: 100%;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: white !important;
    box-shadow: var(--shadow-md);
}

.tab-btn.active span {
    color: white !important;
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    white-space: nowrap;
}

/* Main Content */
.main-content {
    flex: 1;
}

.module {
    display: none;
    animation: fadeIn 0.25s ease;
}

.module.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CALCULATOR MODULE
   ============================================ */
.calculator-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    /* Limit maximum width */
    margin: 0 auto;
    /* Center it */
}

.display {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 12px;
    text-align: right;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--border-color);
}

.display-expression {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-height: 18px;
    overflow-x: auto;
    word-break: break-all;
}

.display-result {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
    overflow-x: auto;
    word-break: break-all;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.calc-btn {
    aspect-ratio: 1.2;
    /* Slightly flatter buttons */
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calc-btn:active {
    transform: scale(0.96);
}

.calc-btn.number {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.calc-btn.number:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.calc-btn.function {
    background: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid transparent;
}

.calc-btn.function:hover {
    background: rgba(99, 102, 241, 0.15);
}

.calc-btn.operator {
    background: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid transparent;
    font-weight: 600;
}

.calc-btn.operator:hover {
    background: rgba(99, 102, 241, 0.2);
}

.calc-btn.equals {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.calc-btn.equals:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   PERCENTAGE MODULE
   ============================================ */
.percentage-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.calc-card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    /* Reduced from 12px */
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    /* Reduced from 12px */
}

.input-field {
    flex: 1;
    min-width: 70px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-field.small {
    max-width: 70px;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-separator {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.calc-action-btn {
    width: 100%;
    padding: 10px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calc-action-btn:hover {
    box-shadow: var(--shadow-md);
}

.result-box {
    margin-top: 10px;
    padding: 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.result-box:empty {
    display: none;
}

/* ============================================
   CONVERTER MODULE
   ============================================ */
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.category-btn {
    padding: 10px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.category-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.converter-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.converter-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.converter-input-group {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.converter-input {
    width: 100%;
    padding: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
}

.converter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.converter-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
}

.converter-input[readonly] {
    background: var(--accent-light);
    border-color: rgba(99, 102, 241, 0.2);
}

.unit-select {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.unit-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.swap-btn {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.swap-btn:hover {
    transform: rotate(180deg);
    box-shadow: var(--shadow-lg);
}

/* Quick Conversions */
.quick-conversions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quick-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.quick-item:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

.quick-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.quick-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* SEO Content Section */
.seo-content {
    margin-top: 32px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.seo-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.seo-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 14px;
    margin-bottom: 6px;
}

.seo-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.seo-content strong {
    color: var(--text-primary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 0 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-keywords {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--accent-secondary);
}

.legal-disclaimer {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}

.legal-disclaimer strong {
    color: var(--text-secondary);
}

.footer-links {
    margin-top: 12px;
}

.footer-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        padding: 12px;
    }

    .logo-text {
        font-size: 1.7rem;
    }

    .nav-tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px;
    }

    .tab-btn {
        padding: 6px 2px;
        min-height: 55px;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .tab-text {
        font-size: 0.55rem;
    }

    .display-result {
        font-size: 2rem;
    }

    .calc-btn {
        font-size: 1.1rem;
    }

    .category-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .converter-inputs {
        flex-direction: column;
    }

    .swap-btn {
        transform: rotate(90deg);
    }

    .swap-btn:hover {
        transform: rotate(270deg);
    }
}

/* Number input - remove arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SALARY CALCULATOR MODULE
   ============================================ */
.salary-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.salary-input-group {
    margin-bottom: 12px;
}

.salary-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.salary-options {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.salary-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.salary-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.summary-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.summary-item.highlight {
    background: var(--accent-gradient);
    border: none;
}

.summary-item.highlight .summary-label,
.summary-item.highlight .summary-value {
    color: white;
}

.summary-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.deductions-card,
.monthly-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.deductions-card h4,
.monthly-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.deduction-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.deduction-row:last-child {
    border-bottom: none;
}

.deduction-row span:first-child {
    color: var(--text-secondary);
}

.deduction-row span:last-child {
    font-weight: 600;
    color: var(--error);
}

.deduction-row.agi span:last-child {
    color: var(--success);
}

.monthly-table-wrapper {
    overflow-x: auto;
}

.monthly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.monthly-table th,
.monthly-table td {
    padding: 10px 8px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.monthly-table th {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.monthly-table th:first-child,
.monthly-table td:first-child {
    text-align: left;
}

.monthly-table td:nth-child(3) {
    font-weight: 600;
    color: var(--accent-primary);
}

.monthly-table tbody tr:hover {
    background: var(--bg-hover);
}

@media (max-width: 480px) {
    .salary-summary {
        grid-template-columns: 1fr;
    }

    .summary-value {
        font-size: 1.2rem;
    }
}

/* ============================================
   CRYPTO & CURRENCY MODULE
   ============================================ */
.crypto-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crypto-prices-card {
    position: relative;
}

.crypto-last-update {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
    transition: transform var(--transition-fast);
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.crypto-price-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.crypto-price-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.crypto-icon {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 50%;
}

.crypto-info {
    flex: 1;
}

.crypto-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.crypto-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.crypto-change {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.crypto-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.crypto-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.crypto-converter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crypto-input-group label,
.crypto-select-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.crypto-selects {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.crypto-select-group {
    flex: 1;
}

.crypto-arrow {
    font-size: 1.2rem;
    color: var(--accent-primary);
    padding-bottom: 8px;
}

.popular-conversions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.popular-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.popular-item:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

.popular-from {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.popular-to {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.crypto-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .crypto-grid {
        grid-template-columns: 1fr;
    }

    .crypto-selects {
        flex-direction: column;
    }

    .crypto-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .popular-conversions {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COUNTDOWN MODULE
   ============================================ */
.countdown-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.countdown-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    transition: all var(--transition-fast);
}

.countdown-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.countdown-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.countdown-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.countdown-days {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.countdown-days.past {
    color: #22c55e;
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.countdown-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.custom-countdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.countdown-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.countdown-input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.custom-result {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 12px;
}

.custom-result .countdown-days {
    font-size: 2rem;
}

.info-card {
    background: var(--accent-light);
    border-color: var(--accent-primary);
}

.info-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .countdown-grid {
        grid-template-columns: 1fr;
    }

    .countdown-input-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HEALTH MODULE
   ============================================ */
.health-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.health-calc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.health-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.health-input-group {
    display: flex;
    flex-direction: column;
}

.health-input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.health-input-group.full-width {
    grid-column: 1 / -1;
}

.health-result {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.bmi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.bmi-category {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
    padding: 4px 12px;
    border-radius: 20px;
}

.bmi-category.underweight {
    background: #3b82f6;
    color: white;
}

.bmi-category.normal {
    background: #22c55e;
    color: white;
}

.bmi-category.overweight {
    background: #f59e0b;
    color: white;
}

.bmi-category.obese {
    background: #ef4444;
    color: white;
}

.calorie-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.calorie-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calorie-goals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.calorie-goal {
    text-align: center;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.calorie-goal-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calorie-goal-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ideal-weight-range {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.ideal-weight-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 480px) {
    .health-input-row {
        grid-template-columns: 1fr;
    }

    .calorie-goals {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SEO INFO SECTIONS
   ============================================ */
.seo-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.seo-info h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.seo-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 15px 0 10px;
}

.seo-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.seo-info ul,
.seo-info ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.seo-info li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 6px;
}

/* ============================================
   DESKTOP LAYOUT (Sidebar Removed - Single Column)
   ============================================ */
@media (min-width: 1024px) {
    .app-container {
        max-width: 800px;
        display: block;
        margin: 0 auto;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 20px;
    }

    .header-actions {
        position: static;
        margin-top: 0;
    }

    .nav-tabs {
        margin-bottom: 12px;
    }

    .footer {
        margin-top: 24px;
    }
}

/* Sidebar Widget Styles */
.sidebar-widget {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    /* Reduced from 24px */
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform var(--transition-fast);
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.widget-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.widget-content p {
    font-size: 0.85rem;
    /* Slightly smaller */
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    /* Reduced margin */
}

.widget-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    /* Reduced margin */
}

.widget-features li {
    font-size: 0.8rem;
    /* Slightly smaller */
    color: var(--text-muted);
    margin-bottom: 4px;
    /* Reduced margin */
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-features li::before {
    content: "âœ“";
    color: var(--success);
    font-weight: bold;
}

.widget-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent-primary);
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.widget-btn:hover {
    background: var(--accent-hover);
    color: white;
}

/* Promo Banners Section */
.promo-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
    padding: 0 12px;
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.promo-card .promo-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.promo-card .promo-content {
    flex: 1;
}

.promo-card .promo-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.promo-card .promo-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.promo-card .promo-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: bold;
}

.promo-card.promo-pink:hover {
    border-color: #ec4899;
}

.promo-card.promo-pink .promo-arrow {
    color: #ec4899;
}

/* Updated Promo Button (Ghost Style) */
.promo-btn.ghost {
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--text-secondary);
    box-shadow: none;
    padding: 8px 12px;
}

.promo-btn.ghost:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
    transform: none;
}

.promo-btn.ghost .promo-icon {
    font-size: 1rem;
}

.promo-btn.ghost span:not(.promo-icon) {
    font-size: 0.85rem;
}

.embed-mode .sidebar {
    display: none;
}

/* ============================================
   EMBED MODE
   ============================================ */
.embed-mode .app-container {
    max-width: 100%;
    margin: 0;
    padding: 10px;
    min-height: auto;
    background: transparent;
    box-shadow: none;
}

.embed-mode .module.active {
    animation: none;
}

.embed-mode .calc-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Lighter shadow for embed */
}

/* Laptop Optimization (Small Height) - Explicit Sizing */
@media (min-width: 1024px) and (max-height: 800px) {
    .header {
        padding: 5px 0 0;
        margin-bottom: 5px;
    }

    .logo-icon,
    .logo-text {
        font-size: 1.4rem;
    }

    .tagline {
        display: none;
    }

    .nav-tabs {
        margin-bottom: 8px;
        padding: 2px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .calculator-container {
        padding: 8px;
        max-width: 320px;
    }

    .display {
        min-height: 50px;
        padding: 8px 12px;
        margin-bottom: 8px;
    }

    .display-result {
        font-size: 1.6rem;
    }

    .calc-btn {
        height: 38px;
        /* Force smaller height */
        font-size: 1rem;
    }

    .calculator-grid {
        gap: 4px;
    }

    /* Optimize Sidebar widgets too */
    .sidebar-widget {
        padding: 10px;
    }

    .widget-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .widget-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .widget-title {
        font-size: 1rem;
    }

    .widget-features li {
        font-size: 0.75rem;
    }

    .widget-btn {
        padding: 8px;
        font-size: 0.85rem;
    }
}

/* Hide SEO content in embed mode just in case */
.embed-mode .seo-info,
.embed-mode .seo-content {
    display: none;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.embed-options {
    margin-bottom: 15px;
}

.code-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-box textarea {
    resize: none;
    height: 100px;
    background: var(--bg-secondary);
}

/* ============================================
   PROMO STYLES (Qrako Integration)
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: white;
}

.promo-icon {
    font-size: 1.1rem;
}

/* Footer Banner */
.promo-banner {
    margin-top: 40px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    transform: skewX(-20deg);
}

.promo-content {
    flex: 1;
    z-index: 1;
}

.promo-content h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #f59e0b;
    /* Amber */
}

.promo-content p {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.promo-action {
    margin-left: 20px;
    z-index: 1;
}

.promo-link-btn {
    display: inline-block;
    background: white;
    color: #0f172a;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.promo-link-btn:hover {
    transform: scale(1.05);
}

/* Embed Mode Hide */
.embed-mode .header-actions,
.embed-mode .promo-banner {
    display: none;
}

@media (max-width: 600px) {
    .promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .promo-action {
        margin-left: 0;
    }

    .header-actions {
        display: none;
        /* Hide header btn on very small screens to save space */
    }
}

/* Mobile Navigation Fix (2 Rows) */
@media (max-width: 768px) {
    .nav-tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .tab-btn {
        min-width: 0;
        padding: 8px 2px;
    }

    .tab-text {
        font-size: 0.75rem;
    }

    .tab-icon {
        font-size: 1.25rem;
    }
}

/* ============================================
   RENT CALCULATOR MODULE
   ============================================ */
.rent-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rent-input-group {
    margin-bottom: 12px;
}

.rent-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.rent-date-selects {
    display: flex;
    gap: 10px;
}

.rent-date-selects select {
    flex: 1;
}

.rent-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.rent-info-box .info-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.rent-info-box span:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rent-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rent-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.rent-annual-summary {
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}

.annual-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.annual-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.annual-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.rate-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rate-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    transition: all var(--transition-fast);
}

.rate-item:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

.rate-month {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.rate-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

@media (max-width: 480px) {
    .rent-summary {
        grid-template-columns: 1fr;
    }

    .rate-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .annual-value {
        font-size: 1.3rem;
    }
}

/* ============================================
   FATURA ANALIZ MODULE
   ============================================ */

.fatura-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Fatura Sub-tabs */
.fatura-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.fatura-tab-btn {
    padding: 12px 8px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fatura-tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.fatura-tab-btn.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* Fatura Form Panels */
.fatura-form-panel {
    display: none;
    animation: fadeIn 0.25s ease;
}

.fatura-form-panel.active {
    display: block;
}

.fatura-card {
    border-left: 4px solid #10B981;
}

.fatura-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.fatura-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fatura-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fatura-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fatura-input-group.full-width {
    grid-column: span 2;
}

.fatura-input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.fatura-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    margin-top: 8px;
}

.fatura-btn:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Fatura Results */
.fatura-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    animation: fadeIn 0.3s ease;
}

/* Comparison Gauge */
.comparison-gauge {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.gauge-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.gauge-bar {
    height: 20px;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 50%, #ef4444 100%);
    border-radius: 10px;
    position: relative;
    margin-bottom: 8px;
}

.gauge-marker {
    position: absolute;
    top: -8px;
    width: 36px;
    height: 36px;
    background: white;
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gauge-status {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 12px;
}

.gauge-status.good {
    color: #22c55e;
}

.gauge-status.normal {
    color: #eab308;
}

.gauge-status.high {
    color: #ef4444;
}

/* Percentile Badge */
.percentile-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.percentile-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.percentile-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 8px;
}

/* Stats Grid */
.fatura-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fatura-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.good {
    color: #22c55e;
}

.stat-value.warning {
    color: #eab308;
}

.stat-value.bad {
    color: #ef4444;
}

/* Tips Section */
.fatura-tips {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.tips-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #10B981;
}

.tip-card:last-child {
    margin-bottom: 0;
}

.tip-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tip-saving {
    font-size: 0.8rem;
    color: #10B981;
    font-weight: 600;
    margin-top: 4px;
}

/* Share Button */
.fatura-share-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 480px) {
    .fatura-tabs {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fatura-input-row {
        grid-template-columns: 1fr;
    }

    .fatura-input-group.full-width {
        grid-column: span 1;
    }

    .fatura-stats-grid {
        grid-template-columns: 1fr;
    }

    .percentile-value {
        font-size: 2rem;
    }
}

/* Related Links - Internal Linking */
.related-links {
    list-style: none;
    padding: 0;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-links li {
    display: inline-block;
}

.related-links a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.related-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-links a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ============================================
   SOCIAL SHARING STYLES
   ============================================ */

/* Social Share Container */
.social-share-container {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

.social-share-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    min-width: 48px;
    min-height: 44px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn:active {
    transform: translateY(0);
}

/* WhatsApp */
.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

/* Twitter/X */
.share-btn.twitter {
    background: #000000;
    color: white;
}

.share-btn.twitter:hover {
    background: #333333;
}

/* Facebook */
.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.facebook:hover {
    background: #0d65d9;
}

/* Telegram */
.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.telegram:hover {
    background: #006699;
}

/* Copy Link */
.share-btn.copy-link {
    background: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.share-btn.copy-link:hover {
    background: var(--accent-primary);
    color: white;
}

.share-btn.copy-link.copied {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

/* Share Result Box - Appears after calculation */
.share-result-box {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.08), rgba(109, 40, 217, 0.08));
    border-radius: var(--radius-md);
    border: 1px dashed var(--accent-primary);
}

.share-result-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.share-result-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-result-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.share-result-btn:hover {
    transform: scale(1.05);
}

.share-result-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-result-btn.twitter {
    background: #000;
    color: white;
}

/* Floating Share Button - Premium Design */
.floating-share-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5), 0 0 0 4px rgba(99, 102, 241, 0.2);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    will-change: transform;
    transform: translateZ(0);
}

.floating-share-btn:hover {
    transform: translateZ(0) scale(1.15);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.7), 0 0 0 6px rgba(99, 102, 241, 0.3);
}

.floating-share-btn.active {
    transform: translateZ(0) rotate(45deg);
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

/* Floating Share Menu - Spectacular Design */
.floating-share-menu {
    position: fixed;
    bottom: 175px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-share-menu .share-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 16px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.floating-share-menu .share-btn::after {
    content: attr(data-label);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.floating-share-menu .share-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.floating-share-menu .share-btn:hover {
    transform: scale(1.15) translateX(-5px);
}

/* Individual button colors with gradients */
.floating-share-menu .share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-share-menu .share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8ddb 100%);
}

.floating-share-menu .share-btn.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5dc9 100%);
}

.floating-share-menu .share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.floating-share-menu .share-btn.copy-link {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
}

/* Staggered animation for menu items */
.floating-share-menu.active .share-btn:nth-child(1) {
    animation: slideIn 0.3s ease forwards;
    animation-delay: 0.05s;
}

.floating-share-menu.active .share-btn:nth-child(2) {
    animation: slideIn 0.3s ease forwards;
    animation-delay: 0.1s;
}

.floating-share-menu.active .share-btn:nth-child(3) {
    animation: slideIn 0.3s ease forwards;
    animation-delay: 0.15s;
}

.floating-share-menu.active .share-btn:nth-child(4) {
    animation: slideIn 0.3s ease forwards;
    animation-delay: 0.2s;
}

.floating-share-menu.active .share-btn:nth-child(5) {
    animation: slideIn 0.3s ease forwards;
    animation-delay: 0.25s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Blog Share Styles - Enhanced */
.blog-share-section {
    margin: 30px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 16px;
    text-align: center;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.blog-share-section h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .share-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 44px;
    }

    .share-btn span:not(.share-icon) {
        display: none;
    }

    .floating-share-btn {
        bottom: 90px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .floating-share-menu {
        bottom: 160px;
        right: 12px;
    }

    .floating-share-menu .share-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .floating-share-menu .share-btn::after {
        display: none;
    }
}

/* ============================================
   VOTING WIDGET (Memnuniyet OylamasÄ±) - v2.0 Premium
   ============================================ */
.voting-container-wrapper {
    margin: 40px 12px;
    display: flex;
    justify-content: center;
}

.voting-widget {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    text-align: center;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.voting-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.voting-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.star-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.8rem;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    line-height: 1;
}

.star-btn:hover,
.star-btn.hover {
    border-color: #fbbf24;
    color: #fbbf24;
    background: #fffbeb;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.star-btn.active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #f59e0b;
}

.star-btn.voted {
    cursor: default;
    pointer-events: none;
}

.voting-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.vote-avg-badge {
    color: #f59e0b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.voting-message {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: slideUp 0.4s ease;
}

.voting-message .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.voting-message .text {
    font-weight: 600;
    color: var(--success);
    font-size: 1.1rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Embed Mode Footer */
.embed-mode .embed-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.embed-mode .embed-footer .footer-logo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.embed-mode .embed-footer .footer-logo:hover {
    opacity: 1;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Module Title Spacing Fix */
.module h2 {
    margin-bottom: 0px !important;
}

.module .sr-only+* {
    margin-top: 0 !important;
}

/* ============================================
   SPACING FIXES (RADICAL)
   ============================================ */

/* 1. Hide unwanted ad spacing when empty */
.ad-slot:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Force remove top spacing for specified modules */
#countdown,
#health,
#qr,
#password,
#nostalgia,
#fatura,
#clock {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 3. Remove top margin from the first visible element inside these modules */
#countdown>*:not(.sr-only):first-child,
#health>*:not(.sr-only):first-child,
#qr>*:not(.sr-only):first-child,
#password>*:not(.sr-only):first-child,
#nostalgia>*:not(.sr-only):first-child,
#fatura>*:not(.sr-only):first-child,
#clock>*:not(.sr-only):first-child {
    margin-top: 0 !important;
}

/* 4. Ensure containers inside these modules start at the top */
.converter-card,
.health-container,
.fatura-container,
.clock-module-container,
.countdown-container,
.calculator-container {
    margin-top: 0 !important;
}

/* 5. Specific fix for card titles inside these containers if they are the first item */
.card-title {
    margin-top: 0 !important;
}
/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 16px;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cookie-content {
    flex: 1;
}

.cookie-title {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.cookie-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--accent-gradient);
    color: #fff;
}

.cookie-btn-settings {
    background: var(--bg-hover);
    color: var(--text-primary);
}

body.dark-mode .cookie-banner {
    background: #1e293b;
    border-color: #475569;
}

body.dark-mode .cookie-btn-settings {
    background: #334155;
    color: #fff;
}
