/* Combo steps: enforce vertical stacking below 1000px and visual disable state */
@media (max-width: 1000px) {
    #comboContent .row > .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    #comboContent #step-digital {
        margin-top: 16px;
    }
}

#comboContent .step-card.step-disabled {
    opacity: 0.6;
}
#comboContent .step-card.step-disabled .combo-selection-grid,
#comboContent .step-card.step-disabled .combo-option {
    pointer-events: none;
}
/* Hero Banner - Responsive */
.hero-banner {
    width: 100%;
    margin-bottom: 3rem;
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-banner-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

/* Responsive adjustments for banner */
@media (max-width: 770px) {
    .hero-banner {
        margin-top: 3em; /* Space between header and banner on mobile */
        margin-bottom: 2rem;
        border-radius: 8px;
    }
    
    .hero-banner-image {
        max-height: 300px;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        margin-bottom: 1.5rem;
    }
    
    .hero-banner-image {
        max-height: 250px;
        border-radius: 8px;
    }
}

/* Legacy hero typography - kept for backward compatibility if needed elsewhere */
.hero-title {
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    font-size: clamp(28px, 4vw, 56px);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: #6c757d;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 20px);
}

/* Responsive heading container */
.text-center.mb-5 {
    margin-bottom: 3rem !important;
}

@media (max-width: 768px) {
    .text-center.mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .hero-title {
        font-size: clamp(24px, 5vw, 36px);
    }
    
    .hero-subtitle {
        font-size: clamp(13px, 3vw, 16px);
    }
}

@media (max-width: 576px) {
    .text-center.mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .hero-title {
        font-size: clamp(20px, 6vw, 28px);
    }
    
    .hero-subtitle {
        font-size: clamp(12px, 3.5vw, 14px);
    }
}

/* Category header base */
.category-toggle {
    position: relative;
    padding-right: 45px; /* space for chevron */
}
/* Semerkand Subscription System Custom Styles */

:root {
    --primary-color: #00aeba;
    --primary-dark: #2a7a96;
    --primary-light: #5ba8c7;
    --background-color: #FFFFFF;
    --text-color: #495057;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 0.125rem 0.25rem rgba(51, 144, 180, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(51, 144, 180, 0.15);
    --transition: all 0.3s ease;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Sticky Footer Pattern - footer always at bottom when content is short, below content when long */
.footer {
    width: 100%;
    margin-top: auto; /* Push footer to bottom when content is short */
    flex-shrink: 0; /* Prevent footer from shrinking */
    padding-top: 0 !important; /* Remove padding, use margin-top instead */
    margin-top: 3em !important; /* Visual separation from main content */
}

/* Add spacing above footer - always add margin for visual separation */
main.flex-fill {
    padding-bottom: 0;
    margin-bottom: 0; /* No margin-bottom, footer has margin-top instead */
}

/* Cart page footer spacing - ensure footer appears below sticky cart actions */
body:has(.cart-actions-sticky) .footer {
    margin-top: 6rem; /* Extra space for sticky cart actions */
}

@media (max-width: 768px) {
    body:has(.cart-actions-sticky) .footer {
        margin-top: 8rem; /* More space on mobile for sticky cart actions */
    }
}

/* Custom Primary Color Theme */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Cart page header spacing */
.cart-header-top {
    margin-top: 1.5em;
}

.btn-primary:focus, .btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(51, 144, 180, 0.25);
}

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

/* Order Summary Header - Price should be white */
#orderSummaryHeader .text-primary,
#orderSummaryHeader .total-preview {
    color: white !important;
}

.section-header .text-primary,
.section-header .total-preview {
    color: white !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Card Styling */
/* Product Grid - Ensure equal heights */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(51, 144, 180, 0.1);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.card-header h3, .card-header h4, .card-header h5 {
    color: white;
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.card-header .btn-link {
    color: white !important;
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: 700;
}

.card-header .btn-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Larger icons inside card headers */
.card-header i.fas, .card-header i.far, .card-header i.fa {
    font-size: 1.25rem;
}

/* Extra spacing between icons and titles inside card headers */
.card-header .btn-link i,
.card-header h3 i,
.card-header h4 i,
.card-header h5 i {
    margin-right: 0.6rem; /* increase from default me-2 spacing if not present */
}

/* Increase icon spacing on smaller screens */
@media (max-width: 575px) {
    .card-header .btn-link i,
    .card-header h3 i,
    .card-header h4 i,
    .card-header h5 i {
        margin-right: 0.9rem !important; /* More space on small screens for better readability */
    }
}

/* Product Cards - Balanced and Responsive */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid rgba(51, 144, 180, 0.15);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-3px);
}

.product-card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.product-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    /* Fixed height for title - max 2 lines */
    min-height: 2.6em;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Product Images - Responsive */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
    background: #ffffff;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

/* Product Image Placeholder */
.product-image-placeholder {
    height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(51, 144, 180, 0.06), rgba(51, 144, 180, 0.03));
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.product-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.combo-placeholder {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    color: #28a745;
}

/* Mobile Responsive - Product Cards */
@media (max-width: 768px) {
    .product-image-wrapper,
    .product-image-placeholder {
        height: 220px;
    }
    
    .product-card .card-body {
        padding: 0.875rem;
        gap: 0.5rem;
    }
    
    .product-card .card-title {
        font-size: 0.95rem;
        min-height: 2.6em;
        max-height: 2.6em;
    }
    
    .product-card .card-text {
        font-size: 0.8rem;
        min-height: 3.2em;
        max-height: 3.2em;
        -webkit-line-clamp: 2;
    }
    
    .product-header {
        min-height: 3.5em;
        max-height: 3.5em;
        gap: 0.3rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .product-header .card-title {
        font-size: 0.95rem;
    }
    
    .product-header .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 720px) {
    /* Stack badges vertically but maintain consistent height */
    .product-header {
        display: block;
        min-height: 4.5em;
        max-height: 4.5em;
        overflow: hidden;
    }
    
    .product-header .card-title {
        display: block;
        margin-bottom: 0.4rem;
        min-height: 2.6em;
        max-height: 2.6em;
    }
    
    .product-header .badge {
        display: inline-block;
        margin-right: 0.25rem;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 576px) {
    .product-image-wrapper,
    .product-image-placeholder {
        height: 200px;
    }
    
    .product-card .card-body {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        min-height: 2.6em;
        max-height: 2.6em;
    }
    
    .product-card .card-text {
        font-size: 0.75rem;
        min-height: 2.8em;
        max-height: 2.8em;
        -webkit-line-clamp: 2;
    }
    
    .product-header {
        display: block;
        min-height: 4.5em;
        max-height: 4.5em;
        overflow: hidden;
    }
    
    .product-header .card-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
        min-height: 2.4em;
        max-height: 2.4em;
    }
    
    .product-header .badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.35rem;
        display: inline-block;
        margin-right: 0.2rem;
        margin-bottom: 0.2rem;
    }
    
    .language-badge,
    .digital-badge,
    .combo-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 460px) {
    /* Maintain consistent height even when stacked */
    .product-header {
        display: block;
        min-height: 5em;
        max-height: 5em;
        overflow: hidden;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
        min-height: 2.6em;
        max-height: 2.6em;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-header .card-title {
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }
    
    .product-header .badge {
        display: inline-block;
        margin-right: 0.25rem;
        margin-bottom: 0.1rem;
    }
    
    .product-card .card-text {
        min-height: 2.8em;
        max-height: 2.8em;
        -webkit-line-clamp: 2;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .product-image-wrapper,
    .product-image-placeholder {
        height: 180px;
    }
    
    .product-card .card-body {
        padding: 0.65rem;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
        line-height: 1.3;
        min-height: 2.6em;
        max-height: 2.6em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-card .card-text {
        font-size: 0.7rem;
        min-height: 2.8em;
        max-height: 2.8em;
        -webkit-line-clamp: 2;
    }
    
    .product-header {
        display: block;
        min-height: 4.5em;
        max-height: 4.5em;
        overflow: hidden;
    }
    
    .product-header .card-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 0.35rem;
    }
    
    .product-header .badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
        display: inline-block;
        margin-right: 0.15rem;
        margin-bottom: 0.1rem;
    }
}

/* Product Header - Fixed Height for Consistency */
.product-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 4em;
    max-height: 4em;
    overflow: hidden;
}

