/* ============================================
   CRITICAL CSS - Load First to Prevent FOUC
   SVG Icon Visibility Protection
   ============================================ */

/* Inter Font - Primary Font (Coolors.co style, supports Cyrillic) */
/* Font paths are set via inline CSS in PHP for proper WordPress URL handling */

/* Spinner animation for loading states */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Katalog result cards - remove gradients, use solid soft colors */
#katalog_format_result,
#katalog_sigma_result,
#katalog_sheets_result,
#katalog_prints_result {
    line-height: 1.3 !important;
    word-break: break-word !important;
    white-space: normal !important;
}

/* Format result card */
#katalog_format_result {
    display: block !important;
}

/* Sigma, Sheets, Prints result cards - 2 line format */
#katalog_sigma_result,
#katalog_sheets_result,
#katalog_prints_result {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: auto !important;
}

/* Katalog result card backgrounds - solid soft colors (remove gradients) */
#katalog_results .grid > div:first-child,
#katalog_results .grid > div.bg-blue-50 {
    background: #eff6ff !important;
    background-image: none !important;
    background-color: #eff6ff !important;
    border-color: #dbeafe !important;
}

#katalog_results .grid > div:nth-child(2),
#katalog_results .grid > div.bg-emerald-50 {
    background: #ecfdf5 !important;
    background-image: none !important;
    background-color: #ecfdf5 !important;
    border-color: #d1fae5 !important;
}

#katalog_results .grid > div:nth-child(3),
#katalog_results .grid > div.bg-purple-50 {
    background: #faf5ff !important;
    background-image: none !important;
    background-color: #faf5ff !important;
    border-color: #f3e8ff !important;
}

#katalog_results .grid > div:nth-child(4),
#katalog_results .grid > div.bg-orange-50 {
    background: #fff7ed !important;
    background-image: none !important;
    background-color: #fff7ed !important;
    border-color: #ffedd5 !important;
}

/* Main number (large) */
#katalog_sigma_result > div:first-child,
#katalog_sheets_result > div:first-child,
#katalog_prints_result > div:first-child {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: inherit !important;
}

/* Sub text (small) */
#katalog_sigma_result > div:last-child,
#katalog_sheets_result > div:last-child,
#katalog_prints_result > div:last-child {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin-top: 0.25rem !important;
    opacity: 0.8 !important;
    color: inherit !important;
}

/* Critical styles to prevent icon/layout flash - ULTRA SPECIFIC to override Tailwind */
/* Base SVG styles - ensure visibility */
.ders-notu-calculator-wrapper svg {
    display: inline-block !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    vertical-align: middle !important;
}

/* Specific size classes - HIGH SPECIFICITY to override Tailwind */
.ders-notu-calculator-wrapper svg.w-6 {
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
}

.ders-notu-calculator-wrapper svg.w-5 {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
}

.ders-notu-calculator-wrapper svg.w-4 {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    min-height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
}

.ders-notu-calculator-wrapper svg.w-10 {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    max-width: 2.5rem !important;
    max-height: 2.5rem !important;
}

.ders-notu-calculator-wrapper svg.w-16 {
    width: 4rem !important;
    height: 4rem !important;
    min-width: 4rem !important;
    min-height: 4rem !important;
    max-width: 4rem !important;
    max-height: 4rem !important;
}



.ders-notu-calculator-wrapper img[id^="flag-"] {
    object-fit: cover !important;
    display: block !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
}

/* ============================================
   General Calculator Styles
   ============================================ */

.ders-notu-calculator-wrapper {
    background-color: #f9fafb;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    --dn-field-height: clamp(44px, 9vw, 52px);
    --dn-field-radius: 0.75rem;
    --dn-field-padding-y: 0.875rem;
    --dn-field-padding-x: 1rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Footer fills bottom completely - no gap at bottom */
.ders-notu-calculator-wrapper footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ders-notu-calculator-wrapper footer:last-child {
    margin-bottom: 0;
}

.ders-notu-calculator-wrapper footer #footer-copyright {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 1.5rem !important;
}

.ders-notu-calculator-wrapper footer #footer-copyright p {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure wrapper has no bottom padding/margin */
.ders-notu-calculator-wrapper:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Remove empty paragraphs and chrome extension scripts after footer */
.ders-notu-calculator-wrapper footer ~ p:empty,
.ders-notu-calculator-wrapper footer ~ p:has(script[src*="chrome-extension"]),
.ders-notu-calculator-wrapper footer + p:empty,
.ders-notu-calculator-wrapper footer + p:has(script[src*="chrome-extension"]),
.ders-notu-calculator-wrapper footer ~ script[src*="chrome-extension"],
.ders-notu-calculator-wrapper footer + script[src*="chrome-extension"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any empty paragraphs containing only non-breaking space */
.ders-notu-calculator-wrapper footer ~ p:has(> *:only-child):empty,
.ders-notu-calculator-wrapper footer + p:has(> *:only-child):empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

/* Override Flatsome/theme margin-bottom for form elements - Scoped to calculator only */
.ders-notu-calculator-wrapper .button,
.ders-notu-calculator-wrapper button,
.ders-notu-calculator-wrapper fieldset,
.ders-notu-calculator-wrapper input,
.ders-notu-calculator-wrapper select,
.ders-notu-calculator-wrapper textarea {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.ders-notu-calculator-wrapper label,
.ders-notu-calculator-wrapper legend {
    margin-bottom: 0 !important;
}

/* Restore margin-bottom only where needed within calculator */
.ders-notu-calculator-wrapper .space-y-4 > * + *,
.ders-notu-calculator-wrapper .space-y-3 > * + *,
.ders-notu-calculator-wrapper .space-y-5 > * + * {
    margin-top: 1rem;
}

.ders-notu-calculator-wrapper .space-y-3 > * + * {
    margin-top: 0.75rem;
    margin-bottom: 55px;
}

.ders-notu-calculator-wrapper .space-y-5 > * + * {
    margin-top: 1.25rem;
}

/* Dropdown text color & background fix - scoped to calculator */
.ders-notu-calculator-wrapper select {
    color: #1f2937 !important;
    background-color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Tüm select option'ları için font eşitleme */
.ders-notu-calculator-wrapper select option,
.modern-select option,
select option {
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.ders-notu-calculator-wrapper select option {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.ders-notu-calculator-wrapper select:focus,
.ders-notu-calculator-wrapper select:active,
.ders-notu-calculator-wrapper select:hover {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.ders-notu-calculator-wrapper select option:checked,
.ders-notu-calculator-wrapper select option:hover,
.ders-notu-calculator-wrapper select option:focus {
    color: #1f2937 !important;
    background-color: #f3f4f6 !important;
}

/* Unified form field sizing for all inputs & selects inside calculator */
.ders-notu-calculator-wrapper input[type="text"],
.ders-notu-calculator-wrapper input[type="email"],
.ders-notu-calculator-wrapper input[type="tel"],
.ders-notu-calculator-wrapper input[type="number"],
.ders-notu-calculator-wrapper select {
    min-height: var(--dn-field-height);
    border-radius: 6px;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Main title styles */
#main-title {
    color: white !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    font-weight: 800 !important;
}

#footer-hours {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#footer-hours-title {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   Styles moved from calculator.php template
   ============================================ */

/* Base Reset */
.ders-notu-calculator-wrapper * {
    box-sizing: border-box;
}
/* SVG icons */
label svg,
.calculator-menu-item svg,
h2 svg, 
h3 svg, 
a svg, 
button svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    display: inline-block;
}


/* Labels as flex containers */
label.block,
#label-print-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Left-aligned labels without icons */
#label-pages,
#label-quantity,
#label-binding {
    display: block;
    text-align: left;
}

/* Number Input Spinner Controls - Hidden */
/* Base styles for all number inputs */
.ders-notu-calculator-wrapper input[type="number"],
input[type="number"].input-shared,
input[type="number"].modern-input,
input[type="number"] {
    /* Hide spinner by default in Firefox */
    -moz-appearance: textfield;
    appearance: textfield;
    /* Reset padding since we don't need space for spinners */
    padding-right: 12px !important; 
}

/* Hide spinner by default and on focus */
.ders-notu-calculator-wrapper input[type="number"]::-webkit-inner-spin-button,
.ders-notu-calculator-wrapper input[type="number"]::-webkit-outer-spin-button,
input[type="number"].input-shared::-webkit-inner-spin-button,
input[type="number"].input-shared::-webkit-outer-spin-button,
input[type="number"].modern-input::-webkit-inner-spin-button,
input[type="number"].modern-input::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
.ders-notu-calculator-wrapper input[type="number"]:focus::-webkit-inner-spin-button,
.ders-notu-calculator-wrapper input[type="number"]:focus::-webkit-outer-spin-button,
input[type="number"].input-shared:focus::-webkit-inner-spin-button,
input[type="number"].input-shared:focus::-webkit-outer-spin-button,
input[type="number"].modern-input:focus::-webkit-inner-spin-button,
input[type="number"].modern-input:focus::-webkit-outer-spin-button,
input[type="number"]:focus::-webkit-inner-spin-button,
input[type="number"]:focus::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none !important;
    opacity: 0 !important;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    input, select, button, textarea {
        font-size: 16px !important;
        min-height: 44px;
    }
    
    /* Number input spinner - Hidden on mobile too */
    .ders-notu-calculator-wrapper input[type="number"],
    input[type="number"].input-shared,
    input[type="number"].modern-input,
    input[type="number"] {
        padding-right: 12px !important; 
    }
    
    .ders-notu-calculator-wrapper input[type="number"]::-webkit-inner-spin-button,
    .ders-notu-calculator-wrapper input[type="number"]::-webkit-outer-spin-button,
    input[type="number"].input-shared::-webkit-inner-spin-button,
    input[type="number"].input-shared::-webkit-outer-spin-button,
    input[type="number"].modern-input::-webkit-inner-spin-button,
    input[type="number"].modern-input::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button,
    .ders-notu-calculator-wrapper input[type="number"]:focus::-webkit-inner-spin-button,
    .ders-notu-calculator-wrapper input[type="number"]:focus::-webkit-outer-spin-button,
    input[type="number"].input-shared:focus::-webkit-inner-spin-button,
    input[type="number"].input-shared:focus::-webkit-outer-spin-button,
    input[type="number"].modern-input:focus::-webkit-inner-spin-button,
    input[type="number"].modern-input:focus::-webkit-outer-spin-button,
    input[type="number"]:focus::-webkit-inner-spin-button,
    input[type="number"]:focus::-webkit-outer-spin-button {
        display: none !important;
        -webkit-appearance: none !important;
    }
    
    .lang-buttons-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    .lang-btn {
        width: 80px !important;
        height: 60px !important;
        min-width: 80px !important;
        min-height: 60px !important;
        padding: 0 !important;
        border-radius: 8px !important;
    }
    
    .lang-btn img[id^="flag-"] {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        flex-shrink: 0;
    }
    
    .lang-btn span {
        display: none !important;
    }
    
    /* Print type buttons - ensure grid works on mobile */
    .grid.grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* LANGUAGE SWITCHER - Modern Neomorphism & Frosted Glass Design
   -------------------------------------------- */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Hide scrollbar for all browsers */
.lang-switcher::-webkit-scrollbar {
    display: none;
}

/* Sticky header state - transparent background when scrolled */
.lang-switcher.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 99999 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    justify-content: center !important;
}

/* Hide sticky header on small mobile screens only (not tablet/desktop) */
@media (max-width: 480px) {
    .lang-switcher.sticky {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Ensure no parent element creates stacking context issues */
.ders-notu-calculator-wrapper,
.ders-notu-calculator-wrapper *,
main,
main * {
    position: relative;
}

.ders-notu-calculator-wrapper .lang-switcher.sticky,
main .lang-switcher.sticky,
body .lang-switcher.sticky {
    position: fixed !important;
    z-index: 99999 !important;
}

/* Mobile responsive (Samsung S24 hedefli) - 2 satır grid, agresif küçültme */
@media (max-width: 768px) {
    /* Mobilde inline style'ları ez: 2 satır grid sistemi */
    .lang-switcher,
    .lang-switcher.sticky {
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 8px 10px !important;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "flags toggle"
            "admin admin";
        column-gap: 8px !important;
        row-gap: 8px !important;
        align-items: center !important;
        justify-items: center !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        border-radius: 0 !important;
    }

    .lang-buttons-container {
        grid-area: flags;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        width: 100% !important;
    }

    /* Bayraklar - agresif küçült (S24 için) */
    .lang-btn {
        width: 32px !important;
        height: 24px !important;
        min-width: 32px !important;
        min-height: 24px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 5px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    /* Eski mobil kurallar img'yi absolute yapabiliyor; mobilde sıfırla */
    .lang-btn img[id^="flag-"] {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Currency toggle - mobil için yeniden tasarlandı */
    .currency-toggle-wrapper {
        grid-area: toggle;
        flex-shrink: 0 !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0.35rem 0.5rem !important;
        margin: 0 !important;
        gap: 3px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .currency-toggle-wrapper span {
        font-size: 8px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .currency-toggle-switch {
        width: 48px !important;
        height: 24px !important;
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }
    
    /* Currency toggle switch - now uses circle instead of handle */

    /* Admin butonları - ikon-only, küçült */
    .admin-buttons-container {
        grid-area: admin;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Mobilde ikon-only: alan kazandır */
    .admin-settings-btn span,
    .admin-logout-btn span {
        display: none !important;
    }

    .admin-settings-btn,
    .admin-logout-btn {
        padding: 0.4rem 0.5rem !important;
        height: 32px !important;
        min-height: 32px !important;
        flex-shrink: 0 !important;
    }

    .icon-circle {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }
    
    .admin-settings-btn svg,
    .admin-logout-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}

.lang-buttons-container {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 !important;
    margin: 0 !important;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 48px;
    min-width: 64px;
    min-height: 48px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lang-btn img[id^="flag-"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.lang-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.lang-btn:hover::before {
    opacity: 1;
}

.lang-btn:hover img[id^="flag-"] {
    transform: scale(1.05);
}

.lang-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.lang-btn.active::before,
.lang-btn[aria-pressed="true"]::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.lang-btn.active img[id^="flag-"],
.lang-btn[aria-pressed="true"] img[id^="flag-"] {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.lang-switcher .currency-toggle-wrapper {
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(15,23,42,0.4);
}

/* Admin Buttons Container */
.admin-buttons-container {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.admin-settings-btn,
.admin-logout-btn {
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#admin-logout-btn {
    background: #590202 !important;
}

#admin-settings-btn {
    background: #590202 !important;
}

/* FILE UPLOAD AREA
   -------------------------------------------- */
#upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

#upload-description,
#upload-hint {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    line-height: 1.5;
    word-break: break-word;
}

#upload-description {
    font-weight: 600;
    color: #111827;
}

#upload-hint {
    color: #6b7280;
}

#btn-upload {
    width: auto !important;
    min-width: clamp(9rem, 50vw, 12rem);
    height: auto !important;
    padding: 0.7rem 1.6rem !important;
    border-radius: 999px !important;
    background-image: none !important;
    background-color: #ff8300 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    font-family: inherit !important;
    cursor: pointer !important;
    position: relative !important;
    gap: 0.5rem;
    font-weight: 700;
    font-size: clamp(0.9rem, 3.4vw, 1rem);
    box-shadow: 0 8px 18px rgba(255, 131, 0, 0.45);
    margin-left: auto !important;
    pointer-events: auto !important;
    overflow: hidden !important;
}

#btn-upload-wrapper {
    position: relative !important;
    display: inline-block !important;
    z-index: 10 !important;
}

/* Görsel Buton Stili */
#btn-upload-visual {
    width: auto !important;
    min-width: clamp(9rem, 50vw, 12rem) !important;
    height: auto !important;
    padding: 0.7rem 1.6rem !important;
    border-radius: 999px !important;
    background: linear-gradient(to right, #667eea, #764ba2) !important;
    background-color: #ff8300 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: clamp(0.9rem, 3.4vw, 1rem) !important;
    box-shadow: 0 8px 18px rgba(255, 131, 0, 0.45) !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

/* Gerçek File Input Stili */
#fileInput {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 100 !important; /* En üstte olduğundan emin ol */
    display: block !important;
    font-size: 0 !important; /* iOS zoom engellemek için */
}

/* Mobil optimizasyon */
@media (max-width: 640px) {
    #btn-upload-visual {
        min-width: 140px !important;
        max-width: 200px !important;
        height: 44px !important;
        font-size: 0.875rem !important;
        margin-right: auto !important;
    }
}

#btn-upload:hover {
    background-color: #e56f00 !important;
    box-shadow: 0 10px 22px rgba(255, 131, 0, 0.55);
}

#btn-upload:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(255, 131, 0, 0.45);
}

#btn-upload-text {
    white-space: nowrap;
}

/* Mobil için Yükle butonu düzenlemeleri */
@media (max-width: 640px) {
    #btn-upload {
        width: auto !important;
        min-width: 140px !important;
        max-width: 200px !important;
        height: 44px !important;
        padding: 0.6rem 1.2rem !important;
        margin: 1rem auto 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        font-size: 0.875rem !important;
        font-weight: 700 !important;
        box-shadow: 0 6px 14px rgba(255, 131, 0, 0.4) !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    #btn-upload:active {
        transform: scale(0.98) !important;
        box-shadow: 0 4px 10px rgba(255, 131, 0, 0.35) !important;
    }

    #btn-upload-text {
        font-size: 0.875rem !important;
        line-height: 1.25rem !important;
        white-space: nowrap !important;
    }

    /* Upload area mobilde daha kompakt */
    #upload-area {
        padding: 1.5rem 1rem !important;
        min-height: auto !important;
    }

    #upload-area svg {
        width: 3rem !important;
        height: 3rem !important;
    }
}

