/**
 * DigitAlb Shop - Unified CSS
 * Für: Product, Cart, Checkout, Payment, Auth Seiten
 * Version: 3.0 - Bereinigt & Konsolidiert
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #e31e24;
    --primary-dark: #c41820;
    --secondary: #1f2937;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --gradient-red: linear-gradient(135deg, #e31e24 0%, #c41820 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-red: 0 4px 12px rgba(227, 30, 36, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ============================================
   BASE
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-modern {
    background: white;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    font-size: 0.85rem;
}

.breadcrumb-modern a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-modern a:hover {
    color: var(--primary);
}

/* ============================================
   PRODUCT PAGE
   ============================================ */
.product-page-modern {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    min-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
    .product-page-modern { padding: 20px 0 60px; }
}

/* Product Card */
.product-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: none;
}

/* Product Image */
.product-image-modern {
    position: relative;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform var(--transition-slow);
}

.product-main-image:hover {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .product-main-image { aspect-ratio: 16/10; }
}

/* Sale Badge */
.sale-badge-modern {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-red);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-red);
    z-index: 5;
}

/* Product Header */
.product-header-modern {
    padding: 20px;
}

@media (min-width: 768px) {
    .product-header-modern { padding: 24px; }
}

.product-title-modern {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .product-title-modern { font-size: 1.25rem; }
}

/* Wishlist Button */
.btn-wishlist-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--gray-400);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.btn-wishlist-modern:hover,
.btn-wishlist-modern.active {
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Badge Modern */
.badge-modern {
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, rgba(227, 30, 36, 0.05) 100%);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Price Box */
.price-box-modern {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid var(--primary);
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.price-box-modern.with-bb {
    background: var(--gradient-dark);
    border: none;
    color: white;
    text-align: left;
}

.price-main-modern {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

@media (max-width: 768px) {
    .price-main-modern { font-size: 1.5rem; }
}

.price-old-modern {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
    display: block;
    margin-bottom: 6px;
}

/* Add to Cart Button */
.btn-cart-modern {
    background: var(--gradient-red);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-red);
}

.btn-cart-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(227, 30, 36, 0.4);
}

.btn-cart-modern:active {
    transform: translateY(0);
}

/* BB Addon */
.bb-addon-modern {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
    border: 2px solid var(--gray-300);
}

.bb-addon-modern .btn {
    border-radius: var(--radius-full);
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
}

/* Form Input */
.input-modern {
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

.form-text-modern {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Trust Badges */
.trust-badges-modern {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--gray-100);
}

.trust-badge-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
}

.trust-badge-modern i {
    font-size: 1rem;
}

/* Content Section */
.content-section-modern {
    background: white;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.content-section-modern h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--dark-bg);
}