.product-header .card-title {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge container - keep badges in a row */
.product-header .badge {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Card text description - fixed height */
.product-card .card-text {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
    /* Fixed height for description - max 3 lines */
    min-height: 3.6em;
    max-height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Product actions container - always at bottom */
.product-card .mt-auto {
    margin-top: auto !important;
}

.product-card .product-actions {
    width: 100%;
}

.product-card .product-actions .btn {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: keep-all;
}

/* Badges - Consistent styling */
.language-badge,
.digital-badge,
.combo-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.digital-badge {
    background-color: #17a2b8 !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.combo-badge {
    background-color: #28a745 !important;
}

/* Product Actions */
.product-actions {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(51, 144, 180, 0.1);
}

/* MT-Auto spacing control */
.product-card .mt-auto {
    margin-top: 0.5rem !important;
    max-height: 50px;
}

/* Description spacing */
.product-card .card-text {
    line-height: 1.3;
}

.product-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    padding: 0.6rem 0.9rem; /* unify padding across cards */
}

.product-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card .price-info {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 144, 180, 0.1);
}

.product-card .monthly-price,
.product-card .yearly-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.combo-package {
    border: 2px solid #28a745;
}

.combo-package .card-title {
    color: #28a745;
}

/* Subscription Category Styling */
#subscriptionAccordion .subscription-category .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    width: 100%;
    height: 80px; /* Fixed height for all card headers */
    min-height: 80px;
    max-height: 80px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Ensure button inside card-header fills the space */
#subscriptionAccordion .subscription-category .card-header .category-toggle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    padding-right: 180px; /* Keep space for badge */
}

/* Place chevron icon at the absolute far right inside the button */
#subscriptionAccordion .subscription-category .card-header .category-toggle .chevron-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.95;
}

/* Responsive: 770px and below - adjust category-toggle padding */
@media (max-width: 770px) {
    #subscriptionAccordion .subscription-category .card-header .category-toggle {
        padding-right: 120px; /* Less space for badge on mobile */
    }
}

/* Ensure h3 inside card-header doesn't affect height */
#subscriptionAccordion .subscription-category .card-header h3 {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Responsive: 770px and below - optimize for mobile */
@media (max-width: 770px) {
    #subscriptionAccordion .subscription-category .card-header {
        padding: 0.75rem 1rem; /* Keep balanced padding */
        height: 75px; /* Slightly smaller but still comfortable */
        min-height: 75px;
        max-height: 75px;
    }
    
    /* Adjust font sizes inside header for better fit */
    #subscriptionAccordion .subscription-category .card-header h3 {
        font-size: 0.95rem;
    }
    
    #subscriptionAccordion .subscription-category .card-header .category-toggle {
        font-size: 0.95rem;
    }
}

.subscription-category .collapse {
    transition: var(--transition);
}

/* Cart Item Styling */
.cart-item {
    padding: 1rem;
    background: rgba(51, 144, 180, 0.02);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cart-item:hover {
    background: rgba(51, 144, 180, 0.05);
}

.cart-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
}

/* Payment Option Styling */
.payment-option {
    background: white;
    border: 2px solid rgba(51, 144, 180, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    position: relative;
}

.payment-option .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    margin-right: 0.75rem;
    border: 2px solid rgba(51, 144, 180, 0.3);
    cursor: pointer;
}

.payment-option .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(51, 144, 180, 0.25);
    border-color: var(--primary-color);
}

.payment-option:focus-within {
    border-color: var(--primary-color);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.payment-option .form-check-label {
    cursor: pointer;
    width: 100%;
    display: block;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: rgba(51, 144, 180, 0.02);
}

.payment-option:has(input[type="radio"]:checked),
.payment-option.selected {
    border-color: var(--primary-color);
    background: rgba(51, 144, 180, 0.05);
    box-shadow: 0 2px 8px rgba(51, 144, 180, 0.15);
}

/* Fallback for browsers that don't support :has() */
.payment-option input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

.payment-option input[type="radio"]:checked ~ .payment-option-content h6 {
    color: var(--primary-color);
    font-weight: 700;
}

.payment-option-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-option:has(input[type="radio"]:checked) .payment-option-content h6,
.payment-option.selected .payment-option-content h6 {
    color: var(--primary-color);
    font-weight: 700;
}

.payment-option:has(input[type="radio"]:checked) .form-check-input,
.payment-option.selected .form-check-input {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid rgba(51, 144, 180, 0.2);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(51, 144, 180, 0.25);
}

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

/* Emphasize first/last name fields on checkout */
/* Remove heavy per-field emphasis; unify styling section-wide */

/* Emphasize entire customer and shipping sections */
.emphasize-section .form-label {
    color: var(--primary-dark);
    font-weight: 600;
}

.emphasize-section .form-control,
.emphasize-section .form-select {
    border: 1px solid rgba(51, 144, 180, 0.35);
    border-radius: 8px;
    background: #ffffff;
}

.emphasize-section .form-control:focus,
.emphasize-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(51, 144, 180, 0.2);
}

.emphasize-section .form-control::placeholder {
    color: #9aa3aa;
}

/* Button Styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1.5rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Breadcrumb Styling */
.breadcrumb {
    background: rgba(51, 144, 180, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Order Summary Styling */
.order-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(51, 144, 180, 0.1);
}

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

/* Badge Styling */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

.badge.bg-secondary {
    background-color: var(--text-muted) !important;
}

/* Table Styling */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: rgba(51, 144, 180, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
}

.table td {
    border-color: rgba(51, 144, 180, 0.1);
    vertical-align: middle;
}

/* Alert Styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-info {
    background-color: rgba(51, 144, 180, 0.1);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

/* Quantity Input Styling */
.quantity-input {
    max-width: 70px;
}

.input-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(51, 144, 180, 0.25);
}

/* Single column for very small screens (below 350px) */
@media (max-width: 349px) {
    .col-xl-3, .col-lg-4, .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* 2 Column Grid: 350px to 770px - FORCE 2 COLUMNS */
@media (min-width: 350px) and (max-width: 770px) {
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    .col-xl-3, .col-lg-4, .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* E-dergi ve Combo paketler için mobil düzenleme */
    #digitalContent .col-xl-3,
    #digitalContent .col-lg-4,
    #digitalContent .col-md-6,
    #comboContent .col-xl-3,
    #comboContent .col-lg-4,
    #comboContent .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #digitalContent .product-card,
    #comboContent .product-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    /* General spacing improvements */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Product Cards - Better spacing */
    .product-card {
        max-height: none;
        margin-bottom: 1rem;
        height: auto;
        overflow: hidden;
    }
    
    .product-card .card-body {
        padding: 0.75rem;
        min-height: auto;
        gap: 0.5rem;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .product-card .mt-auto {
        margin-top: auto !important;
        max-height: none;
        flex-shrink: 0;
    }
    
    .product-image-wrapper {
        height: 150px;
        flex-shrink: 0;
    }
    
    .product-image-placeholder {
        height: 150px;
    }
    
    .product-image-placeholder i {
        font-size: 2rem;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        flex-shrink: 0;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .product-header .card-title {
        margin-right: 0;
        font-size: 0.95rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        width: 100%;
    }
    
    .language-badge,
    .digital-badge,
    .combo-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Product Prices - Mobil için optimize */
    .product-prices {
        flex-shrink: 0;
        margin-bottom: 0.5rem;
    }
    
    .product-prices small {
        font-size: 0.8rem;
    }
    
    .product-prices strong {
        font-size: 0.9rem;
    }
    
    .product-actions .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* E-dergi ve Combo paketler için özel düzenlemeler */
    #digitalContent .product-card,
    #comboContent .product-card {
        max-height: none;
    }
    
    #digitalContent .product-card .card-body,
    #comboContent .product-card .card-body {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    #digitalContent .product-header,
    #comboContent .product-header {
        margin-bottom: 0.25rem;
    }
    
    #digitalContent .product-prices,
    #comboContent .product-prices {
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .payment-option {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .payment-option .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Better touch targets */
    .btn, .form-control, .form-select {
        min-height: 44px;
    }
    
    /* E-dergi ve Combo paketler için 578px altı - 2 sütun olarak kalacak */
    @media (max-width: 578px) {
        #digitalContent .col-xl-3,
        #digitalContent .col-lg-4,
        #digitalContent .col-md-6,
        #comboContent .col-xl-3,
        #comboContent .col-lg-4,
        #comboContent .col-md-6 {
            flex: 0 0 50% !important;
            max-width: 50% !important;
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }
        
        #digitalContent .product-card .card-body,
        #comboContent .product-card .card-body {
            padding: 0.75rem;
        }
        
        #digitalContent .product-header .card-title,
        #comboContent .product-header .card-title {
            font-size: 0.85rem;
        }
        
        #digitalContent .product-prices,
        #comboContent .product-prices {
            font-size: 0.8rem;
        }
        
        #digitalContent .product-actions .btn,
        #comboContent .product-actions .btn {
            font-size: 0.75rem;
            padding: 0.4rem 0.6rem;
        }
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message-success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #28a745;
    margin-bottom: 1rem;
}