#uploaded-files {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#uploaded-files > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    background: #f3f4f6;
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}

/* Bu media query btn-upload için yukarıda zaten tanımlı, sadece uploaded-files için gerekli */
/* Mobilde dosya listesi yan yana kalacak (sil butonu da yan yana) */
@media (max-width: 640px) {
    #uploaded-files > div {
        align-items: center;
        flex-direction: row;
    }
}

/* PRIMARY ACTION BUTTONS
   -------------------------------------------- */
#btn-submit-order,
#btn-pdf-action {
    background-image: none !important;
    background-color: #ff8300 !important;
    border-radius: 100px !important;
    box-shadow: 0 9px 20px rgba(255, 131, 0, 0.45) !important;
    padding-block: 0.9rem !important;
    padding-inline: 1.5rem !important;
    min-height: clamp(48px, 11vw, 56px) !important;
    font-size: clamp(0.95rem, 3.4vw, 1.02rem) !important;
    letter-spacing: normal !important;
}

#btn-submit-order span,
#btn-pdf-action span,
#btn-submit-order *,
#btn-pdf-action * {
    letter-spacing: normal !important;
}

#btn-submit-order:hover,
#btn-pdf-action:hover {
    background-color: #e56f00 !important;
    box-shadow: 0 11px 24px rgba(255, 131, 0, 0.55) !important;
}

#btn-submit-order:active,
#btn-pdf-action:active {
    transform: translateY(1px);
    box-shadow: 0 5px 12px rgba(255, 131, 0, 0.5) !important;
}

@media (max-width: 640px) {
    .ders-notu-calculator-wrapper .grid.grid-cols-1.sm\:grid-cols-2.gap-3 {
        row-gap: 0.75rem;
    }
}

/* Dark background text */
.bg-gradient-to-r h2,
.bg-gradient-to-r h3,
.bg-gradient-to-r h4 {
    color: white !important;
}

/* Input fields - ensure consistent font size */
#pageCount,
#quantity,
#bindingType,
#customerFirstName,
#customerLastName,
#customerPhone,
#customerEmail {
    font-size: 16px !important;
}

/* Select dropdown styling */
#bindingType {
    color: #111 !important;
    background: white !important;
}

/* Footer border section visibility */
.border-t.border-gray-700.pt-6 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Visually hidden - consolidated above with .sr-only */

/* Tab Navigation Styles - Horizontal Grid Layout with Icon-First Design */
.calculator-tabs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem; /* 3mm equivalent */
    margin-bottom: 24px;
    padding: 0.5rem 0.5rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.calculator-tab-btn-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    margin: 0;
    border-radius: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    min-height: auto;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    will-change: transform, box-shadow;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Icon-first design - Icons are the primary visual element */
.calculator-tab-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 96px;
    margin-bottom: 0.125rem;
}

.calculator-tab-icon {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
    display: block;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Text wrapper - Secondary to icons */
.calculator-tab-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.0625rem;
    width: 100%;
    text-align: center;
}

.calculator-tab-text-line {
    display: block;
    font-family: 'Roboto Condensed', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.15;
    color: white;
    white-space: nowrap;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* Color variants for each button */
#tab-ders-notu {
    background-color: #10b981 !important;
}

#tab-rulo-baski {
    background-color: #3b82f6 !important;
}

#tab-dijital-baski {
    background-color: #ef4444 !important;
}

#tab-katalog {
    background-color: #ec4899 !important;
}

/* Hover effects - 3D depth effect with scale and shadow */
.calculator-tab-btn-grid:hover {
    transform: scale(1.05) translateZ(10px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.08);
}

.calculator-tab-btn-grid:hover .calculator-tab-icon {
    transform: scale(1.1) translateZ(5px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

/* Active state - More prominent 3D effect */
.calculator-tab-btn-grid.active {
    transform: scale(1.03) translateZ(5px);
    box-shadow: 
        0 10px 24px rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
    filter: brightness(1.12);
}

.calculator-tab-btn-grid.active .calculator-tab-icon {
    transform: scale(1.12) translateZ(8px);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Active state - Pressed effect */
.calculator-tab-btn-grid:active {
    transform: scale(1.01) translateZ(2px);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator-tab-btn-grid:active .calculator-tab-icon {
    transform: scale(1.05) translateZ(3px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .calculator-tabs-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.375rem;
        padding: 0.25rem;
        margin-bottom: 16px;
    }
    
    .calculator-tab-btn-grid {
        padding: 0.5rem 0.25rem;
        gap: 0.25rem;
        margin: 0;
        border-radius: 0.625rem;
        border: 2px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        width: 100%;
        min-height: 80px;
        background-color: inherit !important;
    }
    
    .calculator-tab-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
    
    .calculator-tab-icon-wrapper {
        min-height: 40px;
        margin-bottom: 0.25rem;
    }
    
    .calculator-tab-text-line {
        font-size: 0.6rem;
        line-height: 1.1;
    }
    
    .calculator-tab-btn-grid.active {
        border-color: rgba(255, 255, 255, 0.6) !important;
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
        transform: scale(1.02) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25)) !important;
    }
    
    .calculator-tab-btn-grid .calculator-tab-text-line {
        font-weight: 900 !important;
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.4),
            0 0 8px rgba(255, 255, 255, 0.3) !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .calculator-tab-icon {
        width: 84px;
        height: 84px;
        min-width: 84px;
        min-height: 84px;
        max-width: 84px;
        max-height: 84px;
    }
    
    .calculator-tab-icon-wrapper {
        min-height: 84px;
    }
}

/* Dijital Subtype Content - Smooth transitions to prevent layout shift */
.dijital-subtype-content,
#dijital-baski-form-content,
#kartvizit-form-content,
#brosur-form-content {
    transition: opacity 0.15s ease-in-out !important;
    will-change: opacity;
}

/* Hidden state */
.dijital-subtype-content:not(.active),
#dijital-baski-form-content:not(.active),
#kartvizit-form-content:not(.active),
#brosur-form-content:not(.active) {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Active state */
.dijital-subtype-content.active,
#dijital-baski-form-content.active,
#kartvizit-form-content.active,
#brosur-form-content.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Performance optimizations */
.calculator-tabs-grid {
    contain: layout style paint;
}

.calculator-tab-btn-grid {
    contain: layout style paint;
}

.calculator-tab-icon {
    contain: strict;
}

/* Legacy support - Hide old flex layout styles if they exist */
.calculator-tabs {
    display: none !important;
}

/* Currency Selector Styles */
.currency-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.currency-btn {
    transition: all 0.2s ease;
}

.currency-btn.active {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Currency Unit Styles - Half size of parent */
.currency-unit {
    font-size: 0.5em !important;
    vertical-align: baseline;
    opacity: 0.9;
    display: inline-block;
    line-height: 1;
    font-weight: 600;
}

.calculator-tab-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 14px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex: 0 1 auto;
}

.calculator-tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calculator-tab-btn.active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.calculator-tab-content {
    display: none !important;
}

.calculator-tab-content.active {
    display: block !important;
}

/* Currency Toggle Switch Styles */
.currency-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
}

.currency-toggle-wrapper span {
    font-size: 10px !important;
}