.feature-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.feature-item-modern i {
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Related Products */
.related-card-modern {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    border: none;
    box-shadow: var(--shadow-sm);
}

.related-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.related-card-modern img {
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* Sticky Mobile Bar */
.sticky-bar-modern {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: bottom var(--transition-slow);
}

.sticky-bar-modern.visible {
    bottom: 0;
}

/* Stock Notification */
.stock-notification-modern {
    background: #fff3cd;
    border: 2px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

/* Swiper */
.swiper-button-next, .swiper-button-prev {
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
    color: var(--dark-bg);
    font-weight: 700;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-item-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.cart-item-card .card-body {
    padding: 16px;
}

/* Cart Item Layout */
.cart-item-mobile {
    display: block;
}

.cart-item-top {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.mobile-image-wrapper {
    flex: 0 0 90px;
    width: 90px;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: var(--gray-100);
}

.cart-item-image-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-info-mobile {
    flex: 1;
    min-width: 0;
}

.cart-item-info-mobile h6 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

.cart-item-info-mobile small {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: 4px;
}

.cart-item-title {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 600;
}

.cart-item-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-top: 6px;
}

/* Cart Item Bottom */
.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.cart-item-bottom .cart-item-total {
    display: none;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: var(--gray-50);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--gray-200);
}

.quantity-input {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    font-size: 0.95rem;
    font-weight: 600;
    background: white;
}

/* Remove Button */
.btn-remove-cart,
.btn-remove-item {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-cart:hover,
.btn-remove-item:hover {
    background: var(--danger);
    color: white;
}

/* Cart Badges */
.cart-badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.cart-badge.subscription {
    background: rgba(227, 30, 36, 0.1);
    color: var(--primary);
}

.cart-badge.bb-albania {
    background: linear-gradient(135deg, #ff9800, #ff6b00);
    color: white;
}

.cart-badge.bb-kosova {
    background: linear-gradient(135deg, #2196F3, #1565C0);
    color: white;
}

/* Cart Summary */
.summary-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-top: 20px;
}

.summary-header {
    background: var(--gradient-red);
    color: white;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-body {
    padding: 18px;
}

/* Discount Section */
.discount-section {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 16px;
}

.discount-section label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
    display: block;
}

.discount-input-group {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.discount-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 110px);
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.btn-apply-discount {
    flex: 0 0 auto;
    padding: 10px 14px;
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    min-width: 95px;
}

.btn-apply-discount:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

@media (max-width: 400px) {
    .discount-input-group { flex-wrap: wrap; }
    .discount-input { flex: 1 1 100%; max-width: 100%; }
    .btn-apply-discount { flex: 1 1 100%; min-width: 100%; }
}

/* Summary Rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.summary-row.total {
    padding-top: 14px;
    margin-top: 10px;
    border-top: 2px solid var(--gray-200);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.summary-total-price {
    color: var(--primary);
    font-weight: 800;
}

/* Checkout Button */
.btn-checkout-modern {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 16px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

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

/* Security Badge */
.security-badge {
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.8rem;
    color: var(--gray-500);
}

.security-badge i {
    color: var(--success);
}

/* Continue Shopping */
.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 12px;
}

.btn-continue-shopping:hover {
    text-decoration: underline;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page-wrapper {
    padding: 24px 0 60px 0;
    background: var(--gray-50);
    min-height: calc(100vh - 200px);
}

.checkout-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.checkout-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 24px;
}

/* Checkout Section */
.checkout-section-modern {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.checkout-section-header-modern {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section-header-modern i {
    color: var(--primary);
    font-size: 1.125rem;
}

.checkout-section-header-modern h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
}

.checkout-section-body-modern {
    padding: 20px;
}

/* Checkout Product */
.checkout-product-modern {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.checkout-product-modern:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-product-image-modern {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    flex-shrink: 0;
}

.checkout-product-info-modern {
    flex: 1;
    min-width: 0;
}

.checkout-product-name-modern {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.3;
}

.checkout-product-meta-modern {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.checkout-product-price-modern {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    font-size: 1rem;
}

.checkout-product-badges {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.checkout-badge-modern {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.checkout-badge-modern.bb-al {
    background: linear-gradient(135deg, #ff9800 0%, #ff6b00 100%);
    color: white;
}

.checkout-badge-modern.bb-ks {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
}

/* Form Inputs */
.form-group-modern {
    margin-bottom: 16px;
}

.form-label-modern {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.form-input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.form-input-modern.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

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

.form-input-row-custom {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 12px;
}

.form-input-row-zip-city {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

/* User Logged In Alert */
.user-logged-in-alert {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.user-logged-in-alert i {
    color: var(--success-dark);
    font-size: 1.25rem;
}

.user-logged-in-alert span {
    font-weight: 600;
    color: #065f46;
    font-size: 0.9375rem;
}

/* Account Exists Alert */
.account-exists-alert-modern {
    background: var(--gradient-warning);
    border: 2px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.account-alert-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.account-alert-content {
    flex: 1;
}

.account-alert-content strong {
    color: #78350f;
    font-size: 1rem;
    display: block;
    margin-bottom: 6px;
}

.account-alert-content p {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.account-alert-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-login-modern {
    background: var(--gradient-success);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    border: none;
}

.btn-login-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-guest-modern {
    background: white;
    border: 2px solid #92400e;
    color: #92400e;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-guest-modern:hover {
    background: #92400e;
    color: white;
}

/* Payment Options */
.payment-option-modern {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.payment-option-modern:hover {
    border-color: var(--primary);
    background: #fff5f5;
}

.payment-option-modern.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.15);
}

.payment-option-modern input[type="radio"] {
    display: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon-modern {
    width: 40px;
    height: 40px;
    background: var(--gradient-red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.payment-option-modern.selected .payment-icon-modern {
    background: var(--gradient-success);
}

.payment-details {
    flex: 1;
}

.payment-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.payment-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.payment-icons-grid {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.payment-icons-grid img {
    height: 22px;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.payment-icons-grid img:hover {
    opacity: 1;
}

/* Saved Card */
.saved-card-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saved-card-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gradient-success);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.save-card-option-modern {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 14px;
    margin-top: 12px;
}

.save-card-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.save-card-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.save-card-text {
    flex: 1;
}

.save-card-text strong {
    font-size: 0.9rem;
    color: #0c4a6e;
    display: block;
    margin-bottom: 2px;
}

.save-card-text small {
    color: #0369a1;
    font-size: 0.8125rem;
}

/* Newsletter Opt-in */
.newsletter-optin-modern {
    background: var(--gradient-warning);
    border: 1px solid var(--warning);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.newsletter-optin-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.newsletter-optin-label-modern {
    flex: 1;
    cursor: pointer;
}

.newsletter-optin-label-modern strong {
    font-size: 0.9375rem;
    color: #78350f;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.newsletter-optin-label-modern strong i {
    color: var(--primary);
}

.newsletter-optin-label-modern small {
    color: #92400e;
    font-size: 0.8125rem;
    line-height: 1.4;
}

/* Terms Checkbox */
.terms-checkbox-modern {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.terms-checkbox-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.terms-checkbox-modern label {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #78350f;
    cursor: pointer;
}

.terms-checkbox-modern a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.terms-checkbox-modern a:hover {
    text-decoration: underline;
}

.terms-checkbox-modern:has(.is-invalid) {
    border-color: var(--danger) !important;
    background: #fff5f5 !important;
}

/* Checkout Summary */
.checkout-summary-modern {
    background: var(--gray-100);
    border-top: 2px solid var(--gray-200);
    padding: 20px;
}

.summary-row-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9375rem;
}

.summary-row-modern.subtotal {
    color: var(--gray-500);
}

.summary-row-modern.discount {
    color: var(--success);
    font-weight: 600;
}

.summary-row-modern.tax {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.summary-row-modern.total {
    padding-top: 16px;
    margin-top: 12px;
    border-top: 2px solid var(--gray-200);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Submit Button */
.btn-checkout-submit-modern {
    width: 100%;
    padding: 18px 24px;
    background: var(--gradient-red);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout-submit-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

.btn-checkout-submit-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Security Badge */
.security-badge-modern {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.security-badge-modern small {
    color: var(--gray-500);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-badge-modern i {
    color: var(--success);
}

/* Test Mode Badge */
.test-mode-badge-modern {
    background: var(--gradient-warning);
    border: 1px solid var(--warning);
    color: #78350f;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-mode-badge-modern i {
    font-size: 1.125rem;
    color: var(--warning);
}

.test-mode-badge-modern strong {
    font-weight: 700;
}

/* Back Link */
.back-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-link-modern:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ============================================
   PAYMENT PAGE
   ============================================ */
.saved-cards-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.saved-card-item {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-slow);
    margin-bottom: 12px;
}

.saved-card-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.15);
}

.saved-card-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.saved-card-item input[type="radio"] {
    display: none;
}

.card-icon {
    width: 50px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.new-card-option {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px dashed var(--success);
}

.new-card-option:hover {
    border-color: var(--success-dark);
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--gray-500);
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.divider-text span {
    padding: 0 16px;
    font-weight: 600;
}

/* ============================================
   AUTH PAGES (Login, Register, Password Reset)
   ============================================ */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: white;
    padding: 40px 0;
}

.auth-card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
}

.auth-header.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-header.register {
    background: linear-gradient(135deg, #20c997 0%, #0dcaf0 100%);
}

.auth-header.reset {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.auth-body {
    padding: 40px;
}

.cart-info {
    background: #e8f4fd;
    border-left: 3px solid var(--info);
    color: #084298;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px;
    font-weight: 500;
    transition: var(--transition-slow);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-register {
    background: linear-gradient(135deg, #20c997 0%, #0dcaf0 100%);
    border: none;
    padding: 12px;
    font-weight: 500;
    transition: var(--transition-slow);
}

.btn-register:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(32, 201, 151, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    padding: 12px;
    font-weight: 500;
    transition: var(--transition-slow);
}

.btn-reset:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.btn-login:disabled,
.btn-register:disabled,
.btn-reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-300);
}

.divider span {
    padding: 0 15px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.register-promo {
    background: linear-gradient(135deg, #20c997 0%, #0dcaf0 100%);
    color: white;
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
}

.benefits-card {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
}

.benefit-item {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    background: linear-gradient(135deg, #20c997 0%, #0dcaf0 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.rate-limit-warning {
    background: var(--gradient-warning);
    border: 1px solid var(--warning);
    color: #92400e;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    text-align: center;
}

.rate-limit-warning i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.success-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.success-box i {
    font-size: 3rem;
    color: var(--success-dark);
}

.success-box h4 {
    color: #065f46;
    margin: 16px 0 12px;
}

.success-box p {
    color: #047857;
    margin: 0;
}

.info-box {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 20px;
}

.info-box h6 {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.info-box li {
    margin-bottom: 6px;
}

/* Newsletter Checkbox (Register) */
.newsletter-checkbox {
    background: var(--gradient-warning);
    border: 1px solid var(--warning);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.newsletter-checkbox .form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.newsletter-checkbox .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Password Requirements */
.password-requirements {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 8px;
    font-size: 0.8rem;
}

.password-requirements li {
    color: var(--gray-500);
    margin-bottom: 4px;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid::before {
    content: '✓ ';
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .checkout-container {
        padding: 0 16px;
    }
    
    .checkout-section-body-modern {
        padding: 16px;
    }
    
    .checkout-product-modern {
        gap: 12px;
    }
    
    .checkout-product-image-modern {
        width: 60px;
        height: 60px;
    }
    
    .form-input-row {
        grid-template-columns: 1fr;
    }
    
    .form-input-row-custom {
        grid-template-columns: 2fr 1fr;
    }
    
    .payment-option-modern {
        padding: 14px;
    }
    
    .payment-icon-modern {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .account-exists-alert-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .account-alert-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .checkout-page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .checkout-container {
        padding: 0 12px;
    }
    
    .btn-checkout-submit-modern {
        font-size: 1rem;
        padding: 16px 20px;
    }
}