.message-error {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #dc3545;
    margin-bottom: 1rem;
}


/* Footer Sticky */
.min-vh-100 {
    min-height: 100vh;
}

/* Scroll behavior improvement */
.subscription-category .collapse {
    transition: all 0.3s ease-in-out;
}

/* Prevent jump to center when accordion opens */
.subscription-category .card-header button {
    outline: none;
    box-shadow: none;
}

.subscription-category .card-header button:focus {
    box-shadow: none;
}

/* Language Dropdown - Simple navbar dropdown that opens to the right */
.dropdown-menu-start {
    left: 0 !important;
    right: auto !important;
    transform-origin: top left;
}

.dropdown-menu {
    border: 1px solid rgba(51, 144, 180, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(51, 144, 180, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: white;
    min-width: 180px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    background: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(51, 144, 180, 0.1), transparent);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item:active {
    background: rgba(51, 144, 180, 0.2);
    color: var(--primary-color);
}

.dropdown-item:focus {
    background: rgba(51, 144, 180, 0.1);
    color: var(--primary-color);
    outline: none;
}

/* Enhanced Language Selector */
.language-selector {
    background: linear-gradient(135deg, rgba(51, 144, 180, 0.08), rgba(51, 144, 180, 0.04));
    border: 1px solid rgba(51, 144, 180, 0.15);
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    backdrop-filter: blur(5px);
}

.language-selector:hover {
    background: linear-gradient(135deg, rgba(51, 144, 180, 0.15), rgba(51, 144, 180, 0.08));
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 144, 180, 0.2);
}

.language-selector:focus {
    box-shadow: 0 0 0 3px rgba(51, 144, 180, 0.2);
    outline: none;
    border-color: var(--primary-color);
}

/* Bootstrap dropdown-toggle already provides the chevron icon */

/* Pricing Summary */
.pricing-summary .pricing-card {
    position: relative;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-summary .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(51, 144, 180, 0.15);
    border-color: var(--primary-color);
}

.pricing-summary .pricing-card.highlight {
    border-color: #28a745;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.15);
}

.pricing-summary .pricing-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-summary .pricing-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pricing-summary .pricing-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-summary .pricing-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.pricing-summary .pricing-note {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Combo Selection Styles - Improved Design */
.combo-info-card {
    background: linear-gradient(135deg, rgba(51, 144, 180, 0.1), rgba(51, 144, 180, 0.05));
    border: 1px solid rgba(51, 144, 180, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.combo-price {
    text-align: right;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Step Cards */
.combo-steps {
    margin-bottom: 2rem;
}

.step-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.step-card.completed {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
}

.step-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-card.completed .step-number {
    background: #28a745;
}

.step-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.step-content {
    padding: 1rem;
}

/* Improved Selection Grid */
.combo-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}

.combo-option {
    cursor: pointer;
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: white;
    position: relative;
}

.combo-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(51, 144, 180, 0.15);
    border-color: var(--primary-color);
}

.combo-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(51, 144, 180, 0.1), rgba(51, 144, 180, 0.05));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(51, 144, 180, 0.25);
}

.combo-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.combo-option-image {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.combo-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo-option-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 1.8rem;
}

.combo-option-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    word-break: break-word;
    margin-bottom: 0.5rem;
}