.currency-toggle-switch {
  /* switch */
  --switch-width: 46px;
  --switch-height: 24px;
  --switch-bg: rgb(131, 131, 131);
  --switch-checked-bg: #1676df;
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 18px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 6px;
  --icon-checkmark-color: var(--switch-checked-bg);
  --icon-checkmark-size: 10px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all 0.2s ease-in-out;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.currency-toggle-switch input {
  display: none;
}

.currency-toggle-circle svg {
  -webkit-transition: var(--icon-transition);
  -o-transition: var(--icon-transition);
  transition: var(--icon-transition);
    position: absolute;
  top: 50%;
  left: 50%;
  height: auto;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.currency-toggle-circle .currency-toggle-checkmark {
  width: var(--icon-checkmark-size);
  height: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.currency-toggle-circle .currency-toggle-cross {
  width: var(--icon-cross-size);
  height: var(--icon-cross-size);
  color: var(--icon-cross-color);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.currency-toggle-slider {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transition: var(--switch-transition);
  -o-transition: var(--switch-transition);
  transition: var(--switch-transition);
    cursor: pointer;
}

.currency-toggle-circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
  border-radius: 50%;
  -webkit-box-shadow: var(--circle-shadow);
  box-shadow: var(--circle-shadow);
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  z-index: 1;
  position: absolute;
  left: var(--switch-offset);
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.currency-toggle-slider::before {
  content: "";
  position: absolute;
  width: var(--effect-width);
  height: var(--effect-height);
  left: calc(var(--switch-offset) + (var(--effect-width) / 2));
  background: var(--effect-bg);
  border-radius: var(--effect-border-radius);
  -webkit-transition: var(--effect-transition);
  -o-transition: var(--effect-transition);
  transition: var(--effect-transition);
}

/* actions */

.currency-toggle-switch input:checked + .currency-toggle-slider {
  background: var(--switch-checked-bg);
}

.currency-toggle-switch input:checked + .currency-toggle-slider .currency-toggle-circle .currency-toggle-checkmark {
  -webkit-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.currency-toggle-switch input:checked + .currency-toggle-slider .currency-toggle-circle .currency-toggle-cross {
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.currency-toggle-switch input:checked + .currency-toggle-slider::before {
  left: calc(
    100% - var(--effect-width) - (var(--effect-width) / 2) -
      var(--switch-offset)
  );
}

.currency-toggle-switch input:checked + .currency-toggle-slider .currency-toggle-circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  -webkit-box-shadow: var(--circle-checked-shadow);
  box-shadow: var(--circle-checked-shadow);
}

/* Dijital Baskı Alt Tip Butonları - Özel Stil (3 sütunlu, küçük ikonlar) */
.calculator-tabs-grid[data-subtype-grid="true"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem; /* Araları açıldı */
    padding: 1rem; /* Padding genişletildi */
    margin-bottom: 1rem;
    justify-content: center;
    max-width: 100%;
    overflow: visible !important;
}

/* Alt tip butonları için daha küçük ikonlar */
.calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-icon-wrapper {
    min-height: 64px;
    margin-bottom: 0.25rem;
}

.calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
}

/* Kartvizit ve Broşür butonları için büyük ikonlar */
#btn-kartvizit .calculator-tab-icon-wrapper,
#btn-brosur .calculator-tab-icon-wrapper {
    min-height: 80px !important;
    margin-bottom: 0.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-dijital-baski-default .calculator-tab-icon,
#btn-kartvizit .calculator-tab-icon,
#btn-brosur .calculator-tab-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
}

#btn-dijital-baski-default .calculator-tab-icon-wrapper,
#btn-kartvizit .calculator-tab-icon-wrapper,
#btn-brosur .calculator-tab-icon-wrapper {
    min-height: 64px !important;
}

/* Kartvizit ve Broşür label'ları için düzenleme */
#btn-kartvizit .calculator-tab-text-wrapper,
#btn-brosur .calculator-tab-text-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Alt tip butonları için daha küçük padding */
.calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-btn-grid {
    padding: 0.75rem 0.5rem;
    min-height: 90px;
    background-color: rgba(239, 68, 68, 0.15) !important;
    border: 2px solid rgba(239, 68, 68, 0.3);
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10;
    position: relative;
    overflow: visible !important;
    margin-bottom: 0.5rem;
}

/* Dijital Baskı Butonu - Kırmızı (ana menü rengi) */
#btn-dijital-baski-default {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.15)) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

#btn-dijital-baski-default.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(239, 68, 68, 0.25)) !important;
    border-color: rgba(239, 68, 68, 0.7) !important;
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.5),
        0 2px 8px rgba(239, 68, 68, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.02) !important;
}

#btn-dijital-baski-default:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.2)) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    transform: scale(1.05) translateZ(5px);
    box-shadow: 
        0 8px 24px rgba(239, 68, 68, 0.45),
        0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Kartvizit Butonu - Canlı Turuncu */
#btn-kartvizit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.15)) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

#btn-kartvizit.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0.25)) !important;
    border-color: rgba(245, 158, 11, 0.7) !important;
    box-shadow: 
        0 6px 20px rgba(245, 158, 11, 0.5),
        0 2px 8px rgba(245, 158, 11, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.02) !important;
}

#btn-kartvizit:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.2)) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    transform: scale(1.05) translateZ(5px);
    box-shadow: 
        0 8px 24px rgba(245, 158, 11, 0.45),
        0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

/* Broşür Butonu - Canlı Mor */
#btn-brosur {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.15)) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

#btn-brosur.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.25)) !important;
    border-color: rgba(139, 92, 246, 0.7) !important;
    box-shadow: 
        0 6px 20px rgba(139, 92, 246, 0.5),
        0 2px 8px rgba(139, 92, 246, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.02) !important;
}

#btn-brosur:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.2)) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    transform: scale(1.05) translateZ(5px);
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.45),
        0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

/* Alt tip butonları için genel aktif durum (fallback) */
.calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-btn-grid.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Alt tip butonları için genel hover efekti (fallback) */
.calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-btn-grid:hover {
    transform: scale(1.03) translateZ(5px);
}

/* Alt tip butonları için text görünürlüğü */
.calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-text-wrapper {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-text-line {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #1f2937 !important; /* Koyu gri - daha iyi görünürlük */
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* Alt tip butonları için img tag'leri için stil */
.calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .calculator-tabs-grid[data-subtype-grid="true"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem;
        padding: 0.75rem;
        overflow: visible !important;
    }
    
    .calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-btn-grid {
        padding: 0.75rem 0.5rem !important;
        min-height: 90px !important;
        margin-bottom: 0.75rem !important;
        overflow: visible !important;
        border-width: 3px !important;
        border-style: solid !important;
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.2),
            0 2px 6px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)) !important;
        backdrop-filter: blur(12px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    .calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-btn-grid:active {
        transform: scale(0.98) !important;
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.25),
            inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    }
    
    .calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
        transition: transform 0.2s ease !important;
    }
    
    .calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-btn-grid:active .calculator-tab-icon {
        transform: scale(0.95) !important;
    }
    
    .calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-icon-wrapper {
        min-height: 48px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-text-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-text-line {
        font-size: 0.7rem !important;
        font-weight: 900 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.05em !important;
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.4),
            0 0 8px rgba(255, 255, 255, 0.3) !important;
        color: rgba(26, 36, 128, 0.95) !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
    }
    
    .calculator-tabs-grid[data-subtype-grid="true"] .calculator-tab-text-line {
        font-size: 0.6rem;
    }
}

/* Modern Dropdown Styles - No Arrow - Apps Style */
.modern-select-wrapper {
    position: relative;
}

.modern-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;
    padding-right: 2.5rem !important;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.modern-select:hover {
    border-color: #9ca3af !important;
}

.modern-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

.modern-select::-ms-expand {
    display: none;
}

/* Language Buttons - Flag Only Styles (Override for modern design) */
.lang-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
}

.lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 48px !important;
    min-width: 64px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.lang-btn img[id^="flag-"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Screen reader only - consolidated */
.lang-btn span[id^="lang-text-"],
.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
    pointer-events: auto !important; /* Ensure file input can receive click events */
}

/* Special handling for file input - ensure it's accessible for programmatic clicks */
#fileInput {
    pointer-events: auto !important;
}

/* Header Pattern Background */
.ders-notu-calculator-wrapper header {
    position: relative;
    background-blend-mode: multiply;
    background-color: rgb(1, 32,104) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

/* Prevent horizontal scroll */
.ders-notu-calculator-wrapper {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Logo Background - Full Width Orange */
.ders-notu-calculator-wrapper header .logo-background-orange {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-top: 0 !important;
    padding: 1rem 1.5rem !important;
    background-color: #ff8300 !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: auto !important;
    left: 0 !important;
    right: 0 !important;
}

/* Logo image - Center vertically within orange background */
.ders-notu-calculator-wrapper header .logo-background-orange img {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    max-width: 100%;
    height: auto;
    padding: 0 16px;
}

/* Mobile Logo Spacing - Responsive Padding */
@media (max-width: 768px) {
    .ders-notu-calculator-wrapper header .logo-background-orange {
        padding: 1rem 2rem !important;
    }
    
    .ders-notu-calculator-wrapper header .logo-background-orange img {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .ders-notu-calculator-wrapper header .logo-background-orange {
        padding: 0.875rem 1.5rem !important;
    }
    
    .ders-notu-calculator-wrapper header .logo-background-orange img {
        padding: 0 16px;
    }
}

@media (max-width: 375px) {
    .ders-notu-calculator-wrapper header .logo-background-orange {
        padding: 0.75rem 1.25rem !important;
    }
    
    .ders-notu-calculator-wrapper header .logo-background-orange img {
        padding: 0 12px;
    }
}

/* Header - Remove top padding to align logo to top */
.ders-notu-calculator-wrapper header {
    padding-top: 0 !important;
}

.ders-notu-calculator-wrapper header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-repeat: inherit;
    background-position: inherit;
    background-size: inherit;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.ders-notu-calculator-wrapper header > * {
    position: relative;
    z-index: 1;
}

/* Footer Pattern Background */
.ders-notu-calculator-wrapper footer.bg-slate-800 {
    position: relative;
    background-blend-mode: multiply;
    background-color: rgb(5, 13, 24) !important;
}

.ders-notu-calculator-wrapper footer.bg-slate-800::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-repeat: inherit;
    background-position: inherit;
    background-size: inherit;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.ders-notu-calculator-wrapper footer.bg-slate-800 > * {
    position: relative;
    z-index: 1;
}

/* Footer Text - White on Dark Background */
footer.bg-slate-800 *,
footer.bg-slate-800 p,
footer.bg-slate-800 span,
footer.bg-slate-800 h3,
footer.bg-slate-800 h4,
footer.bg-slate-800 a {
    color: #ffffff !important;
}

footer.bg-slate-800 #footer-closed {
    color: #ffffff !important;
}

/* Hide empty content after calculator wrapper */
.ders-notu-calculator-wrapper:after,
.ders-notu-calculator-wrapper + p:empty,
.ders-notu-calculator-wrapper + script[src*="chrome-extension"],
.ders-notu-calculator-wrapper ~ p:empty:not(.wp-block-paragraph),
.ders-notu-calculator-wrapper ~ script[src*="chrome-extension"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    /* Duplicate styles removed - using the main responsive section above */
    
    /* Dijital Baskı Schema - Mobil Optimizasyonu */
    #dijital_schema {
        padding: 0.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        box-sizing: border-box !important;
    }
    
    #dijital_schema > div {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    #dijital_schema svg {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    /* Schema container'ın parent'ı için de genişlik kontrolü */
    #dijital_results .mb-4 {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .currency-toggle-wrapper {
        gap: 6px;
    }
    
    .currency-toggle-wrapper span {
        font-size: 10px;
    }
    
    .currency-toggle-switch {
        width: 52px;
        height: 24px;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .currency-toggle-slider {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .currency-toggle-slider:before {
        display: none !important;
        content: none !important;
    }
    
    .currency-toggle-switch input:checked + .currency-toggle-slider:before {
        display: none !important;
    }
    
    .lang-buttons-container {
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .lang-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }
    
    .lang-btn img[id^="flag-"] {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* Rulo Baskı Schema - Professional Digital Cutting Plan Styles */
    #rulo_schema {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 200px;
    }
    
    /* Main container */
    #rulo_schema > div {
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    /* Ruler styles */
    #rulo_schema .ruler,
    #rulo_schema > div > div:first-child {
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Paper roll area */
    #rulo_schema > div > div:nth-child(2) {
        position: relative;
        overflow: visible;
    }
    
    /* Scrollbar styles for schema container */
    #rulo_schema::-webkit-scrollbar {
        height: 6px;
    }
    
    #rulo_schema::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    #rulo_schema::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    #rulo_schema::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    /* Crop marks animation on hover */
    #rulo_schema [style*="crop"] {
        transition: opacity 0.2s ease;
    }
    
    /* Print area frame */
    #rulo_schema [style*="border: 2px solid #0066cc"] {
        pointer-events: none;
    }
    
    /* Waste area hover effect */
    #rulo_schema [style*="repeating-linear-gradient"] {
        transition: opacity 0.3s ease;
    }
    
    #rulo_schema [style*="repeating-linear-gradient"]:hover {
        opacity: 0.8 !important;
    }
}

.input-shared {
  width: 100%;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding-right: 2.5rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #111;
  box-sizing: border-box;
}

/* Kartvizit Taşma Payı input - İstenen Adet ile aynı yükseklik ve font */
#kartvizit_margin.input-shared {
  height: 48px;
  min-height: 48px;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

#brosur_margin.modern-select {
  height: 48px;
  min-height: 48px;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}
.input-shared:focus {
  border-color: #ff8300;
  box-shadow: 0 0 0 2px rgba(255,131,0,0.12);
  /* Ensure spinner arrows are visible on focus */
  opacity: 1;
}

/* Number input spinner arrows - visible on focus, positioned right */
input[type="number"] {
  position: relative;
  padding-right: 2.5rem;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0;
  transition: opacity 0.2s ease;
  position: absolute;
  right: 2px !important; /* Align to the very right edge */
  width: 28px !important; /* Slightly larger for better touch targets */
  height: 50%;
  cursor: pointer;
  pointer-events: none;
  margin: 0;
}

/* Upper spinner (up arrow) */
input[type="number"]::-webkit-inner-spin-button {
  top: 0;
  bottom: auto;
}

