    /* ===================================
    FONTS - Local Font Files
    =================================== */

    /* Inter Font Family */
    @font-face {
        font-family: 'Inter';
        src: url('assets/inter/inter-300.woff2') format('woff2');
        font-weight: 300;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Inter';
        src: url('assets/inter/inter-400.woff2') format('woff2');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Inter';
        src: url('assets/inter/inter-500.woff2') format('woff2');
        font-weight: 500;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Inter';
        src: url('assets/inter/inter-600.woff2') format('woff2');
        font-weight: 600;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Inter';
        src: url('assets/inter/inter-700.woff2') format('woff2');
        font-weight: 700;
        font-style: normal;
        font-display: swap;
    }

    /* Playfair Display Font Family */
    @font-face {
        font-family: 'Playfair Display';
        src: url('assets/playfair-display/playfair-display-400.woff2') format('woff2');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Playfair Display';
        src: url('assets/playfair-display/playfair-display-600.woff2') format('woff2');
        font-weight: 600;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Playfair Display';
        src: url('assets/playfair-display/playfair-display-700.woff2') format('woff2');
        font-weight: 700;
        font-style: normal;
        font-display: swap;
    }

    /* ===================================
    ESANSIVA - Design System & Styles
    =================================== */

    /* CSS Variables */
    :root {
        /* Colors */
        --color-primary: #D4AF37;
        --color-accent: #E8B55F;
        --color-bg: #FAFAFA;
        --color-surface: #FFFFFF;
        --color-text: #2C2C2C;
        --color-text-muted: #757575;
        --color-border: #E0E0E0;
        --color-error: #DC3545;
        --color-success: #28A745;

        /* Typography */
        --font-heading: 'Playfair Display', serif;
        --font-body: 'Inter', sans-serif;

        /* Spacing */
        --space-xs: 0.5rem;
        --space-sm: 1rem;
        --space-md: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 6rem;

        /* Border Radius */
        --radius-sm: 4px;
        --radius-md: 8px;
        --radius-lg: 12px;
        --radius-xl: 16px;

        /* Shadows */
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
        --shadow-hover: 0 12px 32px rgba(212, 175, 55, 0.15);

        /* Transitions */
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: var(--font-body);
        font-size: 16px;
        line-height: 1.6;
        color: var(--color-text);
        background-color: var(--color-bg);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
        /* Mobile optimizations - 300ms click delay'i kaldır */
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
        touch-action: manipulation;
        /* Prevent text selection on buttons */
        -webkit-user-select: none;
        user-select: none;
    }

    /* Touch device detection */
    @media (hover: none) and (pointer: coarse) {

        /* Mobil cihazlar için - click delay'i tamamen kaldır */
        * {
            touch-action: manipulation;
        }

        /* Tüm tıklanabilir elementler için */
        button,
        a,
        [onclick],
        .btn,
        .btn-icon,
        .nav-link,
        .hamburger,
        input[type="button"],
        input[type="submit"] {
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
        }
    }

    /* Re-enable text selection for content */
    p,
    span,
    div,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    li,
    td,
    th,
    label,
    input,
    textarea,
    select {
        -webkit-user-select: text;
        user-select: text;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--font-heading);
        font-weight: 600;
        line-height: 1.2;
        color: var(--color-text);
    }

    h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

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

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

    h4 {
        font-size: 1.25rem;
    }

    p {
        margin-bottom: var(--space-md);
    }

    a {
        color: inherit;
        text-decoration: none;
        transition: var(--transition);
    }

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

    /* Container */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--space-md);
    }

    .recipes-page .container,
    .sales-page .container {
        max-width: 950px;
    }

    .inventory-page .container {
        max-width: 800px;
    }

    /* Header */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--color-surface);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--color-border);
        transition: background-color 0.5s ease-in-out, border-color 0.5s ease-in-out, box-shadow 0.3s ease;
    }

    .header.scrolled {
        box-shadow: var(--shadow-md);
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0;
        position: relative;
    }

    .logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        position: absolute;
        left: 0;
    }

    .logo-image {
        height: 35px;
        width: auto;
        max-width: 150px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .nav {
        flex: 1;
        display: flex;
        justify-content: center;
        overflow: visible;
    }

    .nav-list {
        display: flex;
        gap: 0.1rem;
        list-style: none;
        align-items: center;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
    }

    .nav-link {
        font-size: 0.78rem;
        font-weight: 500;
        color: var(--color-text-muted);
        position: relative;
        padding: 0.2rem 0;
        white-space: nowrap;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-primary);
        transition: width 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-primary);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    /* Notification Bar */
    .notification-bar {
        background: var(--color-primary);
        /* Yellow/Gold */
        color: black;
        padding: 0.25rem 0;
        /* Compact height */
        font-size: 0.95rem;
        position: relative;
        z-index: 900;
        /* Below header (1000) */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .notification-bar-content {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
    }

    .notification-text {
        font-weight: 600;
    }

    .notification-link {
        color: black;
        font-weight: 800;
        text-decoration: underline;
        margin-left: 0.5rem;
    }

    .notification-link:hover {
        color: rgba(0, 0, 0, 0.7);
    }

    /* Header Actions */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        z-index: 1001;
    }

    /* Theme Toggle Button Styles - Main CSS */
    .theme-toggle-btn {
        background: transparent;
        border: 1px solid var(--color-border);
        cursor: pointer;
        padding: 0;
        border-radius: 50%;
        color: var(--color-text);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        background-color: var(--color-surface);
        position: relative;
        overflow: hidden;
    }

    .theme-toggle-btn:hover {
        background-color: var(--color-bg);
        color: var(--color-primary);
        border-color: var(--color-primary);
    }

    .theme-toggle-btn svg {
        width: 20px;
        height: 20px;
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
        position: absolute;
    }

    /* Icons Visibility Logic */
    .theme-toggle-btn .sun-icon {
        opacity: 0;
        transform: rotate(-90deg);
    }

    .theme-toggle-btn .moon-icon {
        opacity: 1;
        transform: rotate(0);
    }

    /* Dark Mode Overrides */
    body.theme-dark .theme-toggle-btn .sun-icon {
        opacity: 1 !important;
        transform: rotate(0) !important;
    }

    body.theme-dark .theme-toggle-btn .moon-icon {
        opacity: 0 !important;
        transform: rotate(90deg) !important;
    }



    /* Hamburger Menu */
    .hamburger {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--space-xs);
        /* Mobile touch optimizations */
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
        min-width: 44px;
        min-height: 44px;
        /* Prevent double-tap zoom */
        -ms-touch-action: manipulation;
        z-index: 1000;
    }

    .hamburger span {
        width: 25px;
        height: 2px;
        background: var(--color-text);
        transition: var(--transition);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Buttons */
    .btn {
        display: inline-block;
        padding: 0.875rem 2rem;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: var(--transition);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        /* Mobile touch optimizations */
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
        min-height: 44px;
        /* Minimum touch target size */
        min-width: 44px;
        /* Prevent double-tap zoom */
        -ms-touch-action: manipulation;
        /* Better touch feedback */
        -webkit-user-select: none;
        user-select: none;
    }

    .btn-primary {
        background: var(--color-primary);
        color: white;
    }

    .btn-primary:hover {
        background: var(--color-accent);
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

    .btn-secondary {
        background: transparent;
        border: 2px solid var(--color-primary);
        color: var(--color-primary);
    }

    .btn-secondary:hover {
        background: var(--color-primary);
        color: white;
    }

    .btn-ghost {
        background: transparent;
        color: var(--color-text);
    }

    .btn-ghost:hover {
        background: var(--color-bg);
    }

    /* Cards */
    .card {
        background: var(--color-surface);
        border-radius: var(--radius-lg);
        padding: var(--space-lg);
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
    }

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

    /* Forms */
    .form-group {
        margin-bottom: var(--space-md);
    }

    .form-label {
        display: block;
        margin-bottom: var(--space-xs);
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-text);
    }

    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
        padding: 0.6rem 1rem;
        font-family: var(--font-body);
        font-size: 0.95rem;
        color: var(--color-text);
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        transition: var(--transition);
        /* Mobile optimizations */
        min-height: 44px;
        /* Minimum touch target */
        /* Prevent iOS zoom on focus (font-size must be >= 16px) */
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    }

    .form-input.error {
        border-color: var(--color-error);
    }

    .form-error {
        display: none;
        margin-top: var(--space-xs);
        font-size: 0.875rem;
        color: var(--color-error);
    }

    .form-checkbox {
        display: flex;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .form-checkbox input {
        width: 18px;
        height: 18px;
        cursor: pointer;
        margin-top: 3px;
    }

    /* Footer */
    .footer {
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        margin-top: var(--space-3xl);
        padding: var(--space-2xl) 0 var(--space-lg);
    }

    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--space-xl);
        margin-bottom: var(--space-xl);
    }

    .footer-brand h3 {
        font-family: var(--font-heading);
        color: var(--color-primary);
        margin-bottom: var(--space-sm);
    }

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

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

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

    .footer-links a:hover {
        color: var(--color-primary);
    }

    .footer-social {
        display: flex;
        gap: var(--space-md);
    }

    .footer-social a {
        color: var(--color-text-muted);
        transition: var(--transition);
    }

    .footer-social a:hover {
        color: var(--color-primary);
        transform: translateY(-2px);
    }

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

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

    /* Utility Classes */
    .text-center {
        text-align: center;
    }

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

    .mt-sm {
        margin-top: var(--space-sm);
    }

    .mt-md {
        margin-top: var(--space-md);
    }

    .mt-lg {
        margin-top: var(--space-lg);
    }

    .mb-sm {
        margin-bottom: var(--space-sm);
    }

    .mb-md {
        margin-bottom: var(--space-md);
    }

    .mb-lg {
        margin-bottom: var(--space-lg);
    }

    /* Page Transitions */
    .page {
        animation: fadeIn 0.4s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .footer-content {
            grid-template-columns: 1fr 1fr;
        }
    }

    /* ===================================
    PAGE-SPECIFIC STYLES
    =================================== */

    /* Hero Section */
    .hero {
        position: relative;
        padding: var(--space-xl) 0;
        /* Reduced from 3xl */
        overflow: hidden;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(212, 175, 55, 0.05));
    }

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 500px;
        /* Smaller blob */
        height: 500px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
        pointer-events: none;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        /* Reduced from 3xl */
        align-items: center;
    }

    .hero-text h1 {
        margin-bottom: var(--space-md);
        animation: fadeInUp 0.8s ease;
        font-size: 2.75rem;
        /* Slightly more compact */
    }

    .hero-subtitle {
        font-size: 1.05rem;
        color: var(--color-text-muted);
        margin-bottom: var(--space-lg);
        animation: fadeInUp 0.8s ease 0.2s both;
        max-width: 90%;
    }

    .hero-actions {
        display: flex;
        gap: var(--space-sm);
        animation: fadeInUp 0.8s ease 0.4s both;
    }

    .hero-image {
        position: relative;
        height: 380px;
        /* Reduced from 500px for compactness */
        display: flex;
        justify-content: center;
        align-items: center;
        animation: fadeIn 1s ease 0.3s both;
    }

    .hero-bottle,
    .hero-essence,
    .hero-empty {
        position: absolute;
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
        /* Tighter shadow */
        transition: all 0.5s ease;
    }

    /* Main Bottle - Front & Center */
    .hero-bottle {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        max-height: 320px;
        /* Scaled down */
        animation: float 6s ease-in-out infinite;
    }

    /* Essence - Left, slightly behind */
    .hero-essence {
        left: 50%;
        top: 50%;
        transform: translate(-130%, -30%);
        max-height: 200px;
        z-index: 5;
        opacity: 0.9;
        animation: floatDelayed 7s ease-in-out infinite;
    }

    /* Empty Bottle - Right, behind */
    .hero-empty {
        left: 50%;
        top: 50%;
        transform: translate(30%, -40%);
        max-height: 220px;
        z-index: 4;
        opacity: 0.9;
        animation: floatReverse 8s ease-in-out infinite;
    }

    /* Hover Effect for Interactivity */
    .hero-image:hover .hero-essence {
        transform: translate(-140%, -30%) scale(1.05);
    }

    .hero-image:hover .hero-empty {
        transform: translate(40%, -40%) scale(1.05);
    }

    .hero-image:hover .hero-bottle {
        transform: translate(-50%, -50%) scale(1.02);
    }

    @keyframes float {

        0%,
        100% {
            transform: translate(-50%, -50%);
        }

        50% {
            transform: translate(-50%, -55%);
        }
    }

    @keyframes floatDelayed {

        0%,
        100% {
            transform: translate(-130%, -30%);
        }

        50% {
            transform: translate(-130%, -35%);
        }
    }

    @keyframes floatReverse {

        0%,
        100% {
            transform: translate(30%, -40%);
        }

        50% {
            transform: translate(30%, -45%);
        }
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Features Section */
    .features {
        padding: var(--space-xl) 0;
        /* Reduced from 3xl */
        background: var(--color-surface);
    }

    .section-title {
        text-align: center;
        margin-bottom: var(--space-lg);
        font-size: 1.75rem;
        /* Professional sizing */
        color: var(--color-text);
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        /* Compact cards */
        gap: var(--space-lg);
    }

    .feature-card {
        text-align: center;
        padding: var(--space-lg);
        border: 1px solid var(--color-border);
        box-shadow: none;
        /* Cleaner look */
    }

    .feature-icon {
        width: 60px;
        /* Smaller icons */
        height: 60px;
        margin: 0 auto var(--space-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(212, 175, 55, 0.1);
        /* Soft gold bg */
        border-radius: var(--radius-lg);
        color: var(--color-primary);
    }

    .feature-card h3 {
        margin-bottom: var(--space-xs);
        font-size: 1.1rem;
    }

    .feature-card p {
        color: var(--color-text-muted);
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.5;
    }

    /* Steps Section */
    .steps {
        padding: var(--space-xl) 0;
        background: var(--color-bg);
    }

    .steps-container {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        /* Better alignment */
        gap: var(--space-lg);
        max-width: 800px;
        margin: 0 auto;
    }

    .step {
        text-align: center;
        flex: 1;
        position: relative;
    }

    .step-number {
        width: 40px;
        /* Smaller steps */
        height: 40px;
        margin: 0 auto var(--space-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-surface);
        border: 2px solid var(--color-primary);
        color: var(--color-primary);
        border-radius: 50%;
        font-size: 1rem;
        font-weight: 700;
    }

    .step h3 {
        margin-bottom: var(--space-xs);
        font-size: 1rem;
    }

    .step p {
        color: var(--color-text-muted);
        font-size: 0.85rem;
        margin: 0;
    }

    .step-arrow {
        font-size: 1.5rem;
        color: var(--color-border);
        margin-top: 0.5rem;
    }

    /* Auth Pages */
    .auth-page {
        padding: var(--space-xl) 0;
        min-height: 60vh;
        display: flex;
        align-items: center;
    }

    .auth-container {
        max-width: 600px;
        margin: 0 auto;
        background: var(--color-surface);
        padding: var(--space-md) var(--space-lg);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .auth-container h2 {
        text-align: center;
        margin-bottom: var(--space-xs);
    }

    .auth-container>p {
        text-align: center;
        margin-bottom: var(--space-md);
    }

    .auth-form {
        margin-bottom: 0.25rem;
    }

    .auth-form .form-group {
        margin-bottom: 0.002rem;
        /* veya 0.25rem */

    }

    .auth-form .form-label {
        margin-bottom: 0.15rem;
    }

    .auth-switch {
        text-align: center;
        color: var(--color-text-muted);
        margin: 0;
    }

    .auth-switch a {
        color: var(--color-primary);
        font-weight: 600;
    }

    /* Calculator Page */
    .calculator-page {
        padding: var(--space-2xl) 0;
    }

    .calculator-container {
        max-width: 700px;
        margin: 0 auto;
        background: var(--color-surface);
        padding: var(--space-2xl);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .calculator-header {
        text-align: center;
        margin-bottom: var(--space-xl);
    }

    .calculator-header h2 {
        margin-bottom: var(--space-xs);
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .form-divider {
        margin: var(--space-xl) 0 var(--space-lg);
        text-align: center;
        position: relative;
    }

    .form-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--color-border);
    }

    .form-divider span {
        position: relative;
        background: var(--color-surface);
        padding: 0 var(--space-md);
        color: var(--color-primary);
        font-weight: 600;
    }

    .notes-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .notes-total {
        text-align: center;
        padding: var(--space-md);
        background: var(--color-bg);
        border-radius: var(--radius-md);
        margin-top: var(--space-md);
        font-size: 1.125rem;
    }

    .form-range {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: var(--color-border);
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }

    .form-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--color-primary);
        cursor: pointer;
    }

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

    .results {
        margin-top: var(--space-xl);
        padding-top: var(--space-xl);
        border-top: 2px dashed var(--color-border);
        animation: fadeIn 0.5s ease;
    }

    .results h3 {
        text-align: center;
        margin-bottom: var(--space-lg);
    }

    .results-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .result-card {
        background: var(--color-bg);
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
        text-align: center;
    }

    .result-label {
        display: block;
        font-size: 0.875rem;
        color: var(--color-text-muted);
        margin-bottom: var(--space-xs);
    }

    .result-value {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-primary);
        font-family: var(--font-heading);
    }

    .notes-breakdown {
        background: var(--color-bg);
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-lg);
    }

    .notes-breakdown h4 {
        margin-bottom: var(--space-md);
        text-align: center;
    }

    .breakdown-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
        text-align: center;
    }

    .breakdown-grid strong {
        color: var(--color-primary);
    }

    /* Recipes Page */
    .recipes-page {
        padding: 0 0 var(--space-2xl) 0;
        min-height: 60vh;
    }

    .inventory-page {
        padding: 0 0 var(--space-2xl) 0;
        min-height: 60vh;
    }

    .recipes-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-xl);
    }

    .recipes-grid {
        display: grid;
        gap: var(--space-lg);
    }

    .recipe-card {
        position: relative;
    }

    .recipe-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: var(--space-sm);
    }

    .recipe-header h3 {
        margin: 0;
    }

    .recipe-menu {
        position: relative;
    }

    .btn-icon {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: var(--space-xs);
        color: var(--color-text-muted);
        transition: var(--transition);
    }

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

    .recipe-menu-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        min-width: 150px;
        z-index: 10;
    }

    .recipe-menu-dropdown.show {
        display: block;
    }

    .recipe-menu-dropdown button {
        display: block;
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        transition: var(--transition);
        font-family: var(--font-body);
    }

    .recipe-menu-dropdown button:hover {
        background: var(--color-bg);
    }

    .recipe-menu-dropdown button.danger {
        color: var(--color-error);
    }

    .recipe-meta {
        display: flex;
        gap: var(--space-sm);
        color: var(--color-text-muted);
        font-size: 0.875rem;
        margin-bottom: var(--space-md);
    }

    .recipe-notes {
        display: flex;
        gap: var(--space-sm);
    }

    .note-badge {
        padding: var(--space-xs) var(--space-sm);
        background: var(--color-bg);
        border-radius: var(--radius-sm);
        font-size: 0.875rem;
        color: var(--color-text-muted);
    }

    .empty-state {
        text-align: center;
        padding: var(--space-3xl) 0;
    }

    .empty-state h3 {
        margin-bottom: var(--space-sm);
    }

    .empty-state p {
        margin-bottom: var(--space-xl);
    }

    /* Profile Page */
    .profile-page {
        padding: var(--space-2xl) 0;
    }

    .profile-container {
        max-width: 600px;
        margin: 0 auto;
        background: var(--color-surface);
        padding: var(--space-2xl);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .profile-container h2 {
        margin-bottom: var(--space-xl);
        text-align: center;
    }

    .profile-form {
        margin-bottom: var(--space-xl);
    }

    .account-actions {
        display: flex;
        gap: var(--space-md);
    }

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

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

    /* About Page */
    .about-page {
        padding: var(--space-2xl) 0;
    }

    .about-hero {
        text-align: center;
        margin-bottom: var(--space-3xl);
    }

    .about-hero .lead {
        font-size: 1.25rem;
        color: var(--color-text-muted);
    }

    .about-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .about-section {
        margin-bottom: var(--space-2xl);
    }

    .about-section h2 {
        margin-bottom: var(--space-md);
        color: var(--color-primary);
    }

    .timeline {
        margin-top: var(--space-3xl);
    }

    .timeline-item {
        display: flex;
        gap: var(--space-lg);
        margin-bottom: var(--space-xl);
    }

    .timeline-marker {
        width: 20px;
        height: 20px;
        background: var(--color-primary);
        border-radius: 50%;
        flex-shrink: 0;
        margin-top: 5px;
    }

    .timeline-content h3 {
        margin-bottom: var(--space-xs);
    }

    .timeline-content p {
        color: var(--color-text-muted);
        margin: 0;
    }

    /* Contact Page */
    .contact-page {
        padding: var(--space-2xl) 0;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: var(--space-3xl);
        max-width: 1000px;
        margin: 0 auto;
    }

    .contact-form-container {
        background: var(--color-surface);
        padding: var(--space-2xl);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .contact-form-container h2 {
        margin-bottom: var(--space-xs);
    }

    .contact-form-container>p {
        margin-bottom: var(--space-xl);
    }

    .form-textarea {
        resize: vertical;
        min-height: 120px;
    }

    .contact-info {
        padding: var(--space-xl);
    }

    .contact-info h3 {
        margin-bottom: var(--space-lg);
    }

    .contact-item {
        margin-bottom: var(--space-lg);
    }

    .contact-item strong {
        display: block;
        margin-bottom: var(--space-xs);
        color: var(--color-primary);
    }

    .contact-item p {
        margin: 0;
        color: var(--color-text-muted);
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .hero-content {
            grid-template-columns: 1fr;
        }

        .hero-image {
            height: 400px;
        }

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

    @media (max-width: 768px) {
        .hamburger {
            display: flex;
        }

        .header-actions {
            display: none;
        }

        .nav {
            position: fixed;
            top: 73px;
            left: 0;
            right: 0;
            background: var(--color-surface);
            border-bottom: 1px solid var(--color-border);
            transform: translateY(-100%);
            opacity: 0;
            transition: var(--transition);
            box-shadow: var(--shadow-lg);
            z-index: 999;
            max-height: calc(100vh - 73px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            /* Smooth scroll for iOS */
        }

        .nav.active {
            transform: translateY(0);
            opacity: 1;
        }

        .nav-list {
            flex-direction: column;
            padding: var(--space-md);
            gap: 0;
        }

        .nav-link {
            display: block;
            padding: var(--space-md);
            border-bottom: 1px solid var(--color-border);
            /* Mobile touch optimizations */
            min-height: 44px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
            display: flex;
            align-items: center;
        }

        .footer-content {
            grid-template-columns: 1fr;
            gap: var(--space-lg);
        }

        .hero-actions {
            flex-direction: column;
        }

        .hero-image {
            height: 300px;
            display: none;
            /* Mobilde şişe resimlerini gizle */
        }

        .steps-container {
            flex-direction: column;
            align-items: center;
        }

        .step-arrow {
            transform: rotate(90deg);
        }

        .form-row,
        .notes-grid,
        .results-grid,
        .breakdown-grid {
            grid-template-columns: 1fr;
        }

        .recipes-header {
            flex-direction: column;
            gap: var(--space-md);
            align-items: stretch;
        }

        .account-actions {
            flex-direction: column;
        }
    }

    /* Admin Page */
    .admin-page {
        padding: var(--space-2xl) 0;
    }

    .admin-container {
        max-width: 1000px;
        margin: 0 auto;
        background: var(--color-surface);
        padding: var(--space-2xl);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .admin-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-xl);
        padding-bottom: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
    }

    .admin-header h2 {
        margin: 0;
    }

    .user-count {
        background: var(--color-bg);
        padding: var(--space-xs) var(--space-md);
        border-radius: var(--radius-full);
        font-size: 0.875rem;
        color: var(--color-text-muted);
    }

    .table-container {
        overflow-x: auto;
    }

    .admin-table {
        width: 100%;
        border-collapse: collapse;
        white-space: nowrap;
    }

    .admin-table th,
    .admin-table td {
        padding: var(--space-md);
        text-align: left;
        border-bottom: 1px solid var(--color-border);
    }

    .admin-table th {
        font-weight: 600;
        color: var(--color-text-muted);
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .admin-table td {
        font-size: 0.9375rem;
    }

    .admin-table tbody tr:hover {
        background-color: var(--color-bg);
    }

    .admin-table .user-meta {
        display: flex;
        flex-direction: column;
    }

    .admin-table .user-meta span:last-child {
        font-size: 0.75rem;
        color: var(--color-text-muted);
    }

    .action-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.875rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        background: none;
        cursor: pointer;
        transition: var(--transition);
    }

    .action-btn:hover {
        background: var(--color-bg);
    }

    .action-btn.delete {
        color: var(--color-error);
        border-color: var(--color-error);
    }

    .action-btn.delete:hover {
        background: var(--color-error);
        color: white;
    }

    @media (max-width: 768px) {
        .admin-container {
            padding: var(--space-lg);
        }

        .admin-header {
            flex-direction: column;
            gap: var(--space-md);
            text-align: center;
        }
    }

    /* =================================== 
    NEW CALCULATOR INTEGRATION 
    =================================== */
    #calculator-integration {
        --calc-bg: #0b0d10;
        --calc-card: #12161b;
        --calc-muted: #9aa4b2;
        --calc-text: #e7edf5;
        --calc-accent: #47b3ff;
        --calc-ok: #c9f364;
        --calc-warn: #ffd166;
        --calc-bad: #ff7a7a;
        --calc-border: #1f2630;
        --calc-chip-bg: #0f141a;
        --calc-chip-text: #dfe7ef;
        --calc-input-bg: #0f141a;
        --calc-input-text: #e7edf5;
        --calc-input-border: #2a3441;

        font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
        color: var(--color-text);
        /* Use app's text color primarily */
    }

    /* Light Mode Overrides if body has .light class - checking if app uses .light or data-theme */
    body.light #calculator-integration {
        --calc-bg: #f7f9fc;
        --calc-card: #ffffff;
        --calc-muted: #586273;
        --calc-text: #0e141b;
        --calc-accent: #2d8cff;
        --calc-ok: #58c322;
        --calc-warn: #d69e2e;
        --calc-bad: #e53e3e;
        --calc-border: #e6edf5;
        --calc-chip-bg: #f1f5fb;
        --calc-chip-text: #0e141b;
        --calc-input-bg: #ffffff;
        --calc-input-text: #0e141b;
        --calc-input-border: #c8d5e6;
    }

    #calculator-integration h1 {
        margin: 0 0 12px;
        font-size: 20px;
    }

    #calculator-integration .card {
        background: var(--calc-card);
        border: 1px solid var(--calc-border);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
        color: var(--calc-text);
    }

    /* Force light mode styles on card if the main app is light/white */
    /* The main app seems to use light theme variables by default (e.g., #FAFAFA background) */
    /* so we should probably default the calculator to its "light" variables or adapt them */
    #calculator-integration .card {
        background: white;
        color: #0e141b;
        border: 1px solid #e6edf5;
    }

    #calculator-integration .toolbar {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        border-bottom: 1px solid #e6edf5;
        background: rgba(127, 127, 127, .04);
    }

    /* TOP ROW: Perfume | Volume | Bottles */
    #calculator-integration .toolbar-top-row {
        display: grid;
        grid-template-columns: 2fr 1fr auto;
        gap: 0.5rem;
        align-items: end;
    }

    /* CONTROLS ROW: Preset | Mode | Buttons | Alcohol | Note */
    #calculator-integration .toolbar-controls-row {
        display: grid;
        grid-template-columns: auto auto auto auto 1fr;
        gap: 0.5rem;
        align-items: end;
    }

    /* Form Fields */
    #calculator-integration .form-field {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    #calculator-integration .form-field label {
        font-size: 11px;
        font-weight: 600;
        color: #586273;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    /* Input & Select Styles */
    #calculator-integration input,
    #calculator-integration select {
        border: 1px solid #c8d5e6;
        background: #ffffff;
        color: #0e141b;
        border-radius: 6px;
        padding: 0 0.5rem;
        font-size: 13px;
        height: 32px;
        box-sizing: border-box;
        width: 100%;
    }

    #calculator-integration input:focus,
    #calculator-integration select:focus {
        outline: none;
        border-color: #2d8cff;
        box-shadow: 0 0 0 2px rgba(45, 140, 255, 0.1);
    }

    /* Button Group */
    #calculator-integration .action-group {
        display: flex;
        gap: 0.25rem;
    }

    #calculator-integration button {
        border: 1px solid #c8d5e6;
        background: #ffffff;
        color: #0e141b;
        border-radius: 6px;
        padding: 0 0.5rem;
        font-size: 13px;
        height: 32px;
        box-sizing: border-box;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    #calculator-integration button:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    #calculator-integration button.primary {
        background: #2d8cff;
        color: #fff;
        font-weight: 600;
        border-color: #2b8ed6;
    }

    #calculator-integration .btn-ghost {
        background: #f1f5fb;
        color: #0e141b;
        border-color: #c8d5e6;
        font-size: 12px;
    }




    /* Status Group (Switch + Badge) */
    #calculator-integration .status-group {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        height: 32px;
        /* Match input height */
        padding: 0 0.5rem;
        background: #f8fafc;
        border: 1px solid #e6edf5;
        border-radius: 6px;
    }

    #calculator-integration .switch {
        display: flex;
        align-items: center;
    }

    #calculator-integration .pill {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #0e141b;
    }

    #calculator-integration .pill .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        font-size: 14px;
        color: #0e141b;
    }

    #calculator-integration thead th {
        position: sticky;
        top: 0;
        background: #fff;
        padding: 10px;
        border-bottom: 1px solid #e6edf5;
        z-index: 1;
        text-align: left;
    }

    #calculator-integration tbody td {
        padding: 8px 10px;
        border-bottom: 1px dashed #e6edf5;
    }

    /* Input with Button Group */
    #calculator-integration .input-with-btn {
        display: flex;
        gap: 0.25rem;
        width: 100%;
    }

    #calculator-integration .input-with-btn input {
        flex: 1;
        min-width: 0;
    }

    #calculator-integration .input-with-btn button {
        flex: 0 0 auto;
    }

    /* Table & Wrap Styles */
    #calculator-integration .table-wrap {
        padding: 0;
    }

    #calculator-integration table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        color: #0e141b;
    }

    #calculator-integration thead th {
        position: sticky;
        top: 0;
        background: #fff;
        padding: 10px 0.75rem;
        border-bottom: 1px solid #e6edf5;
        z-index: 1;
        text-align: left;
    }

    #calculator-integration tbody td {
        padding: 8px 0.75rem;
        border-bottom: 1px dashed #e6edf5;
    }

    #calculator-integration tfoot td {
        padding: 10px 0.75rem;
        border-top: 2px solid #e6edf5;
        font-weight: 700;
    }

    #calculator-integration .right {
        text-align: center;
        /* Sağ yerine orta hizalama */
    }

    #calculator-integration table input {
        text-align: center;
        /* Input içindeki değerleri ortala */
    }

    #calculator-integration .totalCell {
        background: rgba(255, 230, 120, .08);
    }

    #calculator-integration .dens {
        color: #2d8cff;
    }

    #calculator-integration .delRow {
        display: none !important;
    }

    /* Progress Bar (Hidden by default but styles kept) */
    #calculator-integration #pctBar {
        position: relative;
        height: 10px;
        margin: 10px 12px;
        background: #e8e8e8;
        border-radius: 6px;
        overflow: hidden;
        display: none;
    }

    #calculator-integration #pctBar .bar {
        height: 100%;
        width: 0%;
        background: #7dc87d;
        transition: width .2s ease;
    }

    #calculator-integration #pctBar .label {
        position: absolute;
        top: -22px;
        right: 0;
        font-size: 12px;
        color: #777;
    }

    /* Summary Box */
    /* Summary Box */
    #summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }

    .box {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 10px;
    }

    .sumline {
        display: flex;
        justify-content: space-between;
        padding: 2px 0;
    }

    /* =================================== 
    RECIPES LIST & MODAL STYLES 
    =================================== */

    .recipes-list-container {
        background: var(--color-surface);
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border);
        overflow: hidden;
        overflow-x: auto;
        /* Allow horizontal scrolling */
        box-shadow: var(--shadow-md);
    }

    .recipes-table {
        width: 100%;
        border-collapse: collapse;
    }

    .recipes-table th,
    .recipes-table td {
        padding: var(--space-md);
        text-align: left;
        border-bottom: 1px solid var(--color-border);
    }

    .recipes-table th {
        background: var(--color-bg);
        font-weight: 600;
        color: var(--color-text-muted);
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .recipe-row:hover {
        background-color: var(--color-bg);
        cursor: pointer;
    }

    .recipe-row:last-child td {
        border-bottom: none;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        animation: fadeIn 0.3s;
    }

    @keyframes fadeIn {
        from {
            opacity: 0
        }

        to {
            opacity: 1
        }
    }

    .modal-content {
        background-color: var(--color-surface);
        margin: 5% auto;
        padding: 0;
        border-radius: var(--radius-xl);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        width: 90%;
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: slideIn 0.3s;
        position: relative;
        border: 1px solid var(--color-border);
        /* Mobile optimizations */
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    @keyframes slideIn {
        from {
            transform: translateY(-50px);
            opacity: 0
        }

        to {
            transform: translateY(0);
            opacity: 1
        }
    }

    .close-modal {
        position: absolute;
        right: 20px;
        top: 15px;
        color: var(--color-text-muted);
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        line-height: 1;
        z-index: 10;
        /* Mobile touch optimizations */
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }

    .close-modal:hover,
    .close-modal:focus {
        color: var(--color-primary);
        text-decoration: none;
        cursor: pointer;
    }

    .modal-header {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .modal-header h2 {
        margin: 0 0 5px 0;
        font-size: 1.5rem;
    }

    .modal-body-content {
        padding: 1rem;
    }

    .modal-info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
        background: var(--color-bg);
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }

    .info-item {
        display: flex;
        flex-direction: column;
    }

    .info-item label {
        font-size: 0.75rem;
        color: var(--color-text-muted);
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .info-item span {
        font-weight: 600;
        font-size: 1.1rem;
    }

    .modal-ingredients h3 {
        font-size: 1rem;
        margin-bottom: var(--space-md);
        color: var(--color-primary);
    }

    .ingredients-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
    }

    .ingredients-table th {
        text-align: left;
        padding-bottom: 8px;
        color: var(--color-text-muted);
        font-weight: 600;
        border-bottom: 2px solid var(--color-border);
    }

    .ingredients-table td {
        padding: 8px 0;
        border-bottom: 1px dashed var(--color-border);
    }

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

    .modal-footer {
        padding: var(--space-md) var(--space-xl);
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        display: flex;
        justify-content: flex-end;
        gap: var(--space-md);
        border-bottom-left-radius: var(--radius-xl);
        border-bottom-right-radius: var(--radius-xl);
    }

    /* Recipe Modal - 50% Smaller */
    #recipeModal .modal-content {
        max-width: 400px;
        width: 70%;
    }

    #recipeModal .modal-header {
        padding: 0.75rem 1rem;
    }

    #recipeModal .modal-header h2 {
        font-size: 1rem;
        margin: 0 0 3px 0;
    }

    #recipeModal .modal-header .text-muted {
        font-size: 0.7rem;
    }

    #recipeModal .modal-body-content {
        padding: 1rem;
    }

    #recipeModal .modal-info-grid {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.5rem;
    }

    #recipeModal .info-item label {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    #recipeModal .info-item span {
        font-size: 0.85rem;
    }

    #recipeModal .modal-ingredients h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    #recipeModal .ingredients-table {
        font-size: 0.75rem;
    }

    #recipeModal .ingredients-table th {
        padding-bottom: 4px;
        font-size: 0.7rem;
    }

    #recipeModal .ingredients-table td {
        padding: 4px 0;
    }

    #recipeModal .modal-footer {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    #recipeModal .modal-footer .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    #recipeModal .modal-notes {
        margin-top: 1rem !important;
        padding: 0.75rem !important;
    }

    #recipeModal .modal-notes h3 {
        font-size: 0.8rem !important;
        margin-bottom: 0.35rem !important;
    }

    #recipeModal .modal-notes p {
        font-size: 0.75rem !important;
    }

    /* Sales Modal - Extra Compact Spacing */
    #salesModal .modal-content {
        max-width: 350px;
        /* Even narrower */
        padding: 0;
    }

    #salesModal .modal-body {
        padding: 0.75rem 1rem;
        /* Further reduced padding */
    }

    #salesModal h3 {
        margin-bottom: 0.5rem;
        margin-top: 0;
        font-size: 1rem;
    }

    #salesModal .form-group {
        margin-bottom: 0.35rem;
        /* Minimal spacing between inputs */
    }

    #salesModal .form-label {
        margin-bottom: 0.15rem;
        display: block;
        font-size: 0.8rem;
    }

    #salesModal .form-input,
    #salesModal .form-select {
        width: 100%;
        padding: 0.3rem 0.5rem;
        /* Minimal input padding */
        font-size: 0.85rem;
        height: 32px;
    }

    #salesModal .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    #salesModal .modal-footer {
        margin-top: 0.5rem;
        padding: 0.6rem 1rem 1rem;
        border-top: 1px solid var(--color-border);
        display: flex;
        justify-content: flex-end;
        gap: 0.4rem;
    }

    #salesModal .modal-footer .btn {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
        height: 32px;
        display: flex;
        align-items: center;
    }

    /* =================================== 
    COMPACT LIST & SEARCH 
    =================================== */

    .recipes-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-md);
        gap: var(--space-md);
    }

    .search-box {
        position: relative;
        flex: 1;
        max-width: 300px;
    }

    .search-input {
        width: 100%;
        padding: 8px 12px 8px 36px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-bg);
        color: var(--color-text);
        font-size: 0.9rem;
        transition: all 0.2s;
    }

    .search-input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.1);
        outline: none;
    }

    .search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-text-muted);
        pointer-events: none;
    }

    /* Compact Table */
    .recipes-table th,
    .recipes-table td {
        padding: 8px 12px;
        /* Reduced padding */
        font-size: 0.9rem;
    }

    .recipes-table th {
        font-size: 0.8rem;
    }

    .recipe-row td {
        vertical-align: middle;
    }

    /* =================================== 
    EXTRA COMPACT LIST 
    =================================== */

    .recipes-table th,
    .recipes-table td {
        padding: 6px 10px !important;
        /* Force smaller padding */
        font-size: 0.85rem;
    }

    .recipes-table th {
        font-size: 0.75rem;
    }

    .recipe-row {
        height: 40px;
        /* Force smaller row height */
    }

    /* Adjust button sizes in table */
    .recipes-table .btn-icon svg {
        width: 14px;
        height: 14px;
    }

    /* Modal tweaks */
    .modal-content {
        max-width: 500px;
        /* Smaller modal */
    }

    /* =================================== 
    IMAGE BLENDING FOR TRANSPARENCY 
    =================================== */

    /* This makes images with black backgrounds appear transparent on dark themes */
    .hero-image img {
        mix-blend-mode: screen;
        filter: contrast(1.1) brightness(1.1);
        /* Enhance visibility */
    }

    /* Specific adjustment for light mode if active */
    body.light .hero-image img {
        mix-blend-mode: multiply;
        /* If backgrounds were white, use multiply. Since they are black, this won't work well on light mode without reversing image. 
        For now, optimized for the dark theme as requested. */
        /* Reverting blend mode for light theme if images are black-bg is tricky. 
        Usually requires transparent pngs. But Screen mode on dark theme works perfectly for "removing background". */
    }

    /* =================================== 
    5-IMAGE HERO COMPOSITION 
    =================================== */

    .hero-image {
        position: relative;
        width: 100%;
        height: 500px;
        /* Taller area for composition */
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        /* Keep effects contained */
    }

    .hero-bottle-container {
        position: relative;
        width: 100%;
        height: 100%;
        max-width: 800px;
    }

    .hero-img {
        position: absolute;
        transition: all 0.5s ease;
        mix-blend-mode: screen;
        /* Magic blending for dark bg */
        filter: drop-shadow(0 0 20px rgba(71, 179, 255, 0.2));
        /* Glow effect */
    }

    /* 1. Center Main Bottle (The Star) */
    .img-center {
        width: 280px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        animation: float 6s ease-in-out infinite;
    }

    /* 2. Left Essence (Closer) */
    .img-left-1 {
        width: 160px;
        left: 20%;
        top: 60%;
        transform: translateY(-50%) rotate(-10deg);
        z-index: 8;
        animation: float 7s ease-in-out infinite 1s;
    }

    /* 3. Right Empty Bottle (Closer) */
    .img-right-1 {
        width: 180px;
        right: 20%;
        top: 55%;
        transform: translateY(-50%) rotate(10deg);
        z-index: 8;
        animation: float 5s ease-in-out infinite 0.5s;
        /* Empty bottle might be bright, adjust if needed */
        opacity: 0.9;
    }

    /* 4. Left Back (Smaller, Blurry) */
    .img-left-2 {
        width: 120px;
        left: 5%;
        top: 40%;
        transform: translateY(-50%) scaleX(-1);
        /* Flip horizontally */
        z-index: 5;
        filter: blur(2px) brightness(0.7);
        animation: float 8s ease-in-out infinite 2s;
        opacity: 0.6;
    }

    /* 5. Right Back (Smaller, Blurry) */
    .img-right-2 {
        width: 140px;
        right: 5%;
        top: 30%;
        transform: translateY(-50%);
        z-index: 5;
        filter: blur(2px) brightness(0.7);
        animation: float 9s ease-in-out infinite 1.5s;
        opacity: 0.6;
    }

    /* Floating Animation */
    @keyframes float {
        0% {
            transform: translate(-50%, -50%) translateY(0px);
        }

        50% {
            transform: translate(-50%, -50%) translateY(-20px);
        }

        100% {
            transform: translate(-50%, -50%) translateY(0px);
        }
    }

    /* Specific float animations for non-centered items (they don't use translate -50%) */
    @keyframes float-simple {
        0% {
            transform: translateY(-50%) translateY(0px) rotate(var(--rot, 0deg));
        }

        50% {
            transform: translateY(-50%) translateY(-15px) rotate(var(--rot, 0deg));
        }

        100% {
            transform: translateY(-50%) translateY(0px) rotate(var(--rot, 0deg));
        }
    }

    /* Update animations to use correct transform base */
    .img-left-1 {
        --rot: -10deg;
        animation: float-left 7s ease-in-out infinite;
    }

    .img-right-1 {
        --rot: 10deg;
        animation: float-right 5s ease-in-out infinite;
    }

    .img-left-2 {
        animation: float-left-back 8s ease-in-out infinite;
    }

    .img-right-2 {
        animation: float-right-back 9s ease-in-out infinite;
    }

    @keyframes float-left {
        0% {
            transform: translateY(-50%) rotate(-10deg) translateY(0);
        }

        50% {
            transform: translateY(-50%) rotate(-10deg) translateY(-15px);
        }

        100% {
            transform: translateY(-50%) rotate(-10deg) translateY(0);
        }
    }

    @keyframes float-right {
        0% {
            transform: translateY(-50%) rotate(10deg) translateY(0);
        }

        50% {
            transform: translateY(-50%) rotate(10deg) translateY(-15px);
        }

        100% {
            transform: translateY(-50%) rotate(10deg) translateY(0);
        }
    }

    @keyframes float-left-back {
        0% {
            transform: translateY(-50%) scaleX(-1) translateY(0);
        }

        50% {
            transform: translateY(-50%) scaleX(-1) translateY(-10px);
        }

        100% {
            transform: translateY(-50%) scaleX(-1) translateY(0);
        }
    }

    @keyframes float-right-back {
        0% {
            transform: translateY(-50%) translateY(0);
        }

        50% {
            transform: translateY(-50%) translateY(-10px);
        }

        100% {
            transform: translateY(-50%) translateY(0);
        }
    }

    /* Responsiveness for the scene */
    @media (max-width: 768px) {
        .hero-image {
            display: none;
            /* Mobilde şişe resimlerini gizle */
        }

        .img-left-2,
        .img-right-2 {
            display: none;
        }

        /* Hide back layers on mobile */
        .img-center {
            width: 200px;
        }

        .img-left-1 {
            width: 120px;
            left: 10%;
        }

        .img-right-1 {
            width: 130px;
            right: 10%;
        }
    }

    /* =================================== 
    FIX TRANSPARENCY ISSUE 
    =================================== */

    /* Remove blending mode since we are switching to real transparent PNGs */
    .hero-img {
        mix-blend-mode: normal !important;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
        /* Natural shadow */
    }

    /* Adjust sizes slightly as PNGs might be cropped differently */
    .img-center {
        width: 300px;
    }

    /* =================================== 
    CSS MASKING FIX FOR IMAGES 
    =================================== */

    /* Re-enable screen blending but add a mask to hide edges */
    .hero-img {
        mix-blend-mode: screen !important;
        /* This creates a soft fade-out circle, hiding the square edges of the image */
        -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
        mask-image: radial-gradient(circle at center, black 30%, transparent 70%);

        /* Slightly boost brightness to make them pop against dark bg */
        filter: brightness(1.2) contrast(1.1);
    }

    /* Specific adjustments for different shapes */
    .img-center {
        /* Main bottle is wider, adjust mask */
        -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
        mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    }

    .img-left-1,
    .img-right-1 {
        /* Smaller items need tighter masks */
        -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
        mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    }

    /* =================================== 
    HERO IMAGE SIZE & ALIGNMENT FIX 
    =================================== */

    /* Increase container size to match text block height */
    .hero-image {
        height: 600px;
        /* Increased from 500px */
    }

    .hero-bottle-container {
        max-width: 900px;
        /* Increased max-width */
        transform: scale(1.35);
        /* Scale up the entire composition by 35% */
        transform-origin: center center;
    }

    /* Ensure responsiveness doesn't break with scaling */
    @media (max-width: 768px) {
        .hero-image {
            display: none;
            /* Mobilde şişe resimlerini gizle */
        }

        .hero-bottle-container {
            display: none;
            /* Mobilde şişe resimlerini gizle */
        }
    }

    /* =================================== 
    LOGO SIZE ADJUSTMENT & HERO FIX 
    =================================== */

    /* 1. Tripil Logo Size */
    .logo {
        font-size: 3rem !important;
        /* Increase text logo size */
    }

    .logo img {
        height: 120px !important;
        /* If image logo, increase height drastically (was likely ~40px) */
        width: auto;
    }

    /* 2. Fix Cut-off Bottles - Bring them closer to center */
    /* Reset scaling slightly to prevent large cut-off, or adjust positioning */

    .img-left-1 {
        left: 28% !important;
        /* Move inward from 20% */
    }

    .img-right-1 {
        right: 28% !important;
        /* Move inward from 20% */
    }

    .img-left-2 {
        left: 15% !important;
        /* Move inward from 5% (was cutting off) */
        opacity: 0.5;
        /* Fade more to look like background */
    }

    .img-right-2 {
        right: 15% !important;
        /* Move inward from 5% (was cutting off) */
        opacity: 0.5;
    }

    /* Ensure container prevents clipping of shadows but keeps layout */
    .hero-image {
        overflow: visible !important;
        /* Allow floating elements to slightly overflow if needed without hard cut */
    }

    /* =================================== 
    OVERSIZED LOGO FIX 
    =================================== */

    /* Allow logo to overlap header boundaries without pushing layout */
    .header .container {
        position: relative;
        /* Establish context */
        /* Ensure header height is constrained */
        max-height: 70px;
        align-items: center;
        overflow: visible;
    }

    .logo {
        position: absolute;
        /* Take out of flow */
        top: 50%;
        transform: translateY(-50%);
        left: 10px;
        /* Adjust as needed */
        z-index: 100;

        /* Keep the large size */
        font-size: 3rem !important;
    }

    /* Push navigation right to not overlap the big logo */
    .nav {
        padding-left: 160px;
        /* Safety buffer for the big logo */
    }

    /* Adjust mobile layout since absolute positioning changes flow */
    @media (max-width: 768px) {
        .logo {
            position: relative;
            /* Reset for mobile */
            transform: none;
            top: auto;
            left: auto;
            font-size: 2rem !important;
            /* Smaller on mobile */
        }

        .nav {
            padding-left: 0;
        }

        .header .container {
            max-height: auto;
            /* Auto height on mobile */
        }
    }

    /* =================================== 
    NAV ALIGNMENT FIX 
    =================================== */

    /* With absolute logo, header-content only has nav. 
    We need to force nav into the right side. */

    .header-content {
        justify-content: flex-end !important;
        /* Forces content to right */
        position: static;
        /* Ensure it doesn't trap absolute logo relative to itself if we want logo relative to container */
    }

    /* Ensure the nav element itself is visible and positioned right */
    .nav {
        margin-left: auto;
        /* Push to right */
    }

    /* =================================== 
    3-IMAGE NO-OVERLAP LAYOUT 
    =================================== */

    /* Reset positions to spread them out completely */
    .img-center {
        width: 280px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }

    .img-left-1 {
        width: 180px;
        /* Move far left to avoid overlap */
        left: 10% !important;
        top: 50%;
        transform: translateY(-50%) rotate(-15deg);
        z-index: 9;
    }

    .img-right-1 {
        width: 180px;
        /* Move far right to avoid overlap */
        right: 10% !important;
        top: 50%;
        transform: translateY(-50%) rotate(15deg);
        z-index: 9;
    }

    /* Ensure container is wide enough for separation */
    .hero-bottle-container {
        width: 100%;
        /* Ensure items don't float out of bounds unexpectedly */
        overflow: visible;
    }

    /* =================================== 
    USER IMAGE RESET 
    =================================== */

    /* Disable previous masking and blending tricks */
    .hero-img {
        mix-blend-mode: normal !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
        /* Add nice shadow for depth */
    }

    /* Adjust sizing/positioning for user images */
    .img-center {
        width: 250px;
        /* Adjust size based on uploaded image ratio */
        top: 50%;
    }

    .img-left-1 {
        width: 140px;
        /* Adjust size */
        left: 15% !important;
        transform: translateY(-50%) rotate(-5deg);
        /* Slight tilt */
    }

    .img-right-1 {
        width: 140px;
        right: 15% !important;
        transform: translateY(-50%) rotate(5deg);
    }

    /* Ensure images maintain aspect ratio */
    .hero-img {
        height: auto;
        object-fit: contain;
    }

    /* =================================== 
    FINAL HERO ADJUSTMENT: SIZE & SEPARATION 
    =================================== */

    /* 1. Make images larger to match text block height */
    .img-center {
        width: 320px !important;
        /* Increased from 250px */
    }

    .img-left-1 {
        width: 180px !important;
        /* Increased from 140px */
        left: 2% !important;
        /* Pushed far left to prevent overlap */
        transform: translateY(-50%) rotate(-10deg);
    }

    .img-right-1 {
        width: 180px !important;
        /* Increased from 140px */
        right: 2% !important;
        /* Pushed far right to prevent overlap */
        transform: translateY(-50%) rotate(10deg);
    }

    /* 2. Container Adjustment */
    .hero-bottle-container {
        /* Ensure the container uses full width available in the grid column */
        width: 100%;
        /* Add padding to prevent cut-off at very edges since we pushed images far out */
        padding: 0 20px;
        box-sizing: border-box;

        /* Fine-tune vertical alignment if needed */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* =================================== 
    COMPACT RECIPE LIST & STYLE 
    =================================== */

    /* Make table rows more compact */
    /* Make table rows more compact - Reduced by ~25% */
    .recipes-table th,
    .recipes-table td,
    .inventory-table th,
    .inventory-table td {
        padding: 3px 6px !important;
        /* Detailed reduction */
        font-size: 0.82rem !important;
        /* Slightly smaller font */
    }

    /* Make action buttons smaller */
    .recipes-table .btn-icon {
        width: 22px;
        height: 22px;
        padding: 2px;
    }

    /* Inventory table buttons - yan yana hizalı */
    .inventory-table .btn-icon {
        width: 20px;
        height: 20px;
        padding: 2px;
        flex-shrink: 0;
    }

    .inventory-table td.text-right {
        padding: 0.5rem !important;
    }

    .inventory-table td.text-right>div {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }

    .recipes-table .btn-icon svg,
    .inventory-table .btn-icon svg {
        width: 12px;
        height: 12px;
    }

    /* Adjust row height */
    .recipe-row {
        height: 30px !important;
    }

    /* Inventory row - 1150 x 36.98 */
    .inventory-table {
        width: 1150px;
        max-width: 100%;
    }

    .inventory-row {
        height: 36.98px !important;
    }

    /* =================================== 
    CUSTOM DELETE MODAL 
    =================================== */
    #deleteModal .modal-content {
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes popIn {
        from {
            transform: scale(0.8);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* =================================== 
    INVENTORY PAGE STYLES 
    =================================== */

    .inventory-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-xl);
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .inventory-controls {
        display: flex;
        gap: var(--space-md);
        flex-wrap: wrap;
    }

    .inventory-list-container {
        background: var(--color-surface);
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border);
        overflow: hidden;
        box-shadow: var(--shadow-md);
    }

    .inventory-table {
        width: 100%;
        border-collapse: collapse;
    }

    /* Inventory specific overrides merged with recipes above for consistency */

    .inventory-table th {
        background: var(--color-bg);
        font-weight: 600;
        color: var(--color-text-muted);
        font-size: 0.85rem;
        text-transform: uppercase;
        text-align: center !important;
        /* Force Center */
    }

    .inventory-table td {
        vertical-align: middle;
        text-align: center !important;
        /* Force Center */
    }

    /* Ensure nested elements like divs or strong tags also respect center if block level */
    .inventory-table td>div,
    .inventory-table td>strong,
    .inventory-table td>span {
        display: inline-block;
        /* Or flex/justify-content: center if clearer */
        text-align: center;
    }

    .inventory-row:nth-child(odd) {
        background-color: var(--color-surface);
    }

    .inventory-row:nth-child(even) {
        background-color: rgba(212, 175, 55, 0.05);
        /* Light primary tint */
    }

    .inventory-row:hover {
        background-color: rgba(212, 175, 55, 0.1);
    }

    /* Inventory checkbox styling - küçültülmüş (%50) */
    .inventory-table input[type="checkbox"],
    .inventory-table th input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px;
        min-height: 16px;
        cursor: pointer;
        margin: 0;
        transform: scale(0.8);
    }

    /* Modal Form Styles */
    .form-input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-bg);
        color: var(--color-text);
        margin-bottom: 1rem;
        font-family: inherit;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--color-text);
    }

    /* =================================== 
    PROFESSIONAL INVENTORY MODAL 
    =================================== */

    /* Make modal wider */
    #inventoryModal .modal-content {
        max-width: 500px !important;
        padding: 20px !important;
    }

    /* Stock Out History Modal - Wider */
    #stockOutHistoryModal .modal-content {
        max-width: 1150px !important;
    }

    /* Grid Layout for Form */
    #inventoryForm {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Column Layout */
        gap: 6px;
    }

    /* Full width elements */
    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .form-label {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        font-weight: 500;
        margin: 0;
    }

    #inventoryForm .form-input {
        margin-bottom: 0;
    }

    .form-input {
        padding: 8px 12px;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        background-color: var(--color-bg);
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }

    .form-input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
        outline: none;
    }

    /* Specific styling for currency/unit inputs if needed */
    .input-with-suffix {
        position: relative;
        display: flex;
        align-items: center;
    }

    .input-suffix {
        position: absolute;
        right: 12px;
        color: var(--color-text-muted);
        font-size: 0.9rem;
    }

    /* Submit button full width */
    .btn-submit-inventory {
        grid-column: 1 / -1;
        margin-top: 5px;
        padding: 10px;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    /* ===================================
    ADVANCED ADMIN PANEL STYLES
    =================================== */

    /* Admin Tabs */
    .admin-tab {
        padding: 0.75rem 1.5rem;
        background: transparent;
        border: none;
        border-bottom: 3px solid transparent;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-text-muted);
        cursor: pointer;
        transition: all 0.2s;
    }

    .admin-tab:hover {
        color: var(--color-primary);
        background: rgba(212, 175, 55, 0.05);
    }

    .admin-tab.active {
        color: var(--color-primary);
        border-bottom-color: var(--color-primary);
        font-weight: 600;
    }

    /* Admin Tab Content */
    .admin-tab-content {
        animation: fadeIn 0.3s ease-in;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Admin Table */
    .admin-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
    }

    .admin-table thead {
        background: var(--color-bg);
    }

    .admin-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        color: var(--color-text);
        border-bottom: 2px solid var(--color-border);
    }

    .admin-table td {
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .admin-table tbody tr {
        transition: background 0.2s;
    }

    .admin-table tbody tr:hover {
        background: var(--color-bg);
    }

    /* Toggle Switch */
    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 24px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

    input:checked+.slider {
        background-color: var(--color-primary);
    }

    input:checked+.slider:before {
        transform: translateX(26px);
    }

    /* Search Box */
    .search-box {
        position: relative;
        width: 100%;
    }

    .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-text-muted);
    }

    .search-input {
        width: 100%;
        padding: 0.6rem 0.6rem 0.6rem 2.5rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: 0.9rem;
        transition: all 0.2s;
    }

    .search-input:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    }

    /* Responsive Admin Panel */
    @media (max-width: 768px) {
        .admin-tab {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
        }

        .admin-table {
            font-size: 0.8rem;
        }

        .admin-table th,
        .admin-table td {
            padding: 0.75rem 0.5rem;
        }

        /* Calculator Toolbar Responsive */
        #calculator-integration .toolbar-top-row {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        #calculator-integration .toolbar-controls-row {
            grid-template-columns: 1fr 1fr;
            /* 2 columns for buttons */
        }

        #calculator-integration .toolbar-controls-row>.form-field,
        #calculator-integration .toolbar-controls-row>.status-group {
            grid-column: span 2;
            /* Full width for inputs */
        }

        #calculator-integration .action-group {
            grid-column: span 2;
            flex-wrap: wrap;
            justify-content: stretch;
        }

        #calculator-integration .action-group button {
            flex: 1;
        }

        /* Modal Responsive Widths */
        .modal-content,
        #recipeModal .modal-content,
        #salesModal .modal-content {
            width: 95% !important;
            margin: 10% auto;
            max-width: none;
        }
    }

    /* ===================================
    TOKYO THEME SPECIAL EFFECTS
    =================================== */

    .theme-tokyo {
        background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    }

    .theme-tokyo .card {
        background: rgba(26, 31, 58, 0.8);
        border: 1px solid rgba(0, 255, 255, 0.2);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    }

    .theme-tokyo .btn-primary {
        background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
        color: #0a0e27;
        font-weight: 600;
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }

    .theme-tokyo .btn-primary:hover {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
        transform: translateY(-2px);
    }

    .theme-tokyo .header {
        background: rgba(10, 14, 39, 0.95);
        border-bottom: 1px solid rgba(0, 255, 255, 0.2);
        box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
    }

    .theme-tokyo .nav-link {
        color: #00ffff;
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }

    .theme-tokyo .nav-link:hover,
    .theme-tokyo .nav-link.active {
        color: #ff00ff;
        text-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
    }

    /* Tokyo Neon Glow Effect */
    .theme-tokyo h1,
    .theme-tokyo h2,
    .theme-tokyo h3 {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }

    /* Dark Theme Adjustments */
    .theme-dark .card {
        background: #2d2d2d;
        border: 1px solid #404040;
    }

    .theme-dark .header {
        background: rgba(45, 45, 45, 0.95);
        border-bottom: 1px solid #404040;
    }

    .theme-dark .btn-primary {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        color: #1a1a1a;
    }

    .theme-dark input,
    .theme-dark textarea,
    .theme-dark select {
        background: #1a1a1a;
        border-color: #404040;
        color: #e0e0e0;
    }

    .theme-dark input:focus,
    .theme-dark textarea:focus,
    .theme-dark select:focus {
        border-color: #FFD700;
    }

    /* ===================================
    RESPONSIVE DESIGN FOR SELECTORS
    =================================== */

    @media (max-width: 768px) {

        /* Hide selectors in mobile menu, show them in a separate row */
        .nav-list {
            flex-direction: column;
        }

        .nav-list li:has(select) {
            margin-left: 0 !important;
            margin-top: 0.5rem;
            width: 100%;
        }

        .nav-list select {
            width: 100%;
        }
    }

    /* Smooth transitions for theme changes */
    * {
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }

    /* Prevent transition on page load */
    .preload * {
        transition: none !important;
    }

    /* ===================================
    FOOTER SETTINGS SECTION
    =================================== */

    .footer-settings {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-settings select {
        transition: all 0.2s;
    }

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

    .footer-settings select:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    }

    @media (max-width: 768px) {
        .footer-content {
            flex-direction: column;
            text-align: center;
            gap: 2rem;
        }

        .footer-settings {
            align-items: center;
        }
    }

    /* ===================================
    LOGO THEME ADJUSTMENTS
    =================================== */

    /* Dark theme - Logo brightness */
    .theme-dark .logo-image {
        filter: invert(1) brightness(1.2) contrast(1.3);
    }

    /* Tokyo theme - Logo with neon glow */
    .theme-tokyo .logo-image {
        filter: invert(1) brightness(1.5) contrast(1.4) drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
    }

    /* Smooth transition for logo */
    .logo-image {
        transition: all 0.3s ease;
    }

    /* Logo text styling */
    .logo-text {
        transition: all 0.3s ease;
        letter-spacing: 0.05em;
    }

    .logo:hover .logo-text {
        transform: scale(1.05);
    }

    /* ===================================
    COMPACT HEADER FOR SELECTORS
    =================================== */

    /* Make nav links smaller */
    .nav-link {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.35rem !important;
    }

    /* Style header selectors */
    .header-select {
        padding: 0.3rem 0.4rem;
        border-radius: 6px;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        color: var(--color-text);
        cursor: pointer;
        font-size: 0.8rem;
        transition: all 0.2s;
        min-width: 48px;
        flex-shrink: 0;
    }

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

    .header-select:focus {
        outline: none;
        border-color: var(--color-primary);
    }

    /* Dropdown Styling */
    .nav-list li {
        position: relative;
        padding: 0 0.5rem;
    }

    /* Dropdown Content */
    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--color-surface);
        min-width: 200px;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        padding: 0.5rem 0;
        z-index: 1001;
        border: 1px solid var(--color-border);
        margin-top: 0.5rem;
    }

    .nav-list li:hover .dropdown-content {
        display: block;
        animation: dropdownFade 0.2s ease-out forwards;
    }

    .dropdown-content li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .dropdown-content a {
        display: block;
        padding: 0.75rem 1.5rem;
        color: var(--color-text);
        font-size: 0.9rem;
        text-align: left;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .nav-link.dropdown-trigger {
        padding-right: 1.2em;
        /* Space for arrow */
    }

    /* Remove bottom line effect for dropdown items */
    .dropdown-content a::after {
        display: none !important;
    }

    .dropdown-content a:hover {
        background-color: var(--color-bg);
        color: var(--color-primary);
        padding-left: 1.8rem;
    }

    @keyframes dropdownFade {
        from {
            opacity: 0;
            transform: translate(-50%, 10px);
        }

        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }

    /* User Profile Dropdown Styling */
    .user-dropdown {
        position: relative;
        margin-left: 0.5rem;
    }

    .user-btn {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        background: var(--color-primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
    }

    .user-menu-content {
        right: 0;
        /* Align right side of dropdown with button */
        left: auto;
        /* Override default centered dropdown */
        transform: none;
        /* Override default center transform */
        min-width: 150px;
    }

    .user-menu-content.show {
        display: block;
    }

    /* Minimal Select Styling */
    .minimal-select {
        border: none;
        background: transparent;
        font-size: 0.9rem;
        cursor: pointer;
        color: var(--color-text-muted);
        font-weight: 500;
        padding: 0.2rem;
        appearance: none;
        /* Remove default arrow if desired, or keep minimal */
        -webkit-appearance: none;
        text-align: center;
    }

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

    .icon-action {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .icon-action:hover {
        background: rgba(0, 0, 0, 0.05);
        /* Subtle hover effect */
    }

    /* ===================================
    MOBILE RESPONSIVENESS IMPROVEMENTS
    =================================== */

    /* Tablet Breakpoint (768px - 1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {
        .container {
            padding: 0 var(--space-md);
        }

        .hero-content {
            grid-template-columns: 1fr;
            gap: var(--space-lg);
        }

        .recipes-table th,
        .recipes-table td,
        .inventory-table th,
        .inventory-table td,
        .sales-table th,
        .sales-table td {
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
        }

        .modal-content {
            width: 85%;
            max-width: 700px;
        }

        .form-row {
            grid-template-columns: 1fr 1fr;
            gap: var(--space-md);
        }

        .btn {
            padding: 0.6rem 1.2rem;
            font-size: 0.9rem;
        }
    }

    /* Small Mobile Devices (320px - 480px) */
    @media (max-width: 480px) {
        .container {
            padding: 0 var(--space-sm);
        }

        h1 {
            font-size: 2rem;
        }

        h2 {
            font-size: 1.75rem;
        }

        h3 {
            font-size: 1.5rem;
        }

        .btn {
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            min-height: 44px;
            /* Touch-friendly minimum */
        }

        .btn-icon {
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
        }

        .form-input,
        .form-select {
            padding: 0.75rem;
            font-size: 16px;
            /* Prevents zoom on iOS - MUST be 16px or larger */
            min-height: 44px;
            /* Better touch target */
            width: 100%;
            /* Prevent iOS styling */
            -webkit-appearance: none;
            appearance: none;
            border-radius: var(--radius-md);
        }

        /* Select dropdown styling for mobile */
        .form-select {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C2C2C' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 12px;
            padding-right: 2.5rem;
        }

        .modal-content {
            width: 95%;
            margin: 5% auto;
            padding: var(--space-md);
            max-height: 90vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            /* Smooth scroll for iOS */
            /* Prevent modal from being cut off by keyboard */
            position: relative;
            /* Better touch scrolling */
            overscroll-behavior: contain;
        }

        .search-box {
            max-width: 100%;
        }

        .search-input {
            font-size: 16px;
            /* Prevents zoom on iOS - MUST be 16px or larger */
            padding: 0.75rem 0.75rem 0.75rem 2.5rem;
            min-height: 44px;
            /* Better touch target */
            width: 100%;
        }

        /* Prevent iOS input styling */
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        input[type="password"],
        textarea {
            -webkit-appearance: none;
            appearance: none;
            border-radius: var(--radius-md);
        }
    }

    /* Mobile-specific improvements */
    @media (max-width: 768px) {

        /* Prevent body scroll when modal is open */
        body.modal-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Better keyboard handling */
        input:focus,
        textarea:focus,
        select:focus {
            /* Scroll input into view when keyboard opens */
            scroll-margin-top: 20px;
        }
    }

    /* Table Responsive Improvements */
    @media (max-width: 768px) {

        /* Table wrapper for horizontal scroll */
        .recipes-list-container,
        .inventory-list-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            position: relative;
            /* Better touch scrolling */
            overscroll-behavior-x: contain;
            /* Scroll indicator */
            scrollbar-width: thin;
        }

        /* Touch feedback for interactive elements */
        .touch-active {
            opacity: 0.7;
            transform: scale(0.98);
            transition: opacity 0.1s, transform 0.1s;
        }

        /* Ensure all interactive elements are touch-friendly */
        button,
        a,
        [onclick],
        .btn,
        .btn-icon,
        .nav-link,
        .hamburger {
            -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
        }

        .recipes-table,
        .inventory-table,
        .sales-table {
            min-width: 600px;
        }

        /* Sticky header for tables */
        .recipes-table thead,
        .inventory-table thead,
        .sales-table thead {
            position: sticky;
            top: 0;
            z-index: 10;
            background: var(--color-surface);
        }

        .recipes-table th,
        .inventory-table th,
        .sales-table th {
            background: var(--color-surface);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        /* Compact table cells on mobile */
        .recipes-table th,
        .recipes-table td,
        .inventory-table th,
        .inventory-table td,
        .sales-table th,
        .sales-table td {
            padding: 0.5rem 0.4rem;
            font-size: 0.85rem;
        }

        /* Hide less important columns on very small screens */
        @media (max-width: 480px) {

            /* All columns are visible and accessible via horizontal scroll */
        }
    }

    /* Touch Event Optimizations */
    @media (hover: none) and (pointer: coarse) {

        /* Touch devices */
        .btn,
        .btn-icon,
        .nav-link,
        .card {
            -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
        }

        /* Larger touch targets */
        .btn-icon {
            min-width: 44px;
            min-height: 44px;
        }

        /* Remove hover effects on touch devices */
        .recipe-row:hover,
        .inventory-row:hover {
            background-color: transparent;
        }

        /* Active state for touch */
        .recipe-row:active,
        .inventory-row:active {
            background-color: var(--color-bg);
        }
    }

    /* Calculator Mobile Optimizations */
    @media (max-width: 768px) {
        #calculator-integration {
            padding: var(--space-sm);
        }

        #calculator-integration .toolbar-top-row {
            grid-template-columns: 1fr;
            gap: var(--space-sm);
        }

        #calculator-integration .toolbar-controls-row {
            grid-template-columns: 1fr;
            gap: var(--space-sm);
        }

        #calculator-integration .form-field {
            margin-bottom: var(--space-sm);
        }

        #calculator-integration .form-field input,
        #calculator-integration .form-field select {
            font-size: 16px;
            /* Prevents zoom on iOS */
            padding: 0.75rem;
            min-height: 44px;
        }

        #calculator-integration .action-group {
            flex-direction: column;
            gap: var(--space-sm);
        }

        #calculator-integration .action-group button {
            width: 100%;
            min-height: 44px;
            font-size: 0.95rem;
        }

        #calculator-integration .table-wrap {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        #calculator-integration table {
            min-width: 600px;
            font-size: 0.85rem;
        }

        #calculator-integration table th,
        #calculator-integration table td {
            padding: 0.5rem 0.4rem;
        }

        #calculator-integration table input {
            font-size: 16px;
            /* Prevents zoom on iOS */
            padding: 0.5rem;
            min-height: 40px;
        }

        #calculator-integration .btn-ghost {
            min-height: 44px;
            padding: 0.6rem 1rem;
        }

        /* Sticky First Column for Calculator Table */
        #calculator-integration table th:first-child,
        #calculator-integration table td:first-child {
            position: -webkit-sticky;
            position: sticky;
            left: 0;
            background-color: var(--color-surface);
            z-index: 5;
            border-right: 1px solid var(--color-border);
            /* Sağ tarafta hafif gölge */
            box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
            /* Min width to prevent text squashing */
            min-width: 140px;
            max-width: 160px;
        }

        /* Ensure input inside sticky cell fits */
        #calculator-integration table td:first-child input {
            width: 100%;
        }
    }

    /* Form Mobile Optimizations */
    @media (max-width: 768px) {
        .form-group {
            margin-bottom: var(--space-md);
        }

        .form-label {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            font-size: 16px;
            /* Prevents zoom on iOS */
            padding: 0.75rem;
            min-height: 44px;
            border-radius: var(--radius-md);
        }

        .form-row {
            grid-template-columns: 1fr;
            gap: var(--space-md);
        }

        .form-divider {
            margin: var(--space-lg) 0;
        }
    }

    /* Header Mobile Improvements */
    @media (max-width: 768px) {
        .header {
            padding: var(--space-sm) 0;
        }

        .header .container {
            padding: 0 var(--space-sm);
        }

        .logo {
            position: relative;
            left: auto;
            flex-shrink: 0;
        }

        .logo-image {
            height: 84px !important;
            /* 2x büyütüldü (42px -> 84px) */
            min-height: 84px;
            max-height: 84px;
            width: auto;
            max-width: 320px;
            /* 2x büyütüldü (160px -> 320px) */
            object-fit: contain;
            flex-shrink: 0;
            /* Yerini değiştirmeden sadece boyut büyütüldü */
        }

        .header-content {
            padding: 0.5rem 0;
            /* Logo büyüdüğü için padding azaltıldı */
            justify-content: space-between;
            align-items: center;
            /* Logo ve hamburger dikey hizalama */
            min-height: 84px;
            /* Logo yüksekliğine uygun */
        }

        /* Tema butonunun mobilde hamburger yanında çıkması için */
        .header-actions {
            margin-left: auto;
            margin-right: 0.25rem;
            display: flex !important;
            /* Mobilde gizli kalmamasını garanti et */
            align-items: center;
            height: 44px;
        }

        /* Mobile specific theme button size */
        .header-actions .theme-toggle-btn {
            width: 44px;
            height: 44px;
        }

        .hamburger {
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            margin-left: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .nav.active {
            max-height: calc(100vh - 73px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .nav-link {
            padding: var(--space-md);
            font-size: 1rem;
            min-height: 44px;
            display: flex;
            align-items: center;
        }
    }

    /* ===================================
       SUMMARY BOX REDESIGN
       =================================== */

    #summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        width: 100%;
    }

    #summary .box {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Header Styling */
    .summary-header {
        position: relative;
        padding-left: 1rem;
        margin-bottom: 1.5rem;
        min-height: 48px;
        /* Fixed height for alignment */
        display: flex;
        align-items: center;
    }

    .summary-header::before {
        content: '';
        position: absolute;
        left: 0;
        top: 4px;
        bottom: 4px;
        width: 4px;
        background: #D4AF37;
        /* Gold accent color */
        border-radius: 2px;
    }

    .summary-header b {
        color: #D4AF37;
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.3;
        display: block;
    }

    /* List Items Styling */
    .summary-item {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 12px;
        align-items: center;
        /* Center vertically */
        padding: 0.75rem 0;
        border-bottom: 1px dashed var(--color-border);
        font-size: 0.95rem;
    }

    .summary-item:last-child {
        border-bottom: none;
    }

    .summary-item-name {
        font-weight: 500;
        color: var(--color-text);
        line-height: 1.2;
        /* Allow wrapping */
        word-wrap: break-word;
    }

    .summary-item-pct {
        color: var(--color-text-muted);
        font-size: 0.85rem;
        background: var(--color-bg);
        padding: 2px 8px;
        border-radius: 4px;
        font-family: 'Monaco', 'Courier New', monospace;
        /* Monospaced for alignment */
    }

    .summary-item-val {
        font-weight: 600;
        color: var(--color-text);
        text-align: right;
        min-width: 60px;
    }

    .summary-item-val span.unit {
        font-size: 0.8rem;
        color: var(--color-text-muted);
        margin-left: 2px;
    }

    /* Total Row Styling */
    .summary-total {
        margin-top: auto;
        /* Push to bottom */
        padding-top: 1.25rem;
        border-top: 1px dashed var(--color-border);
        /* Dashed separator */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .summary-total-label {
        font-weight: 700;
        color: #D4AF37;
        font-size: 1.05rem;
    }

    .summary-total-value {
        font-weight: 800;
        color: #D4AF37;
        font-size: 1.2rem;
        text-align: right;
        /* Align value and unit to the right */
        line-height: 1.2;
        /* Tighten line height for 2-line display */
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        #summary {
            grid-template-columns: 1fr !important;
            gap: 1rem;
        }

        .summary-header {
            min-height: auto;
            /* Allow auto height on mobile if needed */
        }
    }

    /* Card Mobile Optimizations */
    @media (max-width: 768px) {
        .card {
            padding: var(--space-md);
            margin-bottom: var(--space-md);
        }

        .card h2,
        .card h3 {
            font-size: 1.25rem;
            margin-bottom: var(--space-sm);
        }
    }

    /* Button Group Mobile */
    @media (max-width: 768px) {
        .btn-group {
            flex-direction: column;
            width: 100%;
        }

        .btn-group .btn {
            width: 100%;
            margin-bottom: var(--space-sm);
        }

        .btn-group .btn:last-child {
            margin-bottom: 0;
        }
    }

    /* Search Box Mobile */
    @media (max-width: 768px) {
        .search-box {
            width: 100%;
            max-width: 100%;
        }

        .search-input {
            width: 100%;
            font-size: 16px;
            /* Prevents zoom on iOS */
        }
    }

    /* Empty State Mobile */
    @media (max-width: 768px) {
        .empty-state {
            padding: var(--space-xl) var(--space-md);
        }

        .empty-state h3 {
            font-size: 1.25rem;
        }

        .empty-state p {
            font-size: 0.9rem;
        }
    }

    /* Pagination Mobile */
    @media (max-width: 768px) {
        .pagination {
            flex-wrap: wrap;
            gap: var(--space-xs);
            justify-content: center;
        }

        .pagination button,
        .pagination .page-number {
            min-width: 44px;
            min-height: 44px;
            padding: 0.5rem;
        }
    }

    /* Large Screens (1920px+) */
    @media (min-width: 1920px) {
        .container {
            max-width: 1400px;
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
        }
    }

    /* ===================================
    ABOUT PAGE PROFESSIONAL STYLES
    =================================== */
    .about-page {
        padding-bottom: var(--space-4xl);
    }

    .about-header {
        text-align: center;
        padding: var(--space-3xl) var(--space-md);
        background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
        margin-bottom: var(--space-2xl);
        position: relative;
        overflow: hidden;
    }

    .about-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--color-primary);
        border-radius: var(--radius-full);
    }

    .about-header h1 {
        font-size: 3.5rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: var(--space-sm);
        background: linear-gradient(135deg, var(--color-text) 0%, #666 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: var(--font-heading);
    }

    .about-header .lead {
        font-size: 1.25rem;
        color: var(--color-text-muted);
        max-width: 600px;
        margin: 0 auto;
        font-weight: 500;
    }

    .about-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: var(--space-xl);
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-card {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-xl);
        padding: var(--space-2xl);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .about-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
        border-color: rgba(212, 175, 55, 0.3);
    }

    .about-card h2 {
        font-size: 1.5rem;
        margin-bottom: var(--space-lg);
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        color: var(--color-heading);
    }

    .about-card p {
        color: var(--color-text-muted);
        line-height: 1.8;
        margin-bottom: var(--space-md);
        font-size: 1.05rem;
    }

    /* Layout Spans */
    .col-span-12 {
        grid-column: span 12;
    }

    .col-span-9 {
        grid-column: span 9;
    }

    .col-span-8 {
        grid-column: span 8;
    }

    .col-span-6 {
        grid-column: span 6;
    }

    .col-span-4 {
        grid-column: span 4;
    }

    .col-span-3 {
        grid-column: span 3;
    }

    /* Features Grid */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--space-lg);
        margin-top: var(--space-lg);
    }

    .feature-item {
        padding: var(--space-lg);
        background: var(--color-bg);
        border-radius: var(--radius-lg);
        transition: background-color 0.2s ease;
    }

    .feature-item:hover {
        background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
    }

    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
        display: inline-block;
        padding: var(--space-xs);
        background: rgba(212, 175, 55, 0.1);
        border-radius: var(--radius-md);
        color: var(--color-primary);
    }

    .feature-title {
        font-weight: 700;
        margin-bottom: var(--space-xs);
        display: block;
        color: var(--color-heading);
    }

    /* Premium Banner */
    .premium-banner {
        grid-column: span 12;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: white;
        text-align: center;
        position: relative;
        overflow: hidden;
        border: none;
    }

    .premium-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    }

    .premium-banner h2 {
        color: #D4AF37;
        font-size: 2rem;
        justify-content: center;
    }

    .premium-banner p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Responsive */
    @media (max-width: 1024px) {

        .col-span-8,
        .col-span-6,
        .col-span-4 {
            grid-column: span 12;
        }

        .about-header h1 {
            font-size: 2.5rem;
        }
    }

    /* Blog Modal & Animations */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ===================================
    BLOG PAGE STYLES
    =================================== */

    .blog-page {
        padding: var(--space-lg) 0;
    }

    .blog-page .about-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .blog-page .about-header h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: 0.5rem;
    }

    .blog-page .about-header .lead {
        font-size: clamp(1rem, 2vw, 1.25rem);
        color: var(--color-text-muted);
    }

    /* Blog Grid Layout */
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .blog-grid .col-span-3 {
        grid-column: span 3;
    }

    .blog-grid .col-span-9 {
        grid-column: span 9;
    }

    /* Categories Sidebar */
    .blog-grid .col-span-3 .card {
        position: sticky;
        top: 2rem;
        padding: var(--space-lg);
    }

    .blog-grid .col-span-3 h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .blog-category-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        color: var(--color-text);
        text-decoration: none;
        transition: color 0.2s;
        font-size: 0.95rem;
        min-height: 44px;
        /* Touch target */
    }

    .blog-category-link:hover,
    .blog-category-link.active {
        color: var(--color-primary);
        font-weight: 600;
    }

    /* Blog Posts Container */
    .blog-posts {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Blog Card */
    .blog-card {
        display: flex;
        gap: 1.5rem;
        padding: 0;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        min-height: 260px;
        cursor: pointer;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

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

    .blog-card-image {
        width: 320px;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .blog-card>div:first-child {
        width: 320px;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .blog-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .blog-card:hover img {
        transform: scale(1.05);
    }

    .blog-card-content {
        padding: 1.5rem 1.5rem 1.5rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
    }

    .blog-card>div:last-child {
        padding: 1.5rem 1.5rem 1.5rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
    }

    .blog-card h2 {
        margin-bottom: 0.75rem;
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .blog-card h2 a {
        color: var(--color-heading);
        text-decoration: none;
        transition: color 0.2s;
    }

    .blog-card h2 a:hover {
        color: var(--color-primary);
    }

    .blog-card .category-badge {
        background: rgba(212, 175, 55, 0.1);
        color: var(--color-primary);
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
    }

    .blog-card .post-meta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }

    .blog-card .post-date {
        color: var(--color-text-muted);
        font-size: 0.85rem;
    }

    .blog-card .post-excerpt {
        color: var(--color-text-muted);
        margin-bottom: auto;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-card .post-author {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 0.9rem;
        color: var(--color-text);
        font-weight: 500;
        margin-top: 1rem;
    }

    .blog-card .post-author img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* Blog Modal */
    .blog-modal-lg {
        width: 800px !important;
        max-width: 95vw;
    }

    .blog-modal-lg .swal-content {
        margin: 0 !important;
        padding: 1rem !important;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ===================================
    BLOG PAGE MOBILE RESPONSIVE
    =================================== */

    @media (max-width: 768px) {

        /* Body ve HTML overflow kontrolü */
        body.blog-page-active,
        html.blog-page-active {
            overflow-x: hidden !important;
            max-width: 100vw !important;
        }

        /* Container padding azalt - ZORUNLU */
        .blog-page .container {
            padding: 0 var(--space-sm) !important;
            max-width: 100% !important;
            width: 100% !important;
            margin: 0 auto !important;
            box-sizing: border-box !important;
        }

        .blog-page {
            padding: var(--space-md) 0 !important;
            width: 100% !important;
            max-width: 100vw !important;
            overflow-x: hidden !important;
            box-sizing: border-box !important;
            margin: 0 !important;
        }

        /* Card genişlik kontrolü */
        .blog-page .card {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        .blog-page .about-header {
            margin-bottom: 1.5rem;
            text-align: left;
            padding: 0;
        }

        .blog-page .about-header h1 {
            font-size: 1.75rem;
            line-height: 1.2;
        }

        .blog-page .about-header .lead {
            font-size: 1rem;
            line-height: 1.4;
        }

        /* Grid tek kolona düş */
        .blog-grid {
            grid-template-columns: 1fr !important;
            gap: 1.5rem;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        .blog-grid .col-span-3,
        .blog-grid .col-span-9 {
            grid-column: span 1 !important;
            width: 100%;
            max-width: 100%;
        }

        /* Sidebar sticky'yi kaldır, üstte göster */
        .blog-grid .col-span-3 .card {
            position: static !important;
            top: auto !important;
            padding: var(--space-md);
            width: 100%;
            margin-bottom: 0;
        }

        .blog-grid .col-span-3 h3 {
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
        }

        .blog-category-link {
            font-size: 0.9rem;
            padding: 0.75rem 0;
            min-height: 48px;
            /* Daha büyük touch target */
            width: 100%;
        }

        /* Blog posts gap azalt */
        .blog-posts {
            gap: 1.5rem;
            width: 100%;
        }

        /* Blog card dikey layout - ZORUNLU */
        .blog-card {
            flex-direction: column !important;
            min-height: auto !important;
            height: auto !important;
            gap: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            box-sizing: border-box !important;
        }

        .blog-card-image,
        .blog-card>div:first-child {
            width: 100% !important;
            height: 200px !important;
            min-height: 200px !important;
            max-height: 200px !important;
            flex-shrink: 0 !important;
            flex-grow: 0 !important;
            max-width: 100% !important;
            position: relative !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
        }

        .blog-card-content,
        .blog-card>div:last-child {
            padding: 1.25rem !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            flex: 1 1 auto !important;
        }

        .blog-card img {
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            object-fit: cover !important;
            display: block !important;
        }

        .blog-card h2 {
            font-size: 1.3rem !important;
            margin-bottom: 0.5rem;
            line-height: 1.3;
            word-wrap: break-word;
        }

        .blog-card h2 a {
            word-break: break-word;
        }

        .blog-card .post-meta {
            margin-bottom: 0.5rem;
            flex-wrap: wrap;
        }

        .blog-card .post-excerpt {
            -webkit-line-clamp: 3;
            margin-bottom: 0.75rem;
            word-wrap: break-word;
        }

        .blog-card .post-author {
            margin-top: 0.75rem;
            font-size: 0.85rem;
            flex-wrap: wrap;
        }

        /* Blog modal mobilde tam genişlik */
        .blog-modal-lg {
            max-width: 95% !important;
            margin: 1rem auto;
            width: 95% !important;
        }

        .blog-modal-lg .swal-content {
            max-height: 80vh;
            padding: 1rem;
        }
    }

    @media (max-width: 480px) {

        /* Container padding daha da azalt */
        .blog-page .container {
            padding: 0 var(--space-xs);
            max-width: 100%;
        }

        .blog-page {
            padding: var(--space-sm) 0;
            width: 100%;
            overflow-x: hidden;
        }

        .blog-page .about-header {
            margin-bottom: 1rem;
            padding: 0;
        }

        .blog-page .about-header h1 {
            font-size: 1.5rem;
            line-height: 1.2;
        }

        .blog-page .about-header .lead {
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .blog-grid {
            gap: 1rem;
            width: 100%;
        }

        .blog-grid .col-span-3 .card {
            padding: var(--space-sm);
            width: 100%;
        }

        .blog-grid .col-span-3 h3 {
            font-size: 1rem;
        }

        .blog-category-link {
            font-size: 0.85rem;
            padding: 0.5rem 0;
            min-height: 44px;
        }

        .blog-posts {
            gap: 1rem;
            width: 100%;
        }

        .blog-card {
            width: 100%;
            max-width: 100%;
        }

        .blog-card>div:first-child {
            height: 180px !important;
            width: 100% !important;
        }

        .blog-card>div:last-child {
            padding: 1rem !important;
            width: 100%;
        }

        .blog-card h2 {
            font-size: 1.15rem !important;
            line-height: 1.3;
        }

        .blog-card .category-badge {
            font-size: 0.7rem;
            padding: 0.2rem 0.6rem;
        }

        .blog-card .post-date {
            font-size: 0.8rem;
        }

        .blog-card .post-excerpt {
            font-size: 0.9rem;
            -webkit-line-clamp: 2;
            line-height: 1.5;
        }

        .blog-card .post-author {
            font-size: 0.8rem;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .blog-card .post-author img {
            width: 20px;
            height: 20px;
        }

        /* Blog modal küçük ekranlar için */
        .blog-modal-lg {
            max-width: 98% !important;
            width: 98% !important;
            margin: 0.5rem auto;
        }

        .blog-modal-lg .swal-content {
            max-height: 85vh;
            padding: 0.75rem;
        }
    }

    .swal-button {
        background-color: var(--color-primary) !important;
        color: #fff !important;
        box-shadow: none !important;
        border: none !important;
    }

    .swal-button:hover {
        background-color: var(--color-primary-dark) !important;
    }

    /* ===================================
    CSP-COMPLIANT UTILITY CLASSES
    =================================== */

    /* Scroll Control */
    .no-scroll {
        overflow: hidden !important;
    }

    /* Display Control */
    .hidden {
        display: none !important;
    }

    .show {
        display: block !important;
    }

    /* Modal Visibility */
    .modal-visible {
        display: block !important;
    }

    /* Auth Page Styles */
    .btn-full-width {
        width: 100%;
    }

    .auth-link {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
        color: var(--color-primary);
        text-decoration: none;
    }

    .auth-link-inline {
        color: var(--color-primary);
        text-decoration: none;
    }

    .text-muted-small {
        color: var(--color-text-muted);
        font-size: 0.85em;
    }

    .link-primary {
        color: var(--color-primary);
        text-decoration: underline;
        cursor: pointer;
    }

    .link-primary:hover {
        color: var(--color-accent);
    }

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

    /* Simple Modal System (SweetAlert Fallback) */
    .simple-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 1rem;
        overflow-y: auto;
    }

    .simple-modal-overlay.show {
        opacity: 1;
    }

    .simple-modal {
        background: var(--color-bg);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        max-width: 600px;
        width: 100%;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        margin: auto;
    }

    .simple-modal-overlay.show .simple-modal {
        transform: scale(1);
    }

    /* Mobil uyumluluk */
    @media (max-width: 768px) {
        .simple-modal-overlay {
            padding: 0.5rem;
            align-items: flex-start;
            padding-top: 2rem;
        }

        .simple-modal {
            max-width: 100%;
            max-height: 95vh;
            border-radius: 12px 12px 0 0;
            margin: 0;
        }

        .simple-modal-header {
            padding: 1rem;
        }

        .simple-modal-body {
            padding: 1rem;
            max-height: calc(95vh - 120px);
        }

        .simple-modal-footer {
            padding: 0.75rem 1rem;
        }
    }

    .simple-modal-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem;
        border-bottom: 1px solid var(--color-border);
        position: relative;
    }

    .simple-modal-icon-success::before {
        content: '✓';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #10b981;
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .simple-modal-icon-error::before {
        content: '✕';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #ef4444;
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .simple-modal-icon-warning::before {
        content: '⚠';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f59e0b;
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .simple-modal-icon-info::before {
        content: 'ℹ';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--color-primary);
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .simple-modal-title {
        flex: 1;
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--color-text);
    }

    .simple-modal-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--color-text-muted);
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: background 0.2s;
    }

    .simple-modal-close:hover {
        background: var(--color-border);
        color: var(--color-text);
    }

    .simple-modal-body {
        padding: 1.5rem;
        overflow-y: auto;
        max-height: 60vh;
        color: var(--color-text);
        line-height: 1.6;
    }

    .simple-modal-body h3,
    .simple-modal-body h4,
    .simple-modal-body h5 {
        color: var(--color-text);
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .simple-modal-body p {
        margin-bottom: 1rem;
    }

    .simple-modal-body ul {
        margin-bottom: 1rem;
        padding-left: 1.5rem;
    }

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

    .simple-modal-footer {
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--color-border);
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .simple-modal-btn {
        min-width: 100px;
    }

    /* Toast Notification System */
    .toast-container {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        z-index: 2147483647;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        max-width: 400px;
        width: calc(100% - 2rem);
        pointer-events: none;
    }

    .toast {
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.3s ease;
        pointer-events: auto;
        position: relative;
    }

    .toast.show {
        opacity: 1;
        transform: translateX(0);
    }

    .toast-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        font-weight: bold;
        font-size: 0.875rem;
        flex-shrink: 0;
    }

    .toast-success .toast-icon {
        background: #10b981;
        color: white;
    }

    .toast-error .toast-icon {
        background: #ef4444;
        color: white;
    }

    .toast-warning .toast-icon {
        background: #f59e0b;
        color: white;
    }

    .toast-info .toast-icon {
        background: var(--color-primary);
        color: white;
    }

    .toast-message {
        flex: 1;
        color: var(--color-text);
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    /* Mobil uyumluluk - Toast */
    @media (max-width: 768px) {
        .toast-container {
            bottom: 2rem;
            right: 0.5rem;
            left: 0.5rem;
            max-width: 100%;
            width: auto;
        }

        .toast {
            padding: 0.875rem;
            font-size: 0.875rem;
        }

        .toast-icon {
            width: 20px;
            height: 20px;
            font-size: 0.75rem;
        }
    }

    /* Centered Content */
    .centered-error,
    .centered-loading {
        padding: 2rem;
        text-align: center;
    }

    .error-text {
        color: var(--color-error);
    }

    .text-muted-inline {
        color: var(--color-text-muted);
    }

    /* Slide Out Animation */
    .slide-out-right {
        animation: slideOutRight 0.3s ease;
    }

    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }

    /* Button Spinner */
    .btn-spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Touch Target Size (Accessibility) */
    .min-size-44 {
        min-width: 44px !important;
        min-height: 44px !important;
    }

    /* Essence Mass Input */
    .essence-mass-input {
        width: 80px;
    }

    /* Inline Flex */
    .inline-flex {
        display: inline-flex !important;
    }

    /* ===================================
COST CALCULATOR STYLES
=================================== */
    .cost-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: var(--space-lg);
        margin-top: var(--space-md);
    }

    @media (max-width: 768px) {
        .cost-grid {
            grid-template-columns: 1fr;
        }
    }

    .cost-section-title {
        font-family: var(--font-heading);
        font-size: 1.15rem;
        color: var(--color-text);
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 4px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .cost-section-title span {
        color: var(--color-primary);
    }

    /* Table Styling */
    .cost-table-wrapper {
        background: white;
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
        overflow-x: auto;
    }

    .cost-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.85rem;
    }

    .cost-table th {
        text-align: left;
        padding: 6px 8px;
        background-color: var(--color-bg);
        color: var(--color-text-muted);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid var(--color-border);
    }

    .cost-table td {
        padding: 6px 8px;
        border-bottom: 1px solid var(--color-border);
        vertical-align: middle;
        color: var(--color-text);
    }

    .cost-table tr:last-child td {
        border-bottom: none;
    }

    .cost-table tr:hover {
        background-color: rgba(0, 0, 0, 0.01);
    }

    .cost-table-footer {
        background-color: var(--color-bg);
        font-weight: 600;
        border-top: 2px solid var(--color-border);
    }

    /* Status Badges */
    .cost-match-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
        background: rgba(40, 167, 69, 0.1);
        color: var(--color-success);
        font-weight: 500;
    }

    .cost-select-wrapper {
        position: relative;
    }

    .cost-select {
        width: 100%;
        padding: 6px 8px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
        color: var(--color-text);
        background-color: white;
        transition: var(--transition);
    }

    .cost-select:focus {
        border-color: var(--color-primary);
        outline: none;
    }

    .cost-select.warning {
        border-color: #E8B55F;
        background-color: #FFFDF5;
    }

    /* Right Panel */
    .cost-summary-card {
        background: var(--color-bg);
        /* Süt beyazı */
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border);
        height: 100%;
    }

    .cost-form-group {
        margin-bottom: 0.25rem;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .cost-form-label {
        display: block;
        margin-bottom: 0;
        min-width: 100px;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--color-text-muted);
    }

    .cost-form-group .cost-select,
    .cost-form-group .form-input {
        flex: 1;
        width: auto;
        /* Override 100% */
    }

    .cost-divider {
        height: 1px;
        background: var(--color-border);
        margin: 0.5rem 0;
    }

    .cost-total-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 0;
    }

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

    .cost-total-value {
        font-size: 1.5rem;
        font-family: var(--font-heading);
        color: var(--color-text);
        font-weight: 700;
    }

    .cost-profit-box {
        margin-top: 0.25rem;
        padding: 0.5rem;
        border-radius: var(--radius-md);
        background: white;
        border: 1px solid var(--color-border);
        text-align: center;
    }

    .cost-profit-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-text-muted);
        margin-bottom: 4px;
    }

    .cost-profit-value {
        font-size: 1.2rem;
        font-weight: 700;
    }

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

    .cost-profit-value.negative {
        color: var(--color-error);
    }

    /* USER REQUEST: Add side borders to recipes table */
    .recipes-table {
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
    }

    /* ===================================
    HEADER REDESIGN: DROPDOWNS & AVATAR
    =================================== */

    /* --- "Daha Fazla" Dropdown --- */
    .nav-more-wrapper {
        position: relative;
    }

    .nav-more-trigger {
        background: none;
        border: none;
        cursor: pointer;
        font-family: var(--font-body);
    }

    .nav-more-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        min-width: 180px;
        padding: 0.4rem 0;
        padding-top: 0.6rem;
        z-index: 1002;
        margin-top: 0;
        list-style: none;
    }

    /* Invisible bridge to keep hover active between trigger and dropdown */
    .nav-more-dropdown::before {
        content: '';
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 12px;
    }

    .nav-more-wrapper:hover .nav-more-dropdown {
        display: block;
        animation: dropdownFadeIn 0.2s ease-out;
    }

    .nav-more-dropdown li {
        padding: 0;
    }

    .nav-more-dropdown a.nav-link {
        display: block;
        padding: 0.6rem 1.2rem;
        color: var(--color-text);
        font-size: 0.88rem;
        font-weight: 500;
        transition: all 0.15s ease;
        text-decoration: none;
        white-space: nowrap;
    }

    .nav-more-dropdown a.nav-link:hover {
        background: rgba(212, 175, 55, 0.08);
        color: var(--color-primary);
        padding-left: 1.4rem;
    }

    .nav-more-dropdown a.nav-link::after {
        display: none !important;
    }

    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    /* --- User Avatar --- */
    .user-avatar-wrapper {
        position: relative;
        margin-left: 0.25rem;
    }

    .user-avatar-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #D4AF37, #E8B55F);
        color: white;
        font-weight: 700;
        font-size: 15px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
        font-family: var(--font-body);
    }

    .user-avatar-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    }

    .user-avatar-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        min-width: 180px;
        z-index: 1002;
        overflow: hidden;
    }

    .user-avatar-dropdown.show {
        display: block;
        animation: dropdownFadeIn2 0.2s ease-out;
    }

    @keyframes dropdownFadeIn2 {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .user-avatar-dropdown-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-border);
        background: rgba(212, 175, 55, 0.04);
    }

    .user-avatar-dropdown-header span {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--color-text);
    }

    .user-avatar-dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.65rem 1rem;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--color-text);
        text-decoration: none;
        transition: all 0.15s ease;
        cursor: pointer;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        font-family: var(--font-body);
    }

    .user-avatar-dropdown-item:hover {
        background: rgba(212, 175, 55, 0.08);
        color: var(--color-primary);
    }

    .user-avatar-dropdown-item.danger {
        color: var(--color-error);
    }

    .user-avatar-dropdown-item.danger:hover {
        background: rgba(220, 53, 69, 0.06);
    }

    .user-avatar-dropdown-item svg {
        flex-shrink: 0;
    }

    /* --- Mobile-Only Links --- */
    .mobile-only-link {
        display: none !important;
    }

    /* Desktop: hide theme toggle CSS remnants */
    .theme-toggle-btn {
        display: none !important;
    }

    /* Mobile Overrides */
    @media (max-width: 768px) {

        /* Show mobile-only flat links in hamburger */
        .mobile-only-link {
            display: list-item !important;
        }

        /* Hide the "Daha Fazla" dropdown wrapper on mobile */
        .nav-more-wrapper {
            display: none !important;
        }

        /* User avatar in mobile — keep visible in header-actions */
        .user-avatar-btn {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }

        .user-avatar-dropdown {
            right: -10px;
            min-width: 200px;
        }
    }