.combo-option-price {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(51, 144, 180, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* Summary Card */
.combo-summary-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.selection-item {
    margin-bottom: 1rem;
}

.price-calculation {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 1rem;
}

.price-breakdown {
    font-size: 0.9rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.price-item.savings {
    color: #28a745;
    font-weight: 600;
}

/* Add Button */
.combo-add-btn {
    min-width: 300px;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.combo-add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.combo-add-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Cart Combo Package Styling */
.cart-item-modern .product-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.cart-item-modern .combo-description {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 500;
}

.cart-item-modern .combo-description::before {
    content: "📦 ";
    margin-right: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .combo-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        max-height: 300px;
    }
    
    .combo-option-image {
        width: 60px;
        height: 60px;
    }
    
    .combo-add-btn {
        min-width: 250px;
        font-size: 1rem;
    }
}

/* Language Dropdown Menu */
.language-dropdown {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(51, 144, 180, 0.25);
    padding: 0.75rem 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
}

/* Enhanced Cart Link */
.cart-link {
    background: linear-gradient(135deg, rgba(51, 144, 180, 0.08), rgba(51, 144, 180, 0.04));
    border: 1px solid rgba(51, 144, 180, 0.15);
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    text-decoration: none;
    backdrop-filter: blur(5px);
    position: relative;
}

.cart-link:hover {
    background: linear-gradient(135deg, rgba(51, 144, 180, 0.15), rgba(51, 144, 180, 0.08));
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 144, 180, 0.2);
    text-decoration: none;
}

.cart-icon-wrapper {
    position: static; /* allow badge to anchor to parent cart-link */
    display: inline-flex;
    align-items: center;
}

.cart-icon-wrapper .fas.fa-shopping-cart {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cart-link:hover .fas.fa-shopping-cart {
    transform: scale(1.1);
}

/* Enhanced Cart Badge */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

/* Cart Icon Animations */
.cart-icon-wrapper.adding-item {
    animation: cartAddItemShake 0.8s ease-in-out;
}

.cart-icon-wrapper.adding-item .fas.fa-shopping-cart {
    animation: cartIconGlow 0.8s ease-in-out;
}

.cart-badge.item-added {
    animation: cartBadgeExplode 0.8s ease-in-out;
}

/* Creative Cart Add Animation - Shake + Glow */
@keyframes cartAddItemShake {
    0% { transform: scale(1) rotate(0deg); }
    10% { transform: scale(1.1) rotate(-5deg); }
    20% { transform: scale(1.15) rotate(5deg); }
    30% { transform: scale(1.1) rotate(-3deg); }
    40% { transform: scale(1.2) rotate(3deg); }
    50% { transform: scale(1.15) rotate(-2deg); }
    60% { transform: scale(1.1) rotate(2deg); }
    70% { transform: scale(1.05) rotate(-1deg); }
    80% { transform: scale(1.02) rotate(1deg); }
    90% { transform: scale(1.01) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Cart Icon Glow Effect */
@keyframes cartIconGlow {
    0% { 
        color: inherit;
        filter: drop-shadow(0 0 0px transparent);
    }
    25% { 
        color: var(--primary-color);
        filter: drop-shadow(0 0 8px rgba(51, 144, 180, 0.6));
    }
    50% { 
        color: #28a745;
        filter: drop-shadow(0 0 12px rgba(40, 167, 69, 0.8));
    }
    75% { 
        color: var(--primary-color);
        filter: drop-shadow(0 0 8px rgba(51, 144, 180, 0.6));
    }
    100% { 
        color: inherit;
        filter: drop-shadow(0 0 0px transparent);
    }
}

/* Badge Explode Animation */
@keyframes cartBadgeExplode {
    0% { 
        transform: scale(1);
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
    20% { 
        transform: scale(0.8);
        background: linear-gradient(135deg, #f39c12, #e67e22);
        box-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
    }
    40% { 
        transform: scale(1.6);
        background: linear-gradient(135deg, #28a745, #20c997);
        box-shadow: 0 0 25px rgba(40, 167, 69, 0.9);
    }
    60% { 
        transform: scale(1.2);
        background: linear-gradient(135deg, #17a2b8, #138496);
        box-shadow: 0 0 15px rgba(23, 162, 184, 0.7);
    }
    80% { 
        transform: scale(1.1);
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        box-shadow: 0 2px 12px rgba(231, 76, 60, 0.6);
    }
    100% { 
        transform: scale(1);
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
}

/* Fallback animations */
.cart-badge.animate-bounce {
    animation: cartBadgeBounce 0.6s ease-in-out;
}

@keyframes cartBadgeBounce {
    0%, 20%, 50%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.3); }
    60% { transform: scale(1.15); }
}

@keyframes pulse {
    0% { box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 2px 15px rgba(231, 76, 60, 0.6); }
    100% { box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4); }
}

/* Additional floating effect for cart link */
.cart-link.item-adding {
    animation: cartLinkFloat 0.8s ease-in-out;
}

@keyframes cartLinkFloat {
    0% { transform: translateY(0px); }
    25% { transform: translateY(-3px); }
    50% { transform: translateY(-5px); }
    75% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

/* Flying Product Animation */
.flying-product {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    animation: flyToCart 1.2s ease-out forwards;
}

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

/* Particle effect for cart add */
.cart-particles {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
}

.particle:nth-child(1) { animation: particleExplode 0.8s ease-out forwards; }
.particle:nth-child(2) { animation: particleExplode 0.8s ease-out 0.1s forwards; }
.particle:nth-child(3) { animation: particleExplode 0.8s ease-out 0.2s forwards; }
.particle:nth-child(4) { animation: particleExplode 0.8s ease-out 0.3s forwards; }
.particle:nth-child(5) { animation: particleExplode 0.8s ease-out 0.1s forwards; }
.particle:nth-child(6) { animation: particleExplode 0.8s ease-out 0.2s forwards; }
.particle:nth-child(7) { animation: particleExplode 0.8s ease-out 0.3s forwards; }
.particle:nth-child(8) { animation: particleExplode 0.8s ease-out 0.4s forwards; }

@keyframes particleExplode {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) translate(var(--end-x, 0), var(--end-y, 0));
    }
    100% {
        opacity: 0;
        transform: scale(0) translate(calc(var(--end-x, 0) * 1.5), calc(var(--end-y, 0) * 1.5));
    }
}

/* Mobile Cart Icon */
@media (max-width: 768px) {
    .cart-text {
        display: none !important;
    }
    
    .cart-link {
        padding: 10px;
        min-width: 45px;
        justify-content: center;
    }
    
    .language-selector {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Session Warning Toast */
.session-warning-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    min-width: 350px;
    max-width: 450px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.session-warning-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.session-warning-toast .toast-content.warning {
    display: flex;
    align-items: center;
    color: #856404;
}

.session-warning-toast .toast-content.warning i {
    color: #856404;
}

.session-warning-toast .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 0.875rem;
}

.session-warning-toast .toast-close {
    background: none;
    border: none;
    color: #856404;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.session-warning-toast .toast-close:hover {
    color: #5a4a00;
}

#languageDropdown:focus {
    box-shadow: 0 0 0 3px rgba(51, 144, 180, 0.2);
    outline: none;
    text-decoration: none;
}

/* Remove Bootstrap dropdown arrow, add custom animation */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ===== AJAX CART STYLES ===== */

/* Enhanced Add to Cart Button */
.add-to-cart-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(51, 144, 180, 0.3);
    overflow: hidden;
}

/* Responsive button sizing */
@media (max-width: 768px) {
    .add-to-cart-btn,
    .btn-primary,
    .btn-success,
    .btn-info,
    .btn-warning,
    .btn-danger {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .btn i {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .add-to-cart-btn,
    .btn-primary,
    .btn-success,
    .btn-info,
    .btn-warning,
    .btn-danger {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .btn i {
        font-size: 0.8rem;
        margin-right: 4px !important;
    }
}

@media (max-width: 500px) {
    /* Critical breakpoint for button text overflow */
    .add-to-cart-btn,
    .btn-primary,
    .btn-success,
    .btn-info,
    .btn-warning,
    .btn-danger {
        padding: 7px 8px;
        font-size: 0.75rem;
        line-height: 1.3;
        white-space: normal;
        min-height: 36px;
        word-wrap: break-word;
    }
    
    .product-card .product-actions .btn {
        font-size: 0.72rem;
        padding: 8px 6px;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
        letter-spacing: 0;
    }
    
    .product-card .product-actions .btn span {
        display: inline;
        word-break: break-word;
        hyphens: auto;
    }
    
    .btn-lg {
        padding: 9px 12px;
        font-size: 0.85rem;
        white-space: normal;
    }
    
    .btn i {
        font-size: 0.7rem;
        margin-right: 3px !important;
        flex-shrink: 0;
    }
}

@media (max-width: 400px) {
    .add-to-cart-btn,
    .btn-primary,
    .btn-success,
    .btn-info,
    .btn-warning,
    .btn-danger {
        padding: 6px 6px;
        font-size: 0.68rem;
        letter-spacing: 0;
        line-height: 1.3;
        white-space: normal;
        min-height: 34px;
        word-wrap: break-word;
    }
    
    .product-card .product-actions .btn {
        font-size: 0.68rem;
        padding: 7px 5px;
        line-height: 1.2;
        white-space: normal;
        letter-spacing: -0.02em;
    }
    
    .product-card .product-actions .btn span {
        display: inline;
        word-break: break-word;
        hyphens: auto;
    }
    
    .btn-lg {
        padding: 8px 10px;
        font-size: 0.75rem;
        white-space: normal;
    }
    
    .btn i {
        font-size: 0.65rem;
        margin-right: 2px !important;
        flex-shrink: 0;
    }
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 144, 180, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(51, 144, 180, 0.3);
}

/* Loading button styles */
.add-to-cart-btn.loading {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn.loading:hover {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    transform: none;
}

.add-to-cart-btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Button icon styles */
.add-to-cart-btn i {
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover i {
    transform: scale(1.1);
}

/* Success button animation */
.add-to-cart-btn.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    border: none !important;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cart counter animation */
#cart-counter.animate-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Toast notifications - Bottom Center */
.cart-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    min-width: 320px;
    max-width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    opacity: 0;
}

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

.cart-toast.toast-success {
    border-left: 4px solid #28a745;
}

.cart-toast.toast-error {
    border-left: 4px solid #dc3545;
}

.cart-toast.toast-warning {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
}

.cart-toast.toast-warning .toast-content i {
    color: #856404;
}

.toast-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-content i:first-child {
    color: #28a745;
}

.toast-error .toast-content i:first-child {
    color: #dc3545;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.toast-close:hover {
    color: #333;
}

/* Mini cart preview removed */

/* Button success state */
.add-to-cart-btn.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* ===== MODERN CART PAGE STYLES - Row Layout ===== */

/* Cart Items Container - Ensure enough space for sticky footer */
.cart-items-container {
    margin-bottom: 0;
    padding-bottom: 180px; /* Extra space to prevent overlap with sticky footer */
    min-height: calc(100vh - 300px); /* Ensure minimum height for proper scrolling */
}

/* Cart Item Row - Trendyol Style (Desktop 770px+) */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    background: white;
}

.cart-item-row:hover {
    background-color: #fafafa;
}

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

/* Photo - Compact */
.cart-item-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #adb5bd;
}

/* Info - Name + Badges */
.cart-item-info {
    flex: 1;
    min-width: 200px;
}

.cart-item-title {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.cart-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cart-item-badges .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Quantity - Compact */
.cart-item-quantity {
    flex-shrink: 0;
    width: 110px;
}

.cart-item-quantity .input-group {
    max-width: 110px;
}

.cart-item-quantity .btn {
    padding: 0.35rem 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
}

    .cart-item-quantity .form-control {
        max-width: 40px;
        font-weight: 600;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .cart-item-quantity .quantity-controls {
        max-width: 110px;
    }
    
    .cart-item-quantity .quantity-display {
        min-width: 40px;
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

/* New quantity controls with display-only */
.cart-item-quantity .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    max-width: 110px;
}

.cart-item-quantity .quantity-display {
    min-width: 40px;
    padding: 0.35rem 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    color: #495057;
}

/* Price - Compact & Clean */
.cart-item-price {
    flex-shrink: 0;
    text-align: right;
    min-width: 140px;
}

.cart-item-price .price-monthly,
.cart-item-price .price-yearly {
    margin-bottom: 0.35rem;
}

.cart-item-price small {
    font-size: 0.7rem;
    color: #666;
    display: block;
}

.cart-item-price strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.cart-item-price .text-success {
    color: #28a745 !important;
}

.cart-item-price .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    margin-top: 0.5rem;
}

/* Sticky Bottom Actions */
.cart-actions-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 20px 0;
    min-height: 120px; /* Ensure consistent height */
}

/* Cart Summary */
.cart-summary {
    padding: 10px 0;
}

.summary-item {
    padding: 0 15px;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.summary-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.action-buttons {
    padding: 0 15px;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(51, 144, 180, 0.3);
    transition: all 0.3s ease;
}

.action-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 144, 180, 0.4);
}

/* Card Header Enhancement */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%) !important;
    border: none;
    padding: 15px 20px;
}

/* ===== PAYPAL PAYMENT STYLES ===== */

/* PayPal Payment Buttons */
.paypal-payment-btn {
    position: relative;
    font-weight: 600;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.paypal-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.paypal-payment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Dynamic PayPal Button - Monthly */
.paypal-payment-btn.monthly-btn,
.paypal-payment-btn[data-payment-type="Monthly"] {
    background: linear-gradient(135deg, #0070ba 0%, #005ea6 100%);
    border-color: #0070ba;
    color: white;
    transition: all 0.3s ease;
}

.paypal-payment-btn.monthly-btn:hover,
.paypal-payment-btn[data-payment-type="Monthly"]:hover {
    background: linear-gradient(135deg, #005ea6 0%, #004c8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.3);
}

/* Dynamic PayPal Button - Yearly */
.paypal-payment-btn.yearly-btn,
.paypal-payment-btn[data-payment-type="Yearly"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
    transition: all 0.3s ease;
}

.paypal-payment-btn.yearly-btn:hover,
.paypal-payment-btn[data-payment-type="Yearly"]:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* PayPal Button Text Styling */
.paypal-payment-btn .paypal-text {
    font-weight: 600;
    margin-right: 8px;
}

.paypal-payment-btn .paypal-amount {
    font-weight: 700;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

.paypal-payment-btn .paypal-period {
    font-weight: 500;
    opacity: 0.9;
}

/* PayPal Icon */
.paypal-payment-btn .fab.fa-paypal {
    font-size: 1.3rem;
    vertical-align: middle;
}

/* Payment Buttons Container */
.payment-buttons {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    margin: 20px 0;
}

.payment-buttons h6 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

/* Security Info */
.payment-buttons .text-muted {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.payment-buttons .fas.fa-shield-alt {
    color: #28a745;
}

.payment-buttons .fas.fa-lock {
    color: #6c757d;
}

/* Mobile header currently disabled - navbar handles all breakpoints */
.mobile-header {
        display: none !important;
}

/* Navbar Logo Styles */
.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.85;
}

.navbar-brand {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-toast {
        min-width: 280px;
        bottom: 80px;
    }
    
    /* Mobile Cart Layout - Compact & Beautiful */
    .cart-items-container {
        margin-bottom: 0;
        padding-bottom: 160px; /* Extra space for mobile sticky footer */
        min-height: calc(100vh - 250px); /* Ensure minimum height for mobile scrolling */
    }
    
    .card-body {
        display: block;
        padding: 0.75rem !important;
        background: #f5f5f5;
    }
    
    .cart-item-row {
        display: grid;
        grid-template-columns: 95px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.85rem;
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 0.75rem;
        border: none;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .cart-item-row:last-child {
        margin-bottom: 0;
    }
    
    /* Photo - Left Column, Full Height */
    .cart-item-photo {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 95px;
        height: 95px;
        background: #fafafa;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .cart-item-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 0.5rem;
    }
    
    /* Info - Top Right */
    .cart-item-info {
        grid-column: 2;
        grid-row: 1;
        min-width: auto;
    }
    
    .cart-item-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #333;
        margin: 0 0 0.5rem 0;
        line-height: 1.4;
    }
    
    .cart-item-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    
    .cart-item-badges .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
    }
    
    /* Quantity - Bottom Right */
    .cart-item-quantity {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        align-self: center;
    }
    
    .cart-item-quantity .input-group {
        max-width: 110px;
    }
    
    .cart-item-quantity .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
        border-radius: 6px;
        font-weight: 600;
    }
    
    .cart-item-quantity .form-control {
        max-width: 40px;
        font-size: 0.9rem;
        padding: 0.4rem;
        font-weight: 600;
    }
    
    /* Price - Full Width Bottom */
    .cart-item-price {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }
    
    .cart-item-price .price-monthly,
    .cart-item-price .price-yearly {
        flex: 1;
        text-align: center;
        padding: 0.6rem;
        background: #fafafa;
        border-radius: 8px;
        margin: 0 0.3rem;
    }
    
    .cart-item-price .price-yearly {
        background: #f0f8f4;
    }
    
    .cart-item-price small {
        display: block;
        font-size: 0.7rem;
        color: #666;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }
    
    .cart-item-price strong {
        font-size: 0.95rem;
        font-weight: 700;
        color: #333;
    }
    
    .cart-item-price .btn {
        font-size: 0.75rem;
        padding: 0.45rem 0.7rem;
        margin-left: 0.5rem;
        border-radius: 8px;
        white-space: nowrap;
        width: auto;
        font-weight: 600;
    }
    
    .cart-item-price .btn .fa-trash {
        font-size: 0.75rem;
    }
}

/* Extra small screens - Even more compact */
@media (max-width: 400px) {
    .cart-item-price .btn {
        font-size: 0;
        padding: 0.35rem 0.45rem;
        min-width: auto;
    }
    
    .cart-item-price .btn .fa-trash {
        font-size: 0.85rem;
        margin: 0 !important;
    }
    
    .cart-item-price .btn span {
        display: none;
    }
    
    /* Sticky Footer - Smaller on Mobile */
    .cart-actions-sticky {
        padding: 0.75rem 0;
    }
    
    .cart-summary {
        font-size: 0.85rem;
    }
    
    .summary-value {
        font-size: 1rem !important;
    }
    
    .summary-label {
        font-size: 0.7rem !important;
    }
    
    .action-buttons .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* Mobile Checkout Improvements */
@media (max-width: 768px) {
    /* Payment tabs - Better spacing */
    .payment-methods .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 1rem;
    }
    
    .payment-methods .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .payment-methods .nav-link {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        white-space: nowrap;
        font-weight: 600;
    }
    
    .payment-methods .tab-content {
        padding: 0.75rem !important; /* Reduced from 1.25rem for better mobile spacing */
    }
    
    /* Form improvements */
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    .form-control, .form-select {
        font-size: 1rem;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .mb-3 {
        margin-bottom: 1.25rem !important;
    }
    
    .card {
        margin-bottom: 1.25rem;
        border-radius: 12px;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
    }
    
    .card-header h5 {
        font-size: 1.15rem;
        font-weight: 700;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Checkout: Stack order summary on mobile */
    .checkout-layout {
        flex-direction: column-reverse;
    }
    
    .order-summary-mobile {
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 100;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        margin: 0 -1rem;
        padding: 1.25rem;
    }
}

/* ===== IMPROVED CHECKOUT UX STYLES ===== */

/* Progress Indicator */
.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    position: relative;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid transparent;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(51, 144, 180, 0.4);
    transform: scale(1.15);
    border-color: var(--primary-color);
    animation: pulse-ring 1.5s ease-in-out infinite;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    border-color: #28a745;
}

.progress-step.completed .step-number {
    font-size: 0;
}

.progress-step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
    display: block;
}

.progress-step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(51, 144, 180, 0.4), 0 0 0 0 rgba(51, 144, 180, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(51, 144, 180, 0.4), 0 0 0 10px rgba(51, 144, 180, 0);
    }
}

/* Collapsible Section Headers */
.section-header {
    cursor: default;
    transition: opacity 0.3s ease;
    user-select: none;
}

.section-header h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
}

.section-header .total-preview {
    white-space: nowrap;
    margin-left: auto;
    margin-right: 0.5rem;
}

.section-header .collapse-indicator {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

#orderSummaryHeader {
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

#orderSummaryHeader:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    opacity: 0.95;
}

#orderSummaryHeader:active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    opacity: 0.9;
}

/* Ensure all text in order summary header is white */
#orderSummaryHeader h5,
#orderSummaryHeader span,
#orderSummaryHeader strong,
#orderSummaryHeader .total-preview,
#orderSummaryHeader .text-primary {
    color: white !important;
}

.collapse-indicator {
    transition: transform 0.3s ease;
    display: inline-block;
}

.order-summary-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Checkout Sections */
.checkout-section {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.checkout-section:hover {
    border-left-color: var(--primary-color);
}

.checkout-section[data-section="1"] {
    border-left-color: rgba(51, 144, 180, 0.3);
}

.checkout-section[data-section="2"] {
    border-left-color: rgba(51, 144, 180, 0.3);
}

.checkout-section[data-section="3"] {
    border-left-color: rgba(40, 167, 69, 0.3);
}

/* Sticky Bottom Summary (Mobile) */
.sticky-checkout-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1rem 0;
    display: none;
}

/* Payment Period Badge */
.payment-period-badge {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Order Item Enhanced */
.order-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(51, 144, 180, 0.1);
}

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

/* Mobile Optimizations */
@media (max-width: 991px) {
    .sticky-checkout-summary {
        display: block;
    }
    
    #checkoutForm {
        padding-bottom: 100px;
    }
    
    .checkout-progress {
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .checkout-progress::before {
        left: 5%;
        right: 5%;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
    }
    
    .section-header h5 {
        font-size: 1rem;
        flex-wrap: nowrap;
    }
    
    .section-header .total-preview {
        font-size: 1.1rem;
    }
    
    .section-header .collapse-indicator {
        font-size: 0.9rem;
    }
    
    .sticky-checkout-summary .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .checkout-progress {
        gap: 0.5rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .section-header h5 {
        font-size: 0.95rem;
    }
    
    .section-header .total-preview {
        font-size: 1rem;
    }
    
    .section-header .collapse-indicator {
        font-size: 0.8rem;
    }
    
    .sticky-checkout-summary .fs-5 {
        font-size: 1.1rem !important;
    }
    
    .sticky-checkout-summary .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .payment-period-badge {
        font-size: 0.75rem;
    }
}

/* ===== RESPONSIVE LAYOUT: Desktop (1000px+) vs Mobile (<1000px) ===== */

/* Desktop 1000px+ : Sidebar layout */
@media (min-width: 1000px) {
    /* Hide mobile-only elements */
    .checkout-progress {
        display: none;
    }
    
    .sticky-checkout-summary {
        display: none !important;
    }
    
    /* Hide mobile order summary in main content */
    .checkout-main-content > .checkout-section[data-section="1"] {
        display: none;
    }
    
    /* Hide payment methods in main content (shown in sidebar) */
    .checkout-main-content > .checkout-section[data-section="3"] {
        display: none;
    }
    
    /* Show desktop sidebar */
    .checkout-sidebar {
        display: block !important;
    }
    
    /* Show desktop payment methods in sidebar */
    .desktop-payment-methods {
        display: block !important;
    }
    
    /* Remove sticky and scroll from sidebar */
    .checkout-sidebar-sticky {
        position: relative;
        max-height: none;
        overflow-y: visible;
    }
    
    /* Optimize sidebar cards spacing */
    .checkout-sidebar .card {
        margin-bottom: 1.5rem;
    }
    
    /* Compact order items in sidebar */
    .checkout-sidebar .order-item {
        padding: 0.5rem 0;
        margin-bottom: 0.75rem !important;
    }
    
    .checkout-sidebar .order-item img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .checkout-sidebar .card-body {
        padding: 1.25rem;
    }
    
    /* Responsive adjustments for medium screens (1000-1200px) */
    @media (min-width: 1000px) and (max-width: 1200px) {
        .checkout-sidebar .order-item img {
            width: 40px !important;
            height: 40px !important;
        }
        
        .checkout-sidebar .card-body {
            padding: 1rem;
        }
        
        .checkout-sidebar h5 {
            font-size: 1rem;
        }
        
        .checkout-sidebar .small,
        .checkout-sidebar small {
            font-size: 0.8rem;
        }
    }
    
    /* Larger screens (1200px+) - more breathing room */
    @media (min-width: 1200px) {
        .checkout-sidebar {
            padding-left: 1rem;
        }
        
        .checkout-sidebar .card {
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
    }
    
    /* Disable collapse functionality */
    .collapse-indicator {
        display: none;
    }
    
    #orderSummaryHeader {
        cursor: default;
        pointer-events: none;
    }
    
    #orderSummaryCollapse {
        display: block !important;
    }
    
    /* Main content responsive adjustments */
    .checkout-main-content .card {
        margin-bottom: 1.5rem;
    }
    
    .checkout-main-content .card-body {
        padding: 1.5rem;
    }
    
    /* Form fields optimization */
    .checkout-main-content .form-control,
    .checkout-main-content .form-select {
        font-size: 0.95rem;
    }
    
    .checkout-main-content .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    /* Compact form rows */
    .checkout-main-content .row {
        row-gap: 0;
    }
    
    .checkout-main-content .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Payment option cards */
    .checkout-main-content .payment-option {
        padding: 1rem;
    }
    
    /* Medium screens specific (1000-1400px) */
    @media (min-width: 1000px) and (max-width: 1400px) {
        .checkout-main-content .card-header h5 {
            font-size: 1.1rem;
        }
        
        .checkout-main-content .card-body {
            padding: 1.25rem;
        }
        
        /* Tighter payment options */
        .checkout-main-content .payment-option {
            padding: 0.85rem;
        }
        
        .checkout-main-content .payment-option h6 {
            font-size: 0.95rem;
        }
    }
    
    /* Large screens (1400px+) - comfortable spacing */
    @media (min-width: 1400px) {
        .container {
            max-width: 1320px;
        }
        
        .checkout-main-content .card-body {
            padding: 2rem;
        }
        
        .checkout-sidebar .card-body {
            padding: 1.5rem;
        }
    }
}

/* Mobile/Tablet < 1000px : Single column with collapsible */
@media (max-width: 999px) {
    /* Show sidebar only for payment methods on mobile */
    .checkout-sidebar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
        margin-top: 1.5rem;
    }
    
    /* Show payment methods card in sidebar on mobile */
    .checkout-sidebar .card {
        display: block !important;
    }
    
    /* Remove sticky positioning on mobile */
    .checkout-sidebar-sticky {
        position: relative !important;
        top: 0 !important;
    }
    
    /* Hide desktop payment methods card */
    .desktop-payment-methods {
        display: none !important;
    }
    
    /* Show mobile elements */
    .checkout-progress {
        display: flex !important;
    }
    
    .sticky-checkout-summary {
        display: block !important;
    }
    
    /* Show mobile order summary */
    .checkout-main-content > .checkout-section[data-section="1"] {
        display: block !important;
    }
    
    /* Show payment methods in main content */
    .checkout-main-content > .checkout-section[data-section="3"] {
        display: block !important;
    }
    
    /* Ensure all sections visible */
    .checkout-section {
        display: block !important;
        margin-bottom: 1rem;
    }
    
    /* Single column layout */
    .checkout-layout {
        flex-direction: column !important;
    }
    
    .checkout-main-content {
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    /* Order summary collapsible */
    .section-header {
        cursor: pointer;
    }
    
    .section-header .collapse-indicator {
        transition: transform 0.3s ease;
    }
    
    /* Ensure payment methods are fully visible and scrollable on mobile */
    .payment-methods {
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
    }
    
    .payment-methods .nav-tabs {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0 !important;
    }
    
    /* Optimize tab-content padding on mobile */
    .payment-methods .tab-content {
        display: block !important;
        visibility: visible !important;
        padding: 0.75rem !important; /* Reduce from p-3 (1rem) to 0.75rem */
        border: none !important; /* Remove border on mobile for cleaner look */
        border-top: 1px solid #dee2e6 !important; /* Keep only top border */
    }
    
    /* Reduce card-body padding in payment methods card on mobile */
    .checkout-sidebar .card-body {
        padding: 1rem !important; /* Reduce from default 1.5rem */
    }
    
    /* Optimize tab-pane spacing */
    .payment-methods .tab-pane {
        display: block !important;
    }
    
    .payment-methods .tab-pane.active {
        display: block !important;
    }
    
    /* Reduce spacing in PayPal container */
    .paypal-smart-buttons-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #paypal-button-container {
        min-height: 180px !important; /* Reduce from 200px */
    }
    
    /* Optimize Stripe payment container */
    .stripe-payment-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Reduce margins in subscription plan selection */
    .subscription-plan-selection {
        margin-bottom: 1rem !important;
    }
    
    /* Optimize button spacing */
    .payment-methods .btn-lg {
        padding: 0.75rem 1.25rem !important;
        font-size: 1rem !important;
    }
    
    /* Reduce alert padding */
    .payment-methods .alert {
        padding: 0.75rem 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Optimize text spacing */
    .payment-methods .text-center.mt-4 {
        margin-top: 1rem !important;
    }
    
    .payment-methods .small {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}

/* ========================================
   Modern Stripe Payment Element Styles
   ======================================== */

.stripe-payment-container {
    background: #ffffff;
    padding: 0;
    border-radius: 8px;
}

.stripe-payment-element {
    /* Let content define height; avoid fixed min-height on mobile */
    min-height: 0;
    padding: 0;
    background: transparent;
}

/* Payment Element Wrapper */
#payment-element {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
}

/* Error Messages */
#payment-errors {
    font-size: 14px;
    line-height: 1.4;
    padding: 12px;
    background: #fff3f3;
    border-left: 3px solid #df1b41;
    border-radius: 4px;
    display: none;
}

#payment-errors:not(:empty) {
    display: block;
}

/* Security Badge */
.payment-security-badge {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.payment-security-badge .text-muted {
    font-size: 13px;
    color: #6c757d !important;
}

/* Modern Pay Button */
.stripe-pay-button {
    font-size: 18px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.stripe-pay-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.stripe-pay-button:active {
    transform: translateY(0);
}

.stripe-pay-button .pay-amount {
    font-weight: 700;
}

/* Stripe Element Container Enhancements */
.StripeElement {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px;
    background: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.StripeElement--focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

.StripeElement--invalid {
    border-color: #dc3545;
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

/* Payment Method Selector Buton Genişliği Düzeltmesi */
.p-PaymentMethodSelector {
    max-width: 100% !important;
}

.p-PaymentMethodSelector-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: 8px !important;
}

.p-PaymentMethodSelector-button {
    min-width: 120px !important;
    max-width: 180px !important;
    padding: 10px 16px !important;
    justify-content: center !important;
}

/* Küçük ekranlarda tek sütun */
@media (max-width: 576px) {
    .p-PaymentMethodSelector-list {
        grid-template-columns: 1fr !important;
    }
    
    .p-PaymentMethodSelector-button {
        max-width: 100% !important;
    }
}

/* Loading State */
.stripe-payment-element.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design for Payment Element */
@media (max-width: 768px) {
    .stripe-payment-container {
        padding: 0;
    }
    
    .stripe-pay-button {
        font-size: 16px;
        padding: 14px 24px;
    }
    
    .payment-security-badge {
        padding: 10px;
    }
    
    .payment-security-badge .text-muted {
        font-size: 12px;
    }
    
    /* Mobile Payment Element - Better spacing for Apple Pay, Google Pay, etc. */
    #payment-element {
        padding: 12px 0;
    }
    
    /* Ensure payment method buttons (Apple Pay, Google Pay, Klarna) are touch-friendly on mobile */
    #payment-element [class*="PaymentMethodButton"],
    #payment-element [class*="PaymentRequestButton"] {
        min-height: 48px; /* iOS/Android touch target recommendation */
        margin-bottom: 12px;
    }
    
    /* Payment tabs on mobile */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-item {
        flex-shrink: 0;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Mobil Layout Düzeltmesi - Ödeme Yöntemleri Sırası */
@media (max-width: 1000px) {
    /* Checkout section'ları doğru sırada göster */
    .checkout-main-content {
        display: flex;
        flex-direction: column;
    }
    
    /* 1. Sipariş Özeti (data-section="1") */
    .checkout-section[data-section="1"] {
        order: 1;
    }
    
    /* 2. Ödeme Tipi Seçimi */
    .checkout-section:has(input[name="PaymentType"]) {
        order: 2;
    }
    
    /* 3. Müşteri Bilgileri (data-section="2") */
    .checkout-section[data-section="2"] {
        order: 3;
    }
    
    /* 4. Teslimat Adresi (data-section="2" ama ikinci) */
    .checkout-section[data-section="2"]:last-of-type {
        order: 4;
    }
    
    /* 5. Ödeme Yöntemleri EN SONA (data-section="3") */
    .checkout-section[data-section="3"] {
        order: 99 !important;  /* En sona koy */
        margin-top: 1rem;
    }
}

/* Alternatif: Class bazlı çözüm */
@media (max-width: 1000px) {
    /* Ödeme yöntemleri container'ı */
    .checkout-section:has(.payment-methods) {
        order: 999 !important;
        margin-bottom: 100px; /* Sticky bottom için boşluk */
    }
}

/* Tab Styles Enhancement */
.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    background: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

/* Tab Content Styling */
.tab-content {
    border-radius: 0 0 8px 8px;
    background: #ffffff;
}

/* Card Logos Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stripe-payment-element {
    animation: fadeIn 0.3s ease-out;
}

/* Improved Button States */
.stripe-pay-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Success State (for future use) */
.payment-success {
    padding: 20px;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    color: #0f5132;
    text-align: center;
    font-weight: 500;
}

.payment-success i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* Loading Spinner in Button */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus Styles for Accessibility */
.stripe-pay-button:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .stripe-payment-container,
    .stripe-pay-button {
        display: none;
    }
}

/* ===== PAYPAL SMART PAYMENT BUTTONS STYLES ===== */

/* PayPal Container */
.paypal-smart-buttons-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    /* Avoid forcing height; let PayPal buttons define it */
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.paypal-smart-buttons-container:hover {
    border-color: #0070ba;
    box-shadow: 0 2px 8px rgba(0, 112, 186, 0.1);
}

/* PayPal Button Container */
#paypal-button-container {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Loading State */
#paypal-button-container .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: #0070ba;
}

#paypal-button-container .text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* PayPal Buttons Styling */
#paypal-button-container .paypal-button {
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

#paypal-button-container .paypal-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.2);
}

/* Remove PayPal SDK auto-generated classes visual effects */
#paypal-button-container [class*="paypal-button-row"],
#paypal-button-container [class*="paypal-button-number"],
#paypal-button-container [class*="paypal-button-layout"],
#paypal-button-container [class*="paypal-button-env"],
#paypal-button-container [class*="paypal-button-color"],
#paypal-button-container [class*="paypal-button-text-color"],
#paypal-button-container [class*="paypal-logo-color"],
#paypal-button-container [class*="paypal-button-shape"] {
    /* Remove all visual effects from these classes */
    background: none !important;
    color: inherit !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

/* Error State */
#paypal-button-container .alert-danger {
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

#paypal-button-container .alert-danger i {
    color: #dc3545;
    font-size: 1.25rem;
}