/* Lower spinner (down arrow) */
input[type="number"]::-webkit-outer-spin-button {
  bottom: 0;
  top: auto;
}

input[type="number"]:focus::-webkit-inner-spin-button,
input[type="number"]:focus::-webkit-outer-spin-button {
  opacity: 1 !important;
  cursor: pointer;
  pointer-events: auto !important;
  -webkit-appearance: inner-spin-button;
  display: block;
}

/* Mobile: Ensure spinner arrows are on the right side */
@media (max-width: 768px) {
  input[type="number"] {
    padding-right: 3rem !important;
    text-align: left;
  }
  
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    position: absolute;
    right: 4px !important;
    width: 24px !important;
    height: 1.2em;
    margin: 0;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  
  input[type="number"]:focus::-webkit-inner-spin-button,
  input[type="number"]:focus::-webkit-outer-spin-button {
    opacity: 1 !important;
    pointer-events: auto !important;
    -webkit-appearance: inner-spin-button !important;
    appearance: inner-spin-button !important;
  }
}
.modern-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  box-shadow: none;
  border: 2px solid #e5e7eb;
  padding-right: 1rem;
  height: 48px;
  min-height: 48px;
  font-size: 16px;
  border-radius: 0.375rem;
  color: #111;
}
.modern-select-wrapper select::-ms-expand {
  display: none;
}
.modern-select-wrapper select::-webkit-inner-spin-button,
.modern-select-wrapper select::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.modern-select-wrapper:after, .modern-select-wrapper svg, .modern-select-wrapper div[style*="pointer-events"] {
  display: none!important;
}
/* Module Headers - Dynamic colors based on active module */
.card-header-orange {
  background: #ff8300; /* Default/fallback */
}

/* Ders Notları Header */
/* Header background is set inline in template, but we can override here if needed */

/* Rulo Baskı Header */
/* Header background is set inline in template */

/* Dijital Baskı Header */
/* Header background is set inline in template */

/* Module-specific header backgrounds */
.ders-notu-module-header {
  background: #10b981 !important;
}

.rulo-module-header {
  background: #3b82f6 !important;
}

.dijital-module-header {
  background: #ef4444 !important;
}

.katalog-module-header {
  background: #ec4899 !important;
}

/* Print Type Selection - Enhanced Visibility */
.print-type-option {
    transition: all 0.3s ease;
    position: relative;
}

.print-type-option.ring-4 {
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.print-type-option.selected {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4), 0 10px 20px -5px rgba(0, 0, 0, 0.3) !important;
}

.print-type-option.ring-blue-500 {
    border-color: #3b82f6 !important;
    border-width: 3px !important;
    background: linear-gradient(to bottom right, #dbeafe 0%, #bfdbfe 100%) !important;
}

.print-type-option.ring-blue-500.selected {
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.5), 0 10px 20px -5px rgba(0, 0, 0, 0.3) !important;
}

.print-type-option.ring-gray-500 {
    border-color: #6b7280 !important;
    border-width: 3px !important;
    background: darkgray !important;
}

.print-type-option.ring-gray-500.selected {
    box-shadow: 0 15px 35px -5px rgba(107, 114, 128, 0.5), 0 10px 20px -5px rgba(0, 0, 0, 0.3) !important;
}

.print-type-option:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Dynamic font size for price displays based on number length */
span#coloredPrice,
span#bwPrice {
    font-size: 20pt;
    transition: font-size 0.2s ease;
}

/* Mobile responsive styles for print type buttons */
@media (max-width: 768px) {
    .print-type-option {
        padding: 0.75rem !important;
    }
    
    .print-type-option img {
        width: 80px !important;
        max-width: 100px !important;
        height: auto !important;
        margin-bottom: 0.5rem !important;
    }
    
    #label-colored-price,
    #label-bw-price {
        font-size: 0.75rem !important;
        font-weight: 900 !important;
    }
}

@media (max-width: 640px) {
  .input-shared,
  .modern-select { 
    height: clamp(44px, 10vw, 52px); 
    min-height:44px; 
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  }
  .card-header-orange { padding: clamp(0.75rem, 2vw, 1.5rem) !important; }
  /* Kartvizit Taşma Payı - mobilde de İstenen Adet ile aynı */
  #kartvizit_margin.input-shared {
    height: clamp(44px, 10vw, 52px);
    min-height: 44px;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  }
}

/* Extra Bold Headings - Force font-weight: 900 for all languages */
/* Tüm başlıklar için font-weight: 900 !important; */
.ders-notu-calculator-wrapper h1,
.ders-notu-calculator-wrapper h2,
.ders-notu-calculator-wrapper h3,
.ders-notu-calculator-wrapper h4,
.ders-notu-calculator-wrapper h5,
.ders-notu-calculator-wrapper h6,
.ders-notu-calculator-wrapper #main-title,
.ders-notu-calculator-wrapper #calc-title,
.ders-notu-calculator-wrapper #price-comparison {
    font-size: 0.875rem !important;
}
@media (min-width: 640px) {
    .ders-notu-calculator-wrapper #price-comparison {
        font-size: 1.125rem !important;
    }
}
.ders-notu-calculator-wrapper #price-comparison,
.ders-notu-calculator-wrapper #detailed-results,
.ders-notu-calculator-wrapper #rulo-calc-title,
.ders-notu-calculator-wrapper #rulo-schema-title,
.ders-notu-calculator-wrapper #dijital-calc-title,
.ders-notu-calculator-wrapper #dijital-schema-title,
.ders-notu-calculator-wrapper #katalog-calc-title,
.ders-notu-calculator-wrapper #katalog-results-title,
.ders-notu-calculator-wrapper #customer-info-title,
.ders-notu-calculator-wrapper #upload-title,
.ders-notu-calculator-wrapper #footer-contact-title,
.ders-notu-calculator-wrapper #footer-hours-title {
    font-weight: 900 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Modül başlıkları için font boyutu artırıldı */
.ders-notu-calculator-wrapper #calc-title,
.ders-notu-calculator-wrapper #rulo-calc-title,
.ders-notu-calculator-wrapper #dijital-calc-title,
.ders-notu-calculator-wrapper #katalog-calc-title {
    font-size: 1.25rem !important; /* 20px - text-lg'dan (18px) biraz daha büyük */
    font-family: 'Inter', sans-serif !important;
}

/* ============================================
   Rulo Baskı - Modern Metric Cards
   Sleek, app-style data cards with emphasis
   ============================================ */

/* Grid Container for Metric Cards */
#rulo_details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

/* Base Metric Card Style */
.rulo-metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rulo-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rulo-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(148, 163, 184, 0.4);
}

.rulo-metric-card:hover::before {
    opacity: 1;
}

/* Featured Cards (Toplam Alan & Birim Fiyat) */
.rulo-metric-card-featured {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.rulo-metric-card-featured::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    opacity: 1;
}

.rulo-metric-card-featured:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Metric Icon */
/* ============================================
   PWA Splash Screen - Responsive for all screen sizes
   ============================================ */

#pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    /* Background color will be set dynamically from PWA settings */
    overflow: hidden;
    display: none;
}

#pwa-splash-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#pwa-splash-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* Standard screens (up to 1920px width) */
@media (max-width: 1920px) {
    #pwa-splash-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

/* 2K screens (2560px - 3839px width) */
@media (min-width: 2560px) and (max-width: 3839px) {
    #pwa-splash-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        /* Maintain original aspect ratio, scale to fit */
    }
}

/* 4K screens (3840px and above) */
@media (min-width: 3840px) {
    #pwa-splash-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        /* Maintain original aspect ratio, scale to fit */
    }
}

/* Mobile screens (portrait) */
@media (max-width: 768px) and (orientation: portrait) {
    #pwa-splash-screen {
        width: 100vw;
        height: 100vh;
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
    }
    
    #pwa-splash-container {
        width: 100%;
        height: 100%;
        display: block;
        position: relative;
        overflow: hidden;
    }
    
    #pwa-splash-image {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
        display: block;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* On mobile portrait, use cover to fill screen completely */
    }
}

/* Mobile screens (landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
    #pwa-splash-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

/* Tablet screens */
@media (min-width: 769px) and (max-width: 1024px) {
    #pwa-splash-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

.rulo-metric-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.rulo-metric-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.rulo-metric-icon-featured {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
}

/* Metric Content */
.rulo-metric-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.rulo-metric-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.4;
}

.rulo-metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    word-break: break-word;
}

.rulo-metric-value-featured {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: -0.01em;
}

.rulo-metric-unit {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-left: 2px;
}

.rulo-metric-sublabel {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin-top: 2px;
}

/* Color variations for waste percentage */
.rulo-metric-value.text-green-600 {
    color: #059669;
}

.rulo-metric-value.text-yellow-600 {
    color: #d97706;
}

.rulo-metric-value.text-red-600 {
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 640px) {
    #rulo_details {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .rulo-metric-card {
        padding: 16px;
        gap: 10px;
    }
    
    .rulo-metric-icon {
        width: 36px;
        height: 36px;
    }
    
    .rulo-metric-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .rulo-metric-value {
        font-size: 16px;
    }
    
    .rulo-metric-value-featured {
        font-size: 18px;
    }
    
    .rulo-metric-label {
        font-size: 11px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #rulo_details {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    #rulo_details {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Katalog Kapak Toggle Switch */
.katalog-cover-toggle-switch {
  /* switch */
  --switch-width: 46px;
  --switch-height: 24px;
  --switch-bg: rgb(131, 131, 131);
  --switch-checked-bg: #1676df;
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 18px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 6px;
  --icon-checkmark-color: var(--switch-checked-bg);
  --icon-checkmark-size: 10px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all 0.2s ease-in-out;
    position: relative;
    display: inline-block;
}

.katalog-cover-toggle-switch input {
  display: none;
}

.katalog-cover-toggle-circle svg {
  -webkit-transition: var(--icon-transition);
  -o-transition: var(--icon-transition);
  transition: var(--icon-transition);
    position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.katalog-cover-toggle-circle .katalog-cover-toggle-checkmark {
  width: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.katalog-cover-toggle-circle .katalog-cover-toggle-cross {
  width: var(--icon-cross-size);
  color: var(--icon-cross-color);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.katalog-cover-toggle-slider {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transition: var(--switch-transition);
  -o-transition: var(--switch-transition);
  transition: var(--switch-transition);
    cursor: pointer;
}

.katalog-cover-toggle-circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
    border-radius: 50%;
  -webkit-box-shadow: var(--circle-shadow);
  box-shadow: var(--circle-shadow);
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  z-index: 1;
  position: absolute;
  left: var(--switch-offset);
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* actions */

.katalog-cover-toggle-switch input:checked + .katalog-cover-toggle-slider {
  background: var(--switch-checked-bg);
}

.katalog-cover-toggle-switch input:checked + .katalog-cover-toggle-slider .katalog-cover-toggle-circle .katalog-cover-toggle-checkmark {
  -webkit-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.katalog-cover-toggle-switch input:checked + .katalog-cover-toggle-slider .katalog-cover-toggle-circle .katalog-cover-toggle-cross {
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}


.katalog-cover-toggle-switch input:checked + .katalog-cover-toggle-slider .katalog-cover-toggle-circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  -webkit-box-shadow: var(--circle-checked-shadow);
  box-shadow: var(--circle-checked-shadow);
}

/* Kapak Options Active/Disabled States */
#katalog_kapak_options {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#katalog_kapak_options.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#katalog_kapak_options.active select {
    cursor: pointer;
    background-color: #ffffff;
    color: #1f2937;
}

#katalog_kapak_options:not(.active) {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

#katalog_kapak_options:not(.active) select {
    cursor: not-allowed;
    background-color: #f3f4f6;
    color: #9ca3af;
}

/* Katalog Cover Description */
.katalog-cover-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 0 4px;
}

@media (max-width: 640px) {
    .katalog-cover-description {
        font-size: 11px;
        line-height: 1.5;
        margin-top: 6px;
        margin-bottom: 12px;
    }
}

#katalog_kapak_options:not(.active) label {
    color: #9ca3af;
}

/* Dijital Baskı Custom Toggle Switch */
.dijital-custom-toggle-switch {
  /* switch */
  --switch-width: 46px;
  --switch-height: 24px;
  --switch-bg: rgb(131, 131, 131);
  --switch-checked-bg: #1676df;
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 18px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 6px;
  --icon-checkmark-color: var(--switch-checked-bg);
  --icon-checkmark-size: 10px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all 0.2s ease-in-out;
    position: relative;
    display: inline-block;
}

.dijital-custom-toggle-switch input {
  display: none;
}