/* Security Info */
.paypal-smart-buttons-container + .text-center {
    margin-top: 1rem;
}

.paypal-smart-buttons-container + .text-center .text-muted {
    font-size: 0.85rem;
    line-height: 1.6;
}

.paypal-smart-buttons-container + .text-center .text-success {
    color: #28a745 !important;
}

.paypal-smart-buttons-container + .text-center .fab.fa-paypal {
    color: #0070ba;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .paypal-smart-buttons-container {
        padding: 1rem;
        min-height: 0;
    }
    
    #paypal-button-container {
        min-height: 0;
    }
    
    .paypal-smart-buttons-container + .text-center .text-muted {
        font-size: 0.8rem;
    }
}

/* Toast Container */
#toast-container {
    z-index: 9999;
}

#toast-container .toast {
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
    #toast-container {
        left: 1rem;
        right: 1rem;
        padding: 0.5rem;
    }
    
    #toast-container .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Subscription Plan Selection Styles */
.subscription-plan-selection {
    margin-bottom: 1.5rem;
}

.subscription-plan-card {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.subscription-plan-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.subscription-plan-card.selected {
    border-color: #0d6efd;
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.subscription-plan-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.subscription-plan-label {
    cursor: pointer;
    margin: 0;
    display: block;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.plan-header i {
    font-size: 1.5rem;
}

.plan-header h6 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}

.plan-details {
    margin-top: 0.5rem;
}

.plan-details p {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .subscription-plan-card {
        margin-bottom: 1rem;
    }
}

/* ===== Legal pages - typography focused, responsive, no boxes ===== */
.legal-main {
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .legal-main {
        padding: 3rem 1.5rem 4rem;
        display: flex;
        justify-content: center;
    }
}

.legal-container {
    width: 100%;
    max-width: 780px;
}

.legal-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.legal-content {
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.legal-content p {
    margin: 0 0 0.75rem;
}

.legal-content ul,
.legal-content ol {
    margin: 0.75rem 0;
    padding-left: 1.4rem;
}

.legal-content li {
    margin-bottom: 0.35rem;
}

/* Payment Methods Grid - Button Style (Reference from image) */
.payment-methods-grid {
    margin-top: 1rem;
}

/* Payment Methods Simple Design */
.payment-methods-simple {
    padding: 0;
}

/* Payment Separator */
.payment-separator {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.payment-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e7ff;
}

.payment-separator-text {
    position: relative;
    background: #fff;
    padding: 0 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stripe Payment Button */
.stripe-payment-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.stripe-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

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

.stripe-payment-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.stripe-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stripe-icon-wrapper i {
    font-size: 2rem;
    color: #ffffff;
}

.stripe-text {
    flex: 1;
    text-align: left;
}

.stripe-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stripe-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.stripe-arrow {
    color: #ffffff;
    font-size: 1.25rem;
}

/* Plan Option Button (Modal) */
.plan-option-btn {
    background: #ffffff;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.plan-option-btn:hover {
    border-color: #635bff;
    background: #f8f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.15);
}

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

.plan-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.plan-icon {
    background: #f0f0ff;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon i {
    font-size: 1.5rem;
    color: #635bff;
}

.plan-info {
    flex: 1;
    text-align: left;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #635bff;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.plan-period {
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748b;
}

.plan-arrow {
    color: #cbd5e1;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.plan-option-btn:hover .plan-arrow {
    color: #635bff;
    transform: translateX(4px);
}

/* Modal Customization */
#stripePlanModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#stripePlanModal .modal-header {
    border-bottom: 1px solid #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    .stripe-payment-btn {
        padding: 1.25rem;
    }
    
    .stripe-icon-wrapper i {
        font-size: 1.75rem;
    }
    
    .stripe-title {
        font-size: 1.1rem;
    }
    
    .plan-option-btn {
        padding: 1rem;
    }
    
    .plan-name {
        font-size: 1rem;
    }
    
    .plan-price {
        font-size: 1.25rem;
    }
}

/* Payment Card Style (Old - Keep for compatibility) */
.payment-card {
    background: #ffffff;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
    position: relative;
}

.payment-card:hover {
    border-color: #0070ba;
    box-shadow: 0 4px 16px rgba(0, 112, 186, 0.15);
    transform: translateY(-2px);
}

.payment-card:active {
    transform: translateY(0);
}

.payment-card-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.payment-card-icon {
    font-size: 3.5rem;
    color: #495057;
    transition: all 0.3s ease;
}

.payment-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.payment-card-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2d3748;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.payment-card-period {
    font-size: 0.95rem;
    font-weight: 400;
    color: #718096;
}

.payment-card-arrow {
    text-align: center;
    color: #a0aec0;
}

.payment-card-arrow i {
    font-size: 1.5rem;
}

/* PayPal Card specific styles */
.payment-card:has(.fa-paypal):hover {
    border-color: #0070ba;
    background: #f0f8ff;
}

.payment-card:has(.fa-paypal):hover .payment-card-icon {
    transform: scale(1.1);
}

/* Stripe Card specific styles */
.payment-card:has(.fa-cc-stripe):hover {
    border-color: #635bff;
    background: #f5f3ff;
}

.payment-card:has(.fa-cc-stripe):hover .payment-card-icon {
    transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .payment-card {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .payment-card-content {
        width: 100%;
    }
    
    .payment-card-icon {
        font-size: 3rem;
    }
    
    .payment-card-title {
        font-size: 1.1rem;
    }
    
    .payment-card-price {
        font-size: 1.5rem;
    }
    
    .payment-card-arrow {
        width: 100%;
        margin-top: 0.5rem;
    }
}

.payment-option-btn,
.payment-option-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    transition: all 0.3s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.payment-option-btn {
    cursor: pointer;
}

.payment-option-btn:hover {
    background: #ffffff;
    border-color: #00aeba;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 174, 186, 0.15);
}

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

.payment-option-card {
    border-color: #0070ba;
    background: #ffffff;
}

.payment-note {
    margin-top: 0.5rem;
    text-align: center;
}

.payment-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.payment-icon {
    font-size: 2.75rem;
    color: #495057;
    transition: color 0.3s ease;
}

.payment-option-btn:hover .payment-icon {
    color: #00aeba;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.payment-subtitle {
    font-size: 1.1rem;
    color: #212529;
    font-weight: 700;
}

.payment-period {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* PayPal specific color */
.payment-option-btn:hover .fa-paypal {
    color: #0070ba;
}

/* Stripe specific color */
.payment-option-btn:hover .fa-cc-stripe {
    color: #635bff;
}

/* Responsive: Mobile'da tek sütun */
@media (max-width: 768px) {
    .payment-methods-grid .row > .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .payment-option-btn {
        padding: 1rem 0.75rem;
        min-height: 100px;
    }
    
    .payment-icon {
        font-size: 2.5rem;
    }
    
    .payment-name {
        font-size: 0.85rem;
    }
    
    .payment-subtitle {
        font-size: 1rem;
    }
    
    .payment-period {
        font-size: 0.75rem;
    }
}