.dijital-custom-toggle-circle svg {
  -webkit-transition: var(--icon-transition);
  -o-transition: var(--icon-transition);
  transition: var(--icon-transition);
    position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.dijital-custom-toggle-circle .dijital-custom-toggle-checkmark {
  width: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.dijital-custom-toggle-circle .dijital-custom-toggle-cross {
  width: var(--icon-cross-size);
  color: var(--icon-cross-color);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.dijital-custom-toggle-slider {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transition: var(--switch-transition);
  -o-transition: var(--switch-transition);
  transition: var(--switch-transition);
    cursor: pointer;
}

.dijital-custom-toggle-circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
    border-radius: 50%;
  -webkit-box-shadow: var(--circle-shadow);
  box-shadow: var(--circle-shadow);
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  z-index: 1;
  position: absolute;
  left: var(--switch-offset);
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


/* actions */

.dijital-custom-toggle-switch input:checked + .dijital-custom-toggle-slider {
  background: var(--switch-checked-bg);
}

.dijital-custom-toggle-switch input:checked + .dijital-custom-toggle-slider .dijital-custom-toggle-circle .dijital-custom-toggle-checkmark {
  -webkit-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.dijital-custom-toggle-switch input:checked + .dijital-custom-toggle-slider .dijital-custom-toggle-circle .dijital-custom-toggle-cross {
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}


.dijital-custom-toggle-switch input:checked + .dijital-custom-toggle-slider .dijital-custom-toggle-circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  -webkit-box-shadow: var(--circle-checked-shadow);
  box-shadow: var(--circle-checked-shadow);
}

/* Özel Ölçü Label - Extra Bold with Slow Pulse Animation - Daha küçük */
.dijital-custom-toggle-label {
    font-weight: 900 !important;
    font-size: 0.6875rem !important;
    color: #1e40af !important;
}

/* Rulo Baskı Custom Toggle Switch */
.rulo-custom-toggle-switch {
  /* switch */
  --switch-width: 46px;
  --switch-height: 24px;
  --switch-bg: rgb(131, 131, 131);
  --switch-checked-bg: #1676df;
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 18px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 6px;
  --icon-checkmark-color: var(--switch-checked-bg);
  --icon-checkmark-size: 10px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all 0.2s ease-in-out;
    position: relative;
    display: inline-block;
}

.rulo-custom-toggle-switch input {
  display: none;
}

.rulo-custom-toggle-circle svg {
  -webkit-transition: var(--icon-transition);
  -o-transition: var(--icon-transition);
  transition: var(--icon-transition);
    position: absolute;
  top: 50%;
  left: 50%;
  height: auto;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.rulo-custom-toggle-circle .rulo-custom-toggle-checkmark {
  width: var(--icon-checkmark-size);
  height: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.rulo-custom-toggle-circle .rulo-custom-toggle-cross {
  width: var(--icon-cross-size);
  height: var(--icon-cross-size);
  color: var(--icon-cross-color);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.rulo-custom-toggle-slider {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transition: var(--switch-transition);
  -o-transition: var(--switch-transition);
  transition: var(--switch-transition);
    cursor: pointer;
}

.rulo-custom-toggle-circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
  border-radius: 50%;
  -webkit-box-shadow: var(--circle-shadow);
  box-shadow: var(--circle-shadow);
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  z-index: 1;
    position: absolute;
  left: var(--switch-offset);
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rulo-custom-toggle-slider::before {
    content: "";
  position: absolute;
  width: var(--effect-width);
  height: var(--effect-height);
  left: calc(var(--switch-offset) + (var(--effect-width) / 2));
  background: var(--effect-bg);
  border-radius: var(--effect-border-radius);
  -webkit-transition: var(--effect-transition);
  -o-transition: var(--effect-transition);
  transition: var(--effect-transition);
}

/* actions */

.rulo-custom-toggle-switch input:checked + .rulo-custom-toggle-slider {
  background: var(--switch-checked-bg);
}

.rulo-custom-toggle-switch input:checked + .rulo-custom-toggle-slider .rulo-custom-toggle-circle .rulo-custom-toggle-checkmark {
  -webkit-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.rulo-custom-toggle-switch input:checked + .rulo-custom-toggle-slider .rulo-custom-toggle-circle .rulo-custom-toggle-cross {
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.rulo-custom-toggle-switch input:checked + .rulo-custom-toggle-slider::before {
  left: calc(
    100% - var(--effect-width) - (var(--effect-width) / 2) -
      var(--switch-offset)
  );
}

.rulo-custom-toggle-switch input:checked + .rulo-custom-toggle-slider .rulo-custom-toggle-circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  -webkit-box-shadow: var(--circle-checked-shadow);
  box-shadow: var(--circle-checked-shadow);
}

/* Rulo Özel Ölçü Label - Extra Bold with Slow Pulse Animation */
.rulo-custom-toggle-label {
    font-weight: 900 !important;
    font-size: 0.6875rem !important;
    color: #1e40af !important;
    animation: pulse-slow 2s ease-in-out infinite;
}

/* Rulo Baskı Extra Options - Switch Toggle (UI8 Style) */
.rulo-extra-option-card {
    position: relative;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    pointer-events: none;
}

.rulo-extra-option-card:not([style*="opacity: 0.5"]) {
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rulo-extra-option-card:not([style*="opacity: 0.5"]):hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.rulo-toggle-switch {
  /* switch */
  --switch-width: 46px;
  --switch-height: 24px;
  --switch-bg: rgb(131, 131, 131);
  --switch-checked-bg: #1676df;
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 18px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 6px;
  --icon-checkmark-color: var(--switch-checked-bg);
  --icon-checkmark-size: 10px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all 0.2s ease-in-out;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.rulo-toggle-switch input[type="checkbox"],
.rulo-toggle-switch input {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
  visibility: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
}

.rulo-toggle-circle svg {
  -webkit-transition: var(--icon-transition);
  -o-transition: var(--icon-transition);
  transition: var(--icon-transition);
    position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.rulo-toggle-circle .rulo-toggle-checkmark {
  width: var(--icon-checkmark-size);
  height: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.rulo-toggle-circle .rulo-toggle-cross {
  width: var(--icon-cross-size);
  height: var(--icon-cross-size);
  color: var(--icon-cross-color);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.rulo-toggle-slider {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transition: var(--switch-transition);
  -o-transition: var(--switch-transition);
  transition: var(--switch-transition);
    cursor: pointer;
}

.rulo-toggle-circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
  border-radius: 50%;
  -webkit-box-shadow: var(--circle-shadow);
  box-shadow: var(--circle-shadow);
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  z-index: 1;
    position: absolute;
  left: var(--switch-offset);
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rulo-toggle-slider::before {
    content: "";
  position: absolute;
  width: var(--effect-width);
  height: var(--effect-height);
  left: calc(var(--switch-offset) + (var(--effect-width) / 2));
  background: var(--effect-bg);
  border-radius: var(--effect-border-radius);
  -webkit-transition: var(--effect-transition);
  -o-transition: var(--effect-transition);
  transition: var(--effect-transition);
}

/* actions */

.rulo-toggle-switch input:checked + .rulo-toggle-slider {
  background: var(--switch-checked-bg);
}

.rulo-toggle-switch input:checked + .rulo-toggle-slider .rulo-toggle-circle .rulo-toggle-checkmark {
  -webkit-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.rulo-toggle-switch input:checked + .rulo-toggle-slider .rulo-toggle-circle .rulo-toggle-cross {
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.rulo-toggle-switch input:checked + .rulo-toggle-slider::before {
  left: calc(
    100% - var(--effect-width) - (var(--effect-width) / 2) -
      var(--switch-offset)
  );
}

.rulo-toggle-switch input:checked + .rulo-toggle-slider .rulo-toggle-circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  -webkit-box-shadow: var(--circle-checked-shadow);
  box-shadow: var(--circle-checked-shadow);
}

.rulo-toggle-switch input:disabled + .rulo-toggle-slider {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Rulo Info Title - Extra Bold with Slow Pulse Animation */
.rulo-info-title-pulse {
    font-weight: 900 !important;
    animation: pulse-slow-title 3s ease-in-out infinite;
}

/* Rulo Baskı Hakkında Bilgi Açılır Pencere Başlığı */
#rulo-info-toggle {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Reset Button Special Hover Effects */
#dijital_reset_btn {
    position: relative;
    overflow: hidden;
}

#dijital_reset_btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#dijital_reset_btn:hover::before {
    width: 300px;
    height: 300px;
}

#dijital_reset_btn svg {
    transition: transform 0.3s ease-in-out;
}

#dijital_reset_btn:hover svg {
    transform: rotate(-180deg);
}

#dijital_reset_btn:active {
    transform: scale(0.95);
}

@keyframes pulse-slow-title {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.dijital-custom-toggle-label {
    animation: pulse-slow 2s ease-in-out infinite;
}

/* Dijital Baskı İndirim Rozeti - Premium Luxury Design */
.dijital-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 16px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.95) 0%, 
        rgba(99, 102, 241, 0.95) 50%,
        rgba(59, 130, 246, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.4),
        0 4px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: dijitalDiscountPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    flex-wrap: nowrap; /* Desktop'ta tek satır */
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    text-align: center;
    justify-content: center;
}

/* Hover efektleri kaldırıldı - ::after ve ::before pseudo-elementleri kaldırıldı */

/* Sparkle icon container */
.dijital-discount-sparkle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 2;
}

.dijital-sparkle-icon {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    animation: dijitalSparkleRotate 3s linear infinite;
}

/* Discount text */
.dijital-discount-text {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Discount label */
.dijital-discount-label {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.dijital-discount-text {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Animasyonlar */
@keyframes dijitalDiscountPulse {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(-15px) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) translateY(0) rotate(2deg);
    }
    70% {
        transform: scale(0.95) translateY(0) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

@keyframes dijitalSparkleRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 1;
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

/* Ders Notu İndirim Rozeti - Dijital Baskı Modülü Stilinde */
.ders-notu-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.95) 0%, 
        rgba(99, 102, 241, 0.95) 50%,
        rgba(59, 130, 246, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.4),
        0 4px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: dersNotuDiscountPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Glow efekti */
.ders-notu-discount-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.ders-notu-discount-badge:hover::after {
    width: 200px;
    height: 200px;
}

/* Shine efekti */
.ders-notu-discount-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.ders-notu-discount-badge:hover::before {
    left: 100%;
}

.ders-notu-discount-badge:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(139, 92, 246, 0.5),
        0 6px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sparkle icon container */
.ders-notu-discount-sparkle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 2;
}

.ders-notu-sparkle-icon {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    animation: dersNotuSparkleRotate 3s linear infinite;
}

/* Discount text */
.ders-notu-discount-text {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Discount label */
.ders-notu-discount-label {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* Animasyonlar */
@keyframes dersNotuDiscountPulse {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(-15px) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) translateY(0) rotate(2deg);
    }
    70% {
        transform: scale(0.95) translateY(0) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

@keyframes dersNotuSparkleRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 1;
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes dersNotuDiscountGlow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(139, 92, 246, 0.4),
            0 4px 16px rgba(99, 102, 241, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(139, 92, 246, 0.6),
            0 4px 16px rgba(99, 102, 241, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
}

/* Continuous subtle pulse */
@keyframes dijitalDiscountGlow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(139, 92, 246, 0.4),
            0 4px 16px rgba(99, 102, 241, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(139, 92, 246, 0.6),
            0 4px 16px rgba(99, 102, 241, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.dijital-discount-badge {
    animation: dijitalDiscountPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
               dijitalDiscountGlow 3s ease-in-out infinite;
}

/* Mobile responsive */
@media (max-width: 640px) {
    /* İndirim Rozeti - Mobilde Simetrik Dikey Düzenleme */
    .dijital-discount-badge {
        padding: 8px 14px !important;
        gap: 4px !important;
        border-radius: 20px;
        flex-direction: column !important; /* Dikey düzenleme */
        align-items: center !important; /* Tüm elemanları ortala */
        justify-content: center !important;
        text-align: center !important;
        min-width: 80px; /* Minimum genişlik */
        max-width: 120px; /* Maksimum genişlik */
    }
    
    /* İkon - Üstte Ortada */
    .dijital-discount-sparkle {
        width: 18px !important;
        height: 18px !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
        order: 1; /* İlk sırada (üstte) */
    }
    
    /* İndirim Yüzdesi - Ortada, İkonun Altında */
    .dijital-discount-text {
        font-size: 15px !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 2; /* İkinci sırada (ortada) */
        white-space: nowrap !important; /* Tek satırda kal */
        text-align: center !important;
    }
    
    /* İndirim Label - En Altta, Ortada */
    .dijital-discount-label {
        font-size: 9px !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        text-transform: uppercase !important;
        opacity: 0.95 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        order: 3; /* Üçüncü sırada (altta) */
        text-align: center !important;
        white-space: nowrap !important; /* Tek satırda kal */
    }
    
    #dijital-calc-title {
        flex-wrap: nowrap !important; /* İkon ve başlık aynı satırda kalmalı */
        gap: 8px;
        align-items: flex-start !important; /* İkon üstte hizalansın, başlık iki satıra bölünebilir */
    }
    
    /* İkon ve başlık aynı satırda, sadece başlık metni iki satıra bölünebilir */
    #dijital-calc-title svg {
        flex-shrink: 0 !important;
        align-self: flex-start !important;
        margin-top: 2px !important; /* İkonu biraz aşağı kaydır, başlıkla hizala */
    }
    
    /* Başlık metni için iki satır desteği */
    #dijital-title-text {
        display: inline-block !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .dijital-discount-badge {
        margin-left: 0;
        margin-top: 6px;
    }
}

/* Tablet responsive */
@media (min-width: 641px) and (max-width: 1024px) {
    .dijital-discount-badge {
        padding: 7px 14px;
        gap: 7px;
    }
}

/* Format Dropdown - Smaller font for dimensions */
#dijital_format {
    font-size: 14px;
}

#dijital_format option {
    font-size: 13px;
    padding: 8px;
}

/* Document Printing Calculation Message Animation */
@keyframes documentPrintingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.document-printing-pulse {
    animation: documentPrintingPulse 2s ease-in-out infinite;
}

/* Calculator Icon Animation - More Visible */
@keyframes calculatorBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        opacity: 0.9;
    }
}

.calculator-icon-animate {
    animation: calculatorBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================
   Dijital Baskı - Extra Options Checkboxes
   Baskimo Style - Mobile Friendly
   ============================================ */

/* Extra option checkbox styling */
.dijital-extra-option {
    cursor: pointer;
    transition: all 0.2s ease;
}

.dijital-extra-option:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.dijital-extra-option:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

/* Extra option price highlights */
.dijital-extra-price {
    font-weight: 600;
    color: #059669;
}

/* Responsive checkbox size for mobile */
@media (max-width: 640px) {
    .dijital-extra-option {
        width: 18px;
        height: 18px;
    }
}

/* Price breakdown styling enhancements */
#dijital_results .space-y-2 > div {
    transition: background-color 0.2s ease;
}

#dijital_results .space-y-2 > div:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 4px;
}

/* Discount highlight animations */
@keyframes discountPulse {
    0%, 100% {
        background-color: rgb(254, 243, 199);
    }
    50% {
        background-color: rgb(253, 230, 138);
    }
}

.bg-amber-50 {
    animation: discountPulse 2s ease-in-out infinite;
}

@keyframes discountPulseGreen {
    0%, 100% {
        background-color: rgb(236, 253, 245);
    }
    50% {
        background-color: rgb(209, 250, 229);
    }
}

.bg-emerald-50 {
    animation: discountPulseGreen 2s ease-in-out infinite;
}

/* ============================================
   TÜM MODÜLLER - MODERN FINAL TOTAL CARD
   ============================================ */

/* Base Final Total Card - All Modules */
.final-total-card {
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
    margin-bottom: 24px;
}

.final-total-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.final-total-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.final-total-label {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
}

.final-total-value {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.final-total-value .currency-unit {
    font-size: 18px;
    font-weight: 600;
    margin-left: 8px;
    opacity: 0.9;
}

/* Color Variants */

/* Emerald - Ders Notu */
.final-total-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.final-total-emerald:hover {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

/* Blue - Rulo Baskı */
.final-total-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.final-total-blue:hover {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

/* Red - Dijital Baskı */
.final-total-indigo {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.final-total-indigo:hover {
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

/* Red - Tüm Modüller İçin Ortak (Yeni Tasarım) */
.final-total-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.final-total-red:hover {
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

/* Final Total Price Container - Eski ve Yeni Fiyat Yan Yana */
.final-total-price-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.final-total-price-old {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 600;
    bottom: 0px;
}

/* Yeşil Kazancınız Konuşma Balonu */
/* Discount Bubble Wrapper - Contains character and bubble */
.discount-bubble-wrapper {
    position: absolute;
    top: -50px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    z-index: 10;
    animation: discountBubbleAppear 0.5s ease-out;
}

.discount-bubble {
    position: relative;
    background: #10b981;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    top: -25px;
    z-index: 2;
}

.discount-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #10b981;
}

.discount-bubble-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.discount-bubble-label {
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-bubble-value {
    font-size: 16px;
    font-weight: 900;
    color: #000000;
}

.discount-bubble-value .currency-unit {
    font-size: 12px;
    font-weight: 700;
}

/* Premium E-commerce Character - Professional SaaS Style */
.discount-character {
    position: relative;
    width: 90px;
    height: 90px;
    z-index: 1; /* Behind the bubble */
    animation: characterAppear 0.6s ease-out 0.2s both;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.discount-character-head {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.discount-character-face {
    width: 62px;
    height: 62px;
    background: linear-gradient(223deg, #fdc3e4 0%, #ffa5d8 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 16px rgb(47 8 27 / 15%), 0 2px 8px rgb(47 5 26 / 10%), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(236, 72, 153, 0.08);
    top: -25px;
    
}

/* Eyes - Professional and minimal */
.discount-character-eye {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1f2937;
    border-radius: 50%;
    top: 24px;
    transition: height 0.15s ease;
    overflow: hidden;
}

.discount-character-eye-left {
    left: 20px;
}

.discount-character-eye-right {
    right: 20px;
}

/* Eyelid for blinking animation */
.discount-character-eyelid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-radius: 50% 50% 0 0;
    transition: height 0.15s ease;
    animation: characterBlink 3.5s infinite;
}

/* Smile - Subtle and professional */
.discount-character-smile {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    border: 2px solid #6b7280;
    border-top: none;
    border-radius: 0 0 20px 20px;
    opacity: 0.4;
}

/* Blink Animation - Natural and subtle */
@keyframes characterBlink {
    0%, 92%, 100% {
        height: 0;
    }
    94%, 96% {
        height: 100%;
    }
}

/* Character Appear Animation */
@keyframes characterAppear {
    from {
        opacity: 0;
        transform: translateX(-15px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes discountBubbleAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design for Discount Bubble */
@media (max-width: 768px) {
    .discount-bubble-wrapper {
        top: -15px;
        right: 10px;
        gap: 8px;
    }
    
    .discount-bubble {
        padding: 10px 14px;
    }
    
    .discount-character {
        width: 70px;
        height: 70px;
    }
    
    .discount-character-face {
        width: 56px;
        height: 56px;
    }
    
    .discount-character-eye {
        width: 6px;
        height: 6px;
        top: 18px;
    }
    
    .discount-character-eye-left {
        left: 16px;
    }
    
    .discount-character-eye-right {
        right: 16px;
    }
    
    .discount-character-smile {
        bottom: 14px;
        width: 16px;
        height: 8px;
        border-width: 1.5px;
    }
    
    .discount-bubble-label {
        font-size: 10px;
    }
    
    .discount-bubble-value {
        font-size: 14px;
    }
    
    .discount-bubble-value .currency-unit {
        font-size: 11px;
    }
    
    .final-total-price-old {
        font-size: 16px;
    }
}

/* Medium breakpoint padding */
@media (min-width: 768px) {
    .md\:p-6 {
        padding: 2.5rem 1rem 1rem 1rem;
    }
}

/* Pink - Katalog */
.final-total-purple {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.final-total-purple:hover {
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.4);
}

/* Responsive Design for Final Total Cards */
@media (max-width: 768px) {
    .final-total-card {
        padding: 20px 24px;
    }
    
    .final-total-label {
        font-size: 15px;
    }
    
    .final-total-value {
        font-size: 28px;
    }
    
    .final-total-value .currency-unit {
        font-size: 16px;
    }
}

/* Payment Instructions Modal - Desktop IBAN Size */
#payment-instructions-modal [style*="font-size: 16px"][style*="font-weight: 700"][style*="color: #059669"][style*="font-family: monospace"] > span {
    font-size: 32px !important;
    font-weight: 900 !important;
}

/* Payment Instructions Modal - Mobile Optimization (Samsung S24) */
@media (max-width: 480px) {
    #payment-instructions-modal {
        padding: 10px !important;
        padding-top: 20px !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #payment-instructions-modal > div {
        margin-top: 0 !important;
    }
    
    #payment-instructions-modal > div {
        padding: 16px !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
    }
    
    /* IBAN container - make it responsive */
    #payment-instructions-modal [style*="font-size: 16px"][style*="font-weight: 700"][style*="color: #059669"][style*="font-family: monospace"] {
        font-size: 14px !important;
        letter-spacing: 0.3px !important;
        word-break: break-all !important;
        overflow-wrap: break-word !important;
        line-height: 1.4 !important;
        padding: 10px !important;
    }
    
    /* IBAN text - make it more prominent */
    #payment-instructions-modal [style*="font-size: 16px"][style*="font-weight: 700"][style*="color: #059669"][style*="font-family: monospace"] > span {
        font-size: 18.5px !important;
        font-weight: 900 !important;
    }
    
    /* Copy button - same size as IBAN text */
    #copy-iban-btn {
        font-size: 14px !important;
        height: 32px !important;
        padding: 6px 10px !important;
    }
    
    /* Order reference - make it responsive */
    #payment-instructions-modal [style*="font-family: monospace"][style*="word-break: break-all"] {
        font-size: 12px !important;
        word-break: break-all !important;
        overflow-wrap: break-word !important;
        line-height: 1.5 !important;
    }
    
    /* Bank name and account name - make them responsive */
    #payment-instructions-modal [style*="font-size: 16px"][style*="font-weight: 600"][style*="color: #111827"] {
        font-size: 14px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.5 !important;
    }
    
    /* Copy IBAN button - smaller on mobile */
    #copy-iban-btn {
        width: 100% !important;
        margin-top: 8px !important;
        margin-left: 0 !important;
        padding: 4px 8px !important;
        font-size: 11px !important;
        height: 26px !important;
        line-height: 1 !important;
    }
    
    /* Close button - smaller on mobile */
    #payment-modal-close {
        width: 32px !important;
        height: 32px !important;
    }
    
    #payment-modal-close svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Modal content padding */
    #payment-instructions-modal [style*="background: #f9fafb"] {
        padding: 12px !important;
    }
    
    /* Modal title and content spacing */
    #payment-instructions-modal h2 {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }
    
    #payment-instructions-modal h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    /* Reduce spacing between elements */
    #payment-instructions-modal [style*="margin-bottom: 16px"] {
        margin-bottom: 12px !important;
    }
    
    #payment-instructions-modal [style*="margin-bottom: 24px"] {
        margin-bottom: 16px !important;
    }
    
    /* Close button positioning */
    #payment-modal-close {
        top: -8px !important;
        right: -8px !important;
    }
}

@media (max-width: 480px) {
    .final-total-card {
        padding: 18px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .final-total-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .final-total-label {
        font-size: 14px;
    }
    
    .final-total-value {
        font-size: 26px;
    }
    
    .final-total-value .currency-unit {
        font-size: 15px;
        margin-left: 6px;
    }
}

/* ============================================
   KATALOG MODÜLÜ - MODERN UI8 STYLE
   ============================================ */

/* Katalog Calculator Card - Main Container */
.katalog-calculator-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.katalog-calculator-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Katalog Header */
.katalog-header {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.katalog-title {
    font-size: 1.25rem !important; /* 20px - diğer modüllerle aynı */
    font-weight: 900 !important; /* Diğer modüllerle aynı */
    font-family: 'Inter', sans-serif !important;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    flex-wrap: wrap;
}

/* Katalog Body */
.katalog-body {
    padding: 32px;
}

/* Section Containers */
.katalog-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.katalog-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.katalog-section-inner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.katalog-section-cover {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
}

/* Section Title */
.katalog-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.katalog-section-title svg {
    color: #667eea;
}

.katalog-section-cover .katalog-section-title svg {
    color: #f97316;
}

/* Field Containers */
.katalog-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.katalog-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.katalog-field-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.katalog-field-grid-3.active {
    opacity: 1;
    pointer-events: auto;
}

/* Labels - Tüm Modüller İçin Ortak Stil */
.katalog-label,
label.block.text-sm.font-semibold,
label[class*="block"][class*="text-sm"][class*="font-semibold"],
label[for*="rulo"],
label[for*="dijital"],
label[for*="kartvizit"],
label[for*="brosur"],
label[for*="katalog"],
label[for*="paperSize"],
label[for*="pageCount"],
label[for*="quantity"],
label[for*="copyQuantity"],
label[for*="bindingType"] {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.katalog-field-wrapper:focus-within .katalog-label {
    color: #667eea;
}

/* Inputs */
.katalog-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.katalog-input:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.katalog-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    background: #ffffff;
}

/* Number input spinner buttons - show on all devices including mobile */
.ders-notu-calculator-wrapper input[type="number"] {
    position: relative !important;
    padding-right: 2.5rem !important;
}

.ders-notu-calculator-wrapper input[type="number"]::-webkit-inner-spin-button,
.ders-notu-calculator-wrapper input[type="number"]::-webkit-outer-spin-button {
    opacity: 0 !important;
    height: 50% !important;
    width: 24px !important;
    cursor: pointer !important;
    -webkit-appearance: inner-spin-button !important;
    appearance: inner-spin-button !important;
    position: absolute !important;
    right: 4px !important;
    margin: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
}

/* Upper spinner (up arrow) */
.ders-notu-calculator-wrapper input[type="number"]::-webkit-inner-spin-button {
    top: 0 !important;
    bottom: auto !important;
}

/* Lower spinner (down arrow) */
.ders-notu-calculator-wrapper input[type="number"]::-webkit-outer-spin-button {
    bottom: 0 !important;
    top: auto !important;
}

.ders-notu-calculator-wrapper input[type="number"]:focus::-webkit-inner-spin-button,
.ders-notu-calculator-wrapper input[type="number"]:focus::-webkit-outer-spin-button {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Mobile: Larger spinner buttons with more spacing */
@media (max-width: 768px) {
    /* Add more padding on the right for spinner buttons on mobile */
    .ders-notu-calculator-wrapper input[type="number"] {
        position: relative !important;
        padding-right: 50px !important;
    }
    
    .katalog-input[type="number"] {
        position: relative !important;
        padding-right: 50px !important;
    }
    
    .input-shared[type="number"] {
        position: relative !important;
        padding-right: 50px !important;
    }
    
    .ders-notu-calculator-wrapper input[type="number"]::-webkit-inner-spin-button,
    .ders-notu-calculator-wrapper input[type="number"]::-webkit-outer-spin-button {
        height: 50% !important;
        width: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        right: 6px !important;
        opacity: 0 !important;
        cursor: pointer !important;
        -webkit-appearance: inner-spin-button !important;
        appearance: inner-spin-button !important;
        pointer-events: none !important;
        transition: opacity 0.2s ease !important;
    }
    
    /* Upper spinner (up arrow) on mobile */
    .ders-notu-calculator-wrapper input[type="number"]::-webkit-inner-spin-button {
        top: 0 !important;
        bottom: auto !important;
    }
    
    /* Lower spinner (down arrow) on mobile */
    .ders-notu-calculator-wrapper input[type="number"]::-webkit-outer-spin-button {
        bottom: 0 !important;
        top: auto !important;
    }
    
    .ders-notu-calculator-wrapper input[type="number"]:focus::-webkit-inner-spin-button,
    .ders-notu-calculator-wrapper input[type="number"]:focus::-webkit-outer-spin-button {
        opacity: 1 !important;
        pointer-events: auto !important;
        display: block !important;
    }
    
    /* Make number inputs show focus state clearly on mobile */
    .ders-notu-calculator-wrapper input[type="number"]:focus,
    .katalog-input[type="number"]:focus,
    .input-shared[type="number"]:focus {
        border-color: #ff8300 !important;
        box-shadow: 0 0 0 3px rgba(255, 131, 0, 0.2) !important;
        outline: none !important;
    }
}

/* Ensure number inputs are editable and not readonly */
.ders-notu-calculator-wrapper input[type="number"]:not([readonly]):not([disabled]) {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    height: 48px;
    font-size: 16px;
}

.katalog-input::placeholder {
    color: #94a3b8;
}

/* Katalog Sayfa Sayısı Spinner Wrapper - WordPress Style */
.katalog-spinner-wrapper {
    position: relative;
    width: 100%;
}

.katalog-input-with-spinner {
    padding-right: 50px !important;
}

.katalog-spinner-controls {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    height: calc(100% - 4px);
    width: 24px;
    border-left: 1px solid #ddd;
    background: #f7f7f7;
    border-radius: 0 12px 12px 0;
}

.katalog-spinner-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #555;
    transition: all 0.15s ease;
    border-bottom: 1px solid #ddd;
    min-height: 0;
}

.katalog-spinner-btn:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 0;
}

.katalog-spinner-btn:first-child {
    border-radius: 0 12px 0 0;
}

.katalog-spinner-btn:hover {
    background: #f0f0f1;
    color: #2271b1;
}

.katalog-spinner-btn:active {
    background: #dcdcde;
    color: #135e96;
}

.katalog-spinner-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #a7aaad;
}

.katalog-spinner-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Focus state for input with spinner */
.katalog-input-with-spinner:focus {
    padding-right: 50px !important;
}

.katalog-input-with-spinner:focus + .katalog-spinner-controls {
    border-left-color: #667eea;
    background: #fafafa;
}

/* Hide default spinner for katalog input */
.katalog-input-with-spinner::-webkit-inner-spin-button,
.katalog-input-with-spinner::-webkit-outer-spin-button {
    display: none !important;
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.katalog-input-with-spinner {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .katalog-spinner-controls {
        width: 28px;
    }
    
    .katalog-input-with-spinner {
        padding-right: 54px !important;
    }
    
    .katalog-spinner-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Select Styling */
.katalog-select {
    width: 100%;
    height: 52px;
    padding: 0 40px 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    font-family: 'Inter', sans-serif;
}

.katalog-select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.katalog-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    background: #ffffff;
}

.katalog-select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* Toggle Wrapper */
.katalog-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.katalog-toggle-wrapper:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Toggle Switch - Enhanced - REMOVED: Duplicate styles, using Uiverse.io style above */

/* Results Card */
.katalog-results-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 32px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.katalog-results-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Results Header */
.katalog-results-header {
    margin-bottom: 28px;
}

.katalog-results-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.katalog-results-title svg {
    color: #667eea;
}

/* Metrics Grid */
.katalog-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

/* Metric Cards */
.katalog-metric-card {
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.katalog-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.katalog-metric-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.katalog-metric-emerald {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
}

.katalog-metric-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #d8b4fe;
}

.katalog-metric-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
}

.katalog-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.katalog-metric-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.katalog-metric-blue .katalog-metric-value {
    color: #2563eb;
}

.katalog-metric-emerald .katalog-metric-value {
    color: #059669;
}

.katalog-metric-purple .katalog-metric-value {
    color: #9333ea;
}

.katalog-metric-orange .katalog-metric-value {
    color: #ea580c;
}

/* Price Breakdown - UI8 Style */
.katalog-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 2px solid rgba(241, 245, 249, 0.8);
    border-bottom: 2px solid rgba(241, 245, 249, 0.8);
}

.katalog-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.katalog-price-row:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(203, 213, 225, 0.8);
}

.katalog-price-label {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}

.katalog-price-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.katalog-price-strikethrough {
    color: #6b7280 !important;
    text-decoration: line-through;
    text-decoration-color: #000000;
    text-decoration-thickness: 2px;
}

/* Detaylı Bilgiler Accordion - UI8 Style */
.katalog-details-accordion {
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.katalog-details-accordion:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.katalog-details-accordion-toggle {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.katalog-details-accordion-toggle:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.katalog-details-accordion-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.katalog-details-accordion-toggle[aria-expanded="true"] {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

/* Detaylı Bilgiler Başlığı - Tüm Modüller İçin Ortak Stil (Hesaplama Sonuçları ile Aynı) */
.katalog-details-accordion-title,
.rulo-details-label,
.dijital-details-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: normal;
}

.katalog-details-accordion-title svg,
.rulo-details-label svg,
.dijital-details-label svg {
    width: 20px;
    height: 20px;
    color: #667eea;
    flex-shrink: 0;
}

.katalog-details-accordion-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.katalog-details-accordion-toggle[aria-expanded="true"] .katalog-details-accordion-icon {
    transform: rotate(180deg);
}

.katalog-details-accordion-content {
    padding: 24px;
    background: #ffffff;
    animation: katalogAccordionSlideDown 0.3s ease-out;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.katalog-details-accordion-content[style*="display: none"] {
    animation: katalogAccordionSlideUp 0.3s ease-out;
}

@keyframes katalogAccordionSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@keyframes katalogAccordionSlideUp {
    from {
        opacity: 1;
        max-height: 1000px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Katalog Total Card - Now uses global final-total-card classes */
/* Kept for backward compatibility if needed */

/* Responsive Design */
@media (max-width: 768px) {
    .katalog-body {
        padding: 24px;
    }
    
    .katalog-section {
        padding: 20px;
    }
    
    .katalog-header {
        padding: 20px 24px;
    }
    
    .katalog-title {
        font-size: 18px;
    }
    
    .katalog-results-card {
        padding: 24px;
    }
    
    .katalog-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .katalog-metric-card {
        padding: 20px;
    }
    
    .katalog-metric-value {
        font-size: 24px;
    }
    
    .katalog-details-accordion {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .katalog-details-accordion-toggle {
        padding: 14px 16px;
    }
    
    .katalog-details-accordion-title,
    .rulo-details-label,
    .dijital-details-label {
        font-size: 18px;
    }
    
    .katalog-details-accordion-content {
        padding: 16px;
    }
    
    .katalog-total-value {
        font-size: 28px;
    }
    
    .katalog-field-grid,
    .katalog-field-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .katalog-body {
        padding: 16px;
    }
    
    .katalog-section {
        padding: 16px;
    }
    
    .katalog-header {
        padding: 16px 20px;
    }
    
    .katalog-title {
        font-size: 1.1rem !important;
    }
    
    .katalog-total-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Copy Type Toggle Switch Styles */
.copy-type-toggle-switch {
  /* switch */
  --switch-width: 46px;
  --switch-height: 24px;
  --switch-bg: rgb(131, 131, 131);
  --switch-checked-bg: #1676df;
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 18px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 6px;
  --icon-checkmark-color: var(--switch-checked-bg);
  --icon-checkmark-size: 10px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all 0.2s ease-in-out;
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.copy-type-toggle-switch input {
  display: none;
}

.copy-type-toggle-circle svg {
  -webkit-transition: var(--icon-transition);
  -o-transition: var(--icon-transition);
  transition: var(--icon-transition);
    position: absolute;
  top: 50%;
  left: 50%;
  height: auto;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.copy-type-toggle-circle .copy-type-toggle-checkmark {
  width: var(--icon-checkmark-size);
  height: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.copy-type-toggle-circle .copy-type-toggle-cross {
  width: var(--icon-cross-size);
  height: var(--icon-cross-size);
  color: var(--icon-cross-color);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.copy-type-toggle-slider {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transition: var(--switch-transition);
  -o-transition: var(--switch-transition);
  transition: var(--switch-transition);
  cursor: pointer;
}

.copy-type-toggle-circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
  border-radius: 50%;
  -webkit-box-shadow: var(--circle-shadow);
  box-shadow: var(--circle-shadow);
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  z-index: 1;
  position: absolute;
  left: var(--switch-offset);
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.copy-type-toggle-slider::before {
  content: "";
  position: absolute;
  width: var(--effect-width);
  height: var(--effect-height);
  left: calc(var(--switch-offset) + (var(--effect-width) / 2));
  background: var(--effect-bg);
  border-radius: var(--effect-border-radius);
  -webkit-transition: var(--effect-transition);
  -o-transition: var(--effect-transition);
  transition: var(--effect-transition);
}

/* actions */

.copy-type-toggle-switch input:checked + .copy-type-toggle-slider {
  background: var(--switch-checked-bg);
}

.copy-type-toggle-switch input:checked + .copy-type-toggle-slider .copy-type-toggle-circle .copy-type-toggle-checkmark {
  -webkit-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.copy-type-toggle-switch input:checked + .copy-type-toggle-slider .copy-type-toggle-circle .copy-type-toggle-cross {
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
}

.copy-type-toggle-switch input:checked + .copy-type-toggle-slider::before {
  left: calc(
    100% - var(--effect-width) - (var(--effect-width) / 2) -
      var(--switch-offset)
  );
}

.copy-type-toggle-switch input:checked + .copy-type-toggle-slider .copy-type-toggle-circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  -webkit-box-shadow: var(--circle-checked-shadow);
  box-shadow: var(--circle-checked-shadow);
}

.copy-type-toggle-switch input:focus + .copy-type-toggle-slider {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Container background color based on selection */
#copy-type-toggle-container.ders-notu-selected {
    background-color: #ff8300 !important;
    border-color: #ff8300 !important;
}

#copy-type-toggle-container.belge-kopya-selected {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* ============================================
   Module Video Modal Styles
   ============================================ */

/* Video Button in Module Header */
.module-video-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
}

.module-video-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.module-video-btn:active {
    transform: scale(0.95);
}

@media (max-width: 640px) {
    .module-video-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

/* Video Modal - Modern Glass Design */
.module-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999 !important; /* Highest z-index - above all buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.module-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 9999998 !important; /* Just below modal content */
}

.module-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px; /* Reduced for vertical videos */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 9999999 !important; /* Highest z-index - above all buttons */
    animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.module-video-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000000 !important; /* Highest - above everything */
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.module-video-modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.module-video-modal-close:active {
    transform: scale(0.95);
}

.module-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px; /* Limit width for vertical videos */
    margin: 0 auto;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical videos */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.module-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserve aspect ratio, show full video */
    border: none;
    outline: none;
}

@media (max-width: 768px) {
    .module-video-modal-content {
        width: 95%;
        padding: 16px;
        border-radius: 12px;
    }
    
    .module-video-modal-close {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    
    .module-video-wrapper {
        max-width: 100%;
        padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical videos */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ============================================
   Google Maps Modal Styles
   ============================================ */

/* Google Maps Modal - Modern Glass Design */
.google-maps-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999 !important; /* Highest z-index - above all buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.google-maps-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 9999998 !important; /* Just below modal content */
}

.google-maps-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px; /* Harita için daha geniş */
    height: 80vh;
    animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 700px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 9999999 !important; /* Highest z-index - above all buttons */
    animation: slideUp 0.3s ease;
}

.google-maps-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000000 !important; /* Highest - above everything */
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.google-maps-modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.google-maps-modal-close:active {
    transform: scale(0.95);
}

.google-maps-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.google-maps-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile responsive - Dikey video gibi tam ekran */
@media (max-width: 768px) {
    .google-maps-modal-content {
        width: 100% !important;
        height: 100vh !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    .google-maps-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        background: rgba(239, 68, 68, 0.9) !important;
        backdrop-filter: blur(10px);
    }
    
    .google-maps-wrapper {
        border-radius: 0 !important;
        height: 100% !important;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .google-maps-modal-content {
        width: 95%;
        height: 85vh;
        max-height: 800px;
    }
}

/* General Checkbox Checkmark Style */
input[type=checkbox]:checked::before {
    content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E) / '';
}

/* WordPress Login Modal Styles - Modern Glass Design */
.wp-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 9999999 !important; /* Highest z-index - above all buttons */
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.wp-login-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    margin: auto;
    animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-login-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000000 !important; /* Highest - above everything */
}

.wp-login-modal-close:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: scale(1.05);
}

.wp-login-modal-close:active {
    transform: scale(0.95);
}

.wp-login-modal-close svg {
    width: 20px;
    height: 20px;
    color: #374151;
}

/* Mobile optimizations for Samsung S24 */
@media (max-width: 768px) {
    .wp-login-modal {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .wp-login-modal-content {
        padding: 20px;
        max-width: 100%;
        margin-top: 0;
        border-radius: 12px;
    }
    
    .wp-login-modal-close {
        top: -10px;
        right: -10px;
        width: 40px;
        height: 40px;
    }
    
    .wp-login-modal-close svg {
        width: 18px;
        height: 18px;
    }
    
    .wp-login-modal-header img {
        max-width: 150px !important;
    }
    
    .wp-login-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 14px !important;
    }
    
    #wp-login-submit {
        min-height: 48px !important;
        font-size: 16px !important;
    }
    
    /* Login modal remember/forgot alignment */
    #wp-login-remember {
        width: 18px !important;
        height: 18px !important;
        margin-right: 8px !important;
        vertical-align: middle !important;
    }
    
    #wp-login-remember-text,
    #wp-login-forgot-link {
        line-height: 1.5 !important;
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
    }
    
    label[for="wp-login-remember"] {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Tasarım Desteği Modal - Modern Glass Design */
.design-support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999 !important; /* Highest z-index - above all buttons */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: fadeIn 0.3s ease;
}

.design-support-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.design-support-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 9999999 !important; /* Highest z-index - above all buttons */
    animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.design-support-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px 24px 0 0;
}

.design-support-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
}

.design-support-modal-close {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05);
}

.design-support-modal-close:hover {
    background: rgba(243, 244, 246, 0.95);
    color: #1e293b;
    transform: scale(1.05);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.design-support-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.3);
}

.design-support-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.design-support-form-group {
    margin-bottom: 0;
}

.design-support-form-group-full {
    grid-column: 1 / -1;
}

.design-support-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
}

.design-support-form-input,
.design-support-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.design-support-form-input:focus,
.design-support-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 2px 8px rgba(59, 130, 246, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.design-support-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.design-support-file-upload {
    border: 2px dashed rgba(209, 213, 219, 0.6);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(249, 250, 251, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.design-support-file-upload:hover {
    border-color: #3b82f6;
    background: rgba(239, 246, 255, 0.8);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.design-support-file-upload input[type="file"] {
    display: none;
}

.design-support-upload-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 6px;
    display: block;
    color: #9ca3af;
}

.design-support-upload-text {
    margin: 0 0 4px;
    font-size: 11px;
    color: #6b7280;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.design-support-upload-hint {
    margin: 0;
    font-size: 10px;
    color: #9ca3af;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.design-support-file-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.design-support-file-item {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.design-support-file-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.design-support-price-section {
    margin-top: 16px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.design-support-price-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.design-support-price-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.design-support-price-value .currency-unit {
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.design-support-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 24px 24px;
}

.design-support-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.design-support-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.design-support-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.design-support-btn-secondary {
    background: rgba(243, 244, 246, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #374151;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.design-support-btn-secondary:hover {
    background: rgba(229, 231, 235, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive adjustments for design support modal - Samsung S24 and similar devices */
@media (max-width: 768px) {
    .design-support-modal.active {
        padding: 8px;
        align-items: flex-start;
        padding-top: max(8px, env(safe-area-inset-top));
    }
    
    .design-support-modal-content {
        max-width: 100%;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px); /* Dynamic viewport height for mobile browsers */
        border-radius: 12px;
        margin-top: max(8px, env(safe-area-inset-top));
        margin-bottom: max(8px, env(safe-area-inset-bottom));
    }
    
    .design-support-modal-header {
        padding: 12px 16px;
    }
    
    .design-support-modal-title {
        font-size: 15px;
    }
    
    .design-support-modal-body {
        padding: 12px 16px;
    }
    
    .design-support-modal-footer {
        padding: 10px 16px;
    }
    
    .design-support-form-input,
    .design-support-form-textarea {
        font-size: 14px; /* Slightly larger for mobile touch */
        padding: 10px 12px;
    }
    
    .design-support-form-textarea {
        min-height: 100px;
    }
    
    .design-support-file-upload {
        padding: 16px 12px;
    }
}

/* Extra small devices - Samsung S24 vertical orientation optimization */
@media (max-width: 480px) and (max-height: 2400px) {
    .design-support-modal.active {
        padding: 4px;
        padding-top: max(4px, env(safe-area-inset-top));
    }
    
    .design-support-modal-content {
        max-height: calc(100vh - 8px);
        max-height: calc(100dvh - 8px);
        border-radius: 10px;
    }
    
    .design-support-modal-header {
        padding: 10px 12px;
    }
    
    .design-support-modal-title {
        font-size: 14px;
    }
    
    .design-support-modal-body {
        padding: 10px 12px;
    }
    
    .design-support-modal-footer {
        padding: 8px 12px;
    }
    
    .design-support-form-grid {
        gap: 10px;
    }
    
    .design-support-form-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .design-support-form-input,
    .design-support-form-textarea {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .design-support-form-textarea {
        min-height: 90px;
    }
    
    .design-support-file-upload {
        padding: 12px 10px;
    }
    
    .design-support-upload-text {
        font-size: 10px;
    }
    
    .design-support-upload-hint {
        font-size: 9px;
    }
    
    .design-support-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .design-support-price-section {
        padding: 10px;
        margin-top: 10px;
    }
    
    .design-support-price-label {
        font-size: 11px;
    }
    
    .design-support-price-value {
        font-size: 13px;
    }
}

/* PWA Install Banner Styles */
.awp-pwa-install-banner {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999998 !important;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
}

.awp-pwa-install-banner-show {
    transform: translateY(0);
}

.awp-pwa-install-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.awp-pwa-install-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.awp-pwa-install-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.awp-pwa-install-text p {
    margin: 0;
    font-weight: 500;
}

.awp-pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.awp-pwa-install-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    margin: 0px;
}

.awp-pwa-install-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.awp-pwa-install-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.awp-pwa-install-btn:hover::before {
    left: 100%;
}

.awp-pwa-install-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.awp-pwa-install-close {
    background: transparent;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.awp-pwa-install-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile styles for install banner */
@media (max-width: 768px) {
    .awp-pwa-install-banner {
        padding: 16px 16px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .awp-pwa-install-content {
        gap: 12px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .awp-pwa-install-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        display: none;
    }
    
    .awp-pwa-install-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .awp-pwa-install-text {
        font-size: 13px;
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    
    .awp-pwa-install-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .awp-pwa-install-btn {
        padding: 9px 18px;
        font-size: 13px;
        border-radius: 10px;
        white-space: nowrap;
        min-width: 80px;
        margin: 0px;
    }
    
    .awp-pwa-install-close {
        width: 28px;
        height: 28px;
        position: static;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
    }
    
    .awp-pwa-install-close:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .awp-pwa-install-banner {
        padding: 14px 12px 18px;
    }
    
    .awp-pwa-install-content {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .awp-pwa-install-icon {
        width: 32px;
        height: 32px;
        display: none;
    }
    
    .awp-pwa-install-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .awp-pwa-install-text {
        font-size: 12px;
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 4px;
    }
    
    .awp-pwa-install-actions {
        flex: 1 1 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .awp-pwa-install-btn {
        padding: 8px 20px;
        font-size: 13px;
        flex: 1;
        max-width: 180px;
        margin: 0px;
    }
    
    .awp-pwa-install-close {
        width: 32px;
        height: 32px;
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

/* PWA Floating Install Button Styles */
.awp-pwa-install-btn-floating {
    position: fixed !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    transition: all 0.3s ease;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.awp-pwa-install-btn-floating:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.awp-pwa-install-btn-floating:active {
    transform: translateY(0) scale(0.98);
}

.awp-pwa-install-btn-floating svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Position variants for Install Button */
.awp-pwa-install-btn-floating-bottom-left {
    bottom: 24px;
    left: 24px;
}

.awp-pwa-install-btn-floating-bottom-right {
    bottom: 24px;
    right: 24px;
}

.awp-pwa-install-btn-floating-top-left {
    top: 100px;
    left: 24px;
}

.awp-pwa-install-btn-floating-top-right {
    top: 100px;
    right: 24px;
}

/* Legacy position classes (backward compatibility) */
.awp-pwa-install-btn-floating-left {
    bottom: 24px;
    left: 24px;
}

.awp-pwa-install-btn-floating-right {
    bottom: 24px;
    right: 24px;
}

/* Mobile adjustments for floating install button */
@media (max-width: 768px) {
    .awp-pwa-install-btn-floating {
        width: 48px;
        height: 48px;
        box-shadow: 0 3px 12px rgba(102, 126, 234, 0.35);
    }
    
    .awp-pwa-install-btn-floating svg {
        width: 20px;
        height: 20px;
    }
    
    .awp-pwa-install-btn-floating-bottom-left,
    .awp-pwa-install-btn-floating-left {
        bottom: 20px;
        left: 16px;
    }
    
    .awp-pwa-install-btn-floating-bottom-right,
    .awp-pwa-install-btn-floating-right {
        bottom: 20px;
        right: 16px;
    }
    
    .awp-pwa-install-btn-floating-top-left {
        top: 80px;
        left: 16px;
    }
    
    .awp-pwa-install-btn-floating-top-right {
        top: 80px;
        right: 16px;
    }
}

/* PWA Share Button Styles */
.awp-pwa-share-btn {
    position: fixed !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 999998 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.awp-pwa-share-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.awp-pwa-share-btn:active {
    transform: translateY(0) scale(0.95);
}

.awp-pwa-share-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Position variants for Share Button */
.awp-pwa-share-btn-bottom-right {
    bottom: 24px;
    right: 14px;
}

.awp-pwa-share-btn-bottom-left {
    bottom: 24px;
    left: 24px;
}

.awp-pwa-share-btn-top-right {
    top: 100px;
    right: 5px;
}

.awp-pwa-share-btn-top-left {
    top: 100px;
    left: 24px;
}

/* Mobile adjustments for Share Button */
@media (max-width: 768px) {
    .awp-pwa-share-btn {
        width: 48px;
        height: 48px;
        box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
    }
    
    .awp-pwa-share-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .awp-pwa-share-btn-bottom-right {
        bottom: 20px;
        right: 16px;
    }
    
    .awp-pwa-share-btn-bottom-left {
        bottom: 20px;
        left: 16px;
    }
    
    .awp-pwa-share-btn-top-right {
        top: 80px;
        right: 0px;
    }
    
    .awp-pwa-share-btn-top-left {
        top: 80px;
        left: 16px;
    }
}

/* Stacking adjustments when both buttons are on the same side */
/* Bottom-left: Share button above install button */
.awp-pwa-share-btn-bottom-left ~ .awp-pwa-install-btn-floating-bottom-left,
.awp-pwa-share-btn-bottom-left ~ .awp-pwa-install-btn-floating-left {
    bottom: 90px;
}

/* Bottom-right: Share button above install button */
.awp-pwa-share-btn-bottom-right ~ .awp-pwa-install-btn-floating-bottom-right,
.awp-pwa-share-btn-bottom-right ~ .awp-pwa-install-btn-floating-right {
    bottom: 90px;
}

/* Top-left stacking */
.awp-pwa-share-btn-top-left ~ .awp-pwa-install-btn-floating-top-left {
    top: 166px;
}

/* Top-right stacking */
.awp-pwa-share-btn-top-right ~ .awp-pwa-install-btn-floating-top-right {
    top: 166px;
}

@media (max-width: 768px) {
    .awp-pwa-share-btn-bottom-left ~ .awp-pwa-install-btn-floating-bottom-left,
    .awp-pwa-share-btn-bottom-left ~ .awp-pwa-install-btn-floating-left {
        bottom: 80px;
    }
    
    .awp-pwa-share-btn-bottom-right ~ .awp-pwa-install-btn-floating-bottom-right,
    .awp-pwa-share-btn-bottom-right ~ .awp-pwa-install-btn-floating-right {
        bottom: 80px;
    }
    
    .awp-pwa-share-btn-top-left ~ .awp-pwa-install-btn-floating-top-left {
        top: 140px;
    }
    
    .awp-pwa-share-btn-top-right ~ .awp-pwa-install-btn-floating-top-right {
        top: 140px;
    }
}

