/* ============================================
   WEB SİPARİŞ WİDGET - STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}

/* ============================================
   HEADER
   ============================================ */
.widget-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px 16px;
}

.merchant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.merchant-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.merchant-details {
    flex: 1;
}

.merchant-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.merchant-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.merchant-status.open .status-dot {
    background: var(--success-color);
}

.merchant-status.closed .status-dot {
    background: var(--error-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

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

/* ============================================
   MERCHANT MESSAGE
   ============================================ */
.merchant-message {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px 16px;
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #856404;
}

/* ============================================
   ORDER CLOSED MESSAGE
   ============================================ */
.order-closed-message {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-bottom: 1px solid #ffc107;
}

.order-closed-message > i {
    font-size: 32px;
    color: #d39e00;
}

.order-closed-message > div {
    flex: 1;
}

.order-closed-message strong {
    display: block;
    font-size: 15px;
    color: #856404;
    margin-bottom: 2px;
}

.order-closed-message small {
    font-size: 13px;
    color: #997a00;
}

/* ============================================
   ORDER TYPE SELECTOR
   ============================================ */
.order-type-selector {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    gap: 12px;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.order-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.order-type-btn.active {
    border-color: var(--primary-color);
    background: rgba(230, 57, 70, 0.05);
}

.order-type-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.order-type-btn span {
    font-weight: 600;
    font-size: 14px;
}

.order-type-btn small {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   CATEGORY NAVIGATION
   ============================================ */
.category-nav {
    position: sticky;
    top: 72px;
    background: white;
    z-index: 90;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.category-nav-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border-radius: 50%;
    margin: 0 4px;
    transition: opacity 0.2s;
}

.category-nav-arrow:hover {
    background: var(--primary-color);
    color: white;
}

.category-nav-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    padding: 0 16px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-nav-item {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.category-nav-item:hover,
.category-nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ============================================
   MENU CONTAINER
   ============================================ */
.menu-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.menu-category {
    margin-bottom: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* ============================================
   PRODUCT GRID & CARDS
   ============================================ */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    display: flex;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

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

.product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    position: relative;
}

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

.discount-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 6px;
}

.discounted-price {
    color: var(--primary-color);
    font-weight: 700;
}

/* Porsiyon seçiminde indirim gösterimi */
.option-price .original-price {
    font-size: 12px;
    margin-right: 4px;
}

/* Modal fiyat gösteriminde indirim */
.modal-product-price .original-price {
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

.modal-product-price .discounted-price {
    font-size: 24px;
}

.product-add-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.product-add-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   FLOATING CART BUTTON
   ============================================ */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s;
}

.floating-cart:hover {
    transform: translateX(-50%) scale(1.05);
}

.floating-cart.empty {
    display: none;
}

.cart-count {
    background: white;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 300;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.cart-drawer.open {
    visibility: visible;
    opacity: 1;
}

.cart-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.cart-drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cart-drawer.open .cart-drawer-content {
    transform: translateY(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-portion {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-value {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-checkout:hover {
    opacity: 0.9;
}

.btn-checkout:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.product-modal.open {
    visibility: visible;
    opacity: 1;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.product-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.product-modal.open .product-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-body {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.modal-product-info {
    padding: 20px;
}

.modal-product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-product-description {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ============================================
   KALORI & ALERJEN (App urun detayi ile ayni gorunum)
   ============================================ */

/* Urun detayindaki buyuk kalori rozeti (baslik/aciklama altinda) */
.modal-product-kcal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #e8590c;
    background: #fff4e6;
    border: 1px solid #ffd8a8;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.modal-product-kcal i {
    font-size: 14px;
}

/* Liste kartinda ve malzeme satirlarinda kullanilan kucuk rozet */
.kcal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #e8590c;
    background: #fff4e6;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.kcal-badge i {
    font-size: 11px;
}

/* Malzeme/opsiyon adinin yanindaki rozet — isimden hafif ayrilir */
.kcal-badge.inline {
    margin-left: 6px;
    vertical-align: middle;
}

/* Alerjenler kutusu */
.allergens-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-md, 10px);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.allergens-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--secondary-color);
}

.allergens-list {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-section-title .required {
    color: var(--primary-color);
    font-size: 12px;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    border-color: var(--primary-color);
}

.option-item.selected {
    border-color: var(--primary-color);
    background: rgba(230, 57, 70, 0.05);
}

.option-item input {
    display: none;
}

.option-radio,
.option-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.option-checkbox {
    border-radius: 4px;
}

.option-item.selected .option-radio,
.option-item.selected .option-checkbox {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.option-name {
    flex: 1;
    font-weight: 500;
}

.option-price {
    font-weight: 600;
    color: var(--primary-color);
}

.modal-note {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: none;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: center;
}

.modal-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.modal-qty-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
}

.modal-qty-value {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.modal-add-btn {
    flex: 1;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.checkout-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.checkout-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary-color);
}

.order-summary {
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.item-quantity {
    font-weight: 600;
    color: var(--primary-color);
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 500;
}

.item-portion,
.item-note {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.item-price {
    font-weight: 600;
}

.order-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.total-final {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
}

.delivery-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option,
.payment-option {
    cursor: pointer;
}

.delivery-option input,
.payment-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.delivery-option input:checked + .option-content,
.payment-option input:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(230, 57, 70, 0.05);
}

.option-content i {
    font-size: 24px;
    color: var(--primary-color);
}

.option-content strong {
    display: block;
    margin-bottom: 2px;
}

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

.form-group {
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-hint i {
    margin-right: 4px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.btn-submit:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

/* Form Row (Yan yana alanlar) */
.form-row {
    display: flex;
    gap: 12px;
}

.form-group.half {
    flex: 1;
}

/* Secure Badge */
.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f0f9f4;
    border-radius: var(--radius-sm);
    color: var(--success-color);
    font-size: 13px;
    margin-top: 8px;
}

.secure-badge i {
    font-size: 18px;
}

/* Card Input Styles */
#card_number,
#expiry,
#cvc,
#card_holder_name {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

#card_holder_name {
    text-transform: uppercase;
}

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

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

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.order-status-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.status-step.active .step-icon {
    background: var(--success-color);
    color: white;
}

.step-text {
    font-size: 12px;
    color: var(--text-muted);
}

.status-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin-bottom: 24px;
}

.order-details-card,
.order-items-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.order-details-card h3,
.order-items-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.detail-value {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.item-qty {
    color: var(--primary-color);
    font-weight: 600;
}

.item-name {
    flex: 1;
}

.merchant-contact {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.merchant-contact h4 {
    margin-bottom: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.merchant-address {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.btn-new-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* ============================================
   CLOSED OVERLAY
   ============================================ */
.closed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closed-message {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 300px;
}

.closed-message i {
    font-size: 48px;
    color: var(--warning-color);
    margin-bottom: 16px;
}

.closed-message h3 {
    margin-bottom: 8px;
}

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

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

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

/* ============================================
   EMPTY CART
   ============================================ */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 600px) {
    .product-modal-content,
    .cart-drawer-content {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
    }

    .product-modal.open .product-modal-content,
    .cart-drawer.open .cart-drawer-content {
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   HEADER ACTIONS (User Menu)
   ============================================ */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.header-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.header-action-btn i {
    font-size: 18px;
}

.header-user-menu {
    position: relative;
}

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.header-user-btn:hover {
    background: #c8e6c9;
}

.header-user-btn i:first-child {
    font-size: 18px;
}

.header-user-btn .dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.header-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
}

.header-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section {
    padding: 12px;
}

.dropdown-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dropdown-addresses {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-address-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
}

.dropdown-address-item:hover {
    background: #e9ecef;
}

.dropdown-address-item.selected {
    background: #e8f5e9;
    border: 1px solid #4caf50;
}

.dropdown-address-item.selected i:first-child {
    color: #4caf50;
}

.dropdown-address-item.out-of-zone {
    opacity: 0.6;
    background: #fff3cd;
}

.dropdown-address-item .address-info {
    flex: 1;
}

.dropdown-address-item .address-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.dropdown-address-item .address-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-address-item .zone-warning {
    font-size: 10px;
    color: #856404;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-add-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: none;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-add-address:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item.logout {
    color: var(--error-color);
}

.dropdown-item.logout:hover {
    background: #ffebee;
}

.no-address {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   AUTH MODALS
   ============================================ */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.auth-modal.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.auth-modal.open .auth-modal-content {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.2s;
    z-index: 10;
}

.auth-modal-close:hover {
    background: #e9ecef;
    color: var(--text-color);
}

.auth-modal-header {
    padding: 32px 24px 20px;
    text-align: center;
}

.auth-modal-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.auth-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.auth-modal-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-modal-body {
    padding: 0 24px 24px;
}

.auth-modal-body .form-group {
    margin-bottom: 16px;
}

.auth-modal-body .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-color);
}

.auth-modal-body input,
.auth-modal-body textarea,
.auth-modal-body select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.2s;
}

.auth-modal-body input:focus,
.auth-modal-body textarea:focus,
.auth-modal-body select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.phone-prefix {
    padding: 12px;
    background: #f8f9fa;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.phone-input-group input {
    border: none;
    border-radius: 0;
}

.phone-input-group input:focus {
    box-shadow: none;
}

.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-auth-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.btn-auth-outline {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.btn-auth-secondary {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-auth-secondary:hover {
    background: #e8e8e8;
    color: #333;
}

.existing-member-notice {
    text-align: center;
    padding: 15px 0;
}

.existing-member-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guest-password-tip {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #2e7d32;
}

.guest-password-tip i {
    color: #43a047;
    font-size: 16px;
    margin-top: 1px;
}

.guest-password-tip a {
    color: #1b5e20;
    font-weight: 600;
    text-decoration: underline;
}

/* NOT: Membership Offer Box / Password Fields stilleri kaldirildi — inline uyelik
   teklifi markup i yok, tek uyelik yolu #headerRegisterModal. */

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

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

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

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

.toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Register Benefit Box */
.register-benefit-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffd54f;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    color: #5d4037;
}

.register-benefit-box i {
    color: #f57c00;
    font-size: 20px;
    margin-top: 2px;
}

/* Guest Address Selection */
.guest-address-list {
    margin-bottom: 15px;
}

.guest-address-list .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.guest-address-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-address-item:hover:not(.out-of-zone) {
    background: #fff;
    border-color: #4caf50;
}

/* Radio butonunu gizle */
.guest-address-item input[type="radio"] {
    display: none;
}

/* Seçili adres - yeşil */
.guest-address-item.selected,
.guest-address-item:has(input[type="radio"]:checked) {
    background: #e8f5e9;
    border-color: #4caf50;
}

.guest-address-item.selected .address-title,
.guest-address-item:has(input[type="radio"]:checked) .address-title {
    color: #2e7d32;
}

.guest-address-item label {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guest-address-item .address-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.guest-address-item .address-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Teslimat bölgesi dışı - kırmızı */
.guest-address-item.out-of-zone {
    background: #ffebee;
    border-color: #ffcdd2;
    cursor: not-allowed;
}

.guest-address-item.out-of-zone .address-title {
    color: #c62828;
}

.guest-address-item.out-of-zone .address-text {
    color: #e57373;
}

.guest-address-item.out-of-zone:hover {
    border-color: #ffcdd2;
    background: #ffebee;
}

.guest-address-item .zone-warning {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #c62828;
    margin-top: 4px;
    font-weight: 500;
}

.guest-address-item .zone-warning i {
    font-size: 12px;
}

/* Yeni adres ekle butonu */
.guest-address-item.add-new {
    background: #fff;
    border: 2px dashed #bdbdbd;
    justify-content: center;
    align-items: center;
    color: #757575;
    font-weight: 500;
    font-size: 14px;
    gap: 8px;
}

.guest-address-item.add-new:hover {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.guest-address-item.add-new i {
    font-size: 18px;
}

.guest-address-item.add-new.selected {
    background: #e8f5e9;
    border-color: #4caf50;
    border-style: solid;
    color: #2e7d32;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Register Steps */
.register-step {
    animation: fadeIn 0.3s ease;
}

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

.sms-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    color: #1565c0;
}

.sms-info i {
    font-size: 20px;
}

.sms-code-input {
    text-align: center;
    font-size: 18px !important;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--text-muted) !important;
}

.sms-resend {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.sms-resend a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Address Selection Modal */
.address-select-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.address-select-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

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

.address-select-item.selected {
    border-color: #4caf50;
    background: #e8f5e9;
}

.address-select-item.out-of-zone {
    opacity: 0.7;
    background: #fff3cd;
    border-color: #ffc107;
}

.address-select-icon {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
}

.address-select-item.selected .address-select-icon {
    background: #4caf50;
    color: white;
}

.address-select-info {
    flex: 1;
}

.address-select-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.address-select-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.address-zone-warning {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #856404;
    margin-top: 4px;
}

.address-check {
    color: #4caf50;
    font-size: 20px;
}

.btn-add-address {
    width: 100%;
    padding: 12px;
    background: none;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-add-address:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.no-address-msg {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

.no-address-msg i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* Warning Modal */
.warning-modal {
    text-align: center;
    padding: 32px 24px;
}

.warning-icon {
    width: 64px;
    height: 64px;
    background: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.warning-icon i {
    font-size: 32px;
    color: #856404;
}

.warning-modal h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.warning-modal p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.warning-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-warning-primary,
.btn-warning-secondary {
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.btn-warning-primary:hover {
    opacity: 0.9;
}

.btn-warning-secondary {
    background: #f8f9fa;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-warning-secondary:hover {
    background: #e9ecef;
}

/* Form Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .header-action-text {
        display: none;
    }

    .header-action-btn {
        padding: 8px;
    }

    .header-user-btn span#headerUserName {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-dropdown {
        width: calc(100vw - 32px);
        right: -8px;
    }

    .auth-modal {
        padding: 16px;
    }

    .auth-modal-content {
        max-height: 85vh;
    }
}

/* NOT: GUEST MODAL STYLES blogu kaldirildi — misafir siparis akisi (#guestModal,
   .btn-guest-continue, .guest-step, .guest-form-section, .guest-badge, .auth-divider)
   tamamen silindi. Tek uyelik yolu: #headerRegisterModal. */

/* ============================================
   TERMS AGREEMENTS (Register Modal — Flutter parity)
   ============================================ */
/* Sozlesme UI — beyaz/gri neutral palet. Dark mode'da (WebView auto-invert)
   renk kaymasin diye tum renkler !important. color-scheme: light form
   elementleri de dark-mode'a donusmesin diye. */
.terms-info-links,
.terms-agreements {
    color-scheme: light;
}

.terms-agreements {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 14px 14px 8px;
    background: #ffffff !important;
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6 !important;
}

.terms-agreements .agreement-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0 !important;
}

.terms-agreements .agreement-item:last-of-type {
    border-bottom: none;
    padding-bottom: 4px;
}

.terms-agreements .agreement-title {
    display: block;
    color: #212529 !important;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: underline;
    margin-bottom: 6px;
}

.terms-agreements .agreement-title:hover {
    color: #000 !important;
}

.terms-agreements .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    color: #495057 !important;
}

.terms-agreements .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.terms-agreements .checkbox-label span {
    flex: 1;
}

.terms-agreements .req-star {
    color: #dc3545 !important;
    font-weight: 700;
}

.terms-agreements .agreement-footer {
    font-size: 11px;
    color: #6c757d !important;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0 !important;
}

/* ============================================
   TERMS CHECKBOX (Register/Guest Modal)
   ============================================ */
.terms-checkbox {
    margin-top: 16px;
    margin-bottom: 16px;
}

.terms-checkbox.register-terms {
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.terms-checkbox .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
}

.terms-checkbox .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.terms-checkbox .checkbox-label span {
    flex: 1;
}

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

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

/* Bilgilendirme Linkleri (Onay Gerektirmeyen) */
.terms-info-links {
    margin-top: 16px;
    padding: 10px 12px;
    background: #f8f9fa !important;
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6 !important;
}

.terms-info-links .info-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #495057 !important;
}

.terms-info-links .info-link-item:first-child {
    padding-top: 0;
}

.terms-info-links .info-link-item:last-child {
    padding-bottom: 0;
}

.terms-info-links .info-link-item i {
    font-size: 14px;
    color: #6c757d !important;
}

.terms-info-links .info-link-item a {
    color: #212529 !important;
    text-decoration: underline;
    font-weight: 500;
}

.terms-info-links .info-link-item a:hover {
    color: #000 !important;
}

/* Onay Gerektiren Sözleşmeler Container */
.terms-checkboxes.register-terms {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.terms-checkboxes .terms-checkbox {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.terms-checkboxes .terms-checkbox:first-child {
    padding-top: 0;
}

.terms-checkboxes .terms-checkbox:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* ============================================
   CONTENT MODAL (Sözleşmeler)
   ============================================ */
.content-modal {
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.content-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.content-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.content-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.content-modal-body h1,
.content-modal-body h2,
.content-modal-body h3,
.content-modal-body h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.content-modal-body h1 { font-size: 20px; }
.content-modal-body h2 { font-size: 18px; }
.content-modal-body h3 { font-size: 16px; }
.content-modal-body h4 { font-size: 15px; }

.content-modal-body p {
    margin-bottom: 12px;
}

.content-modal-body ul,
.content-modal-body ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.content-modal-body li {
    margin-bottom: 6px;
}

.content-modal-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #888;
}

.content-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

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

.content-error {
    text-align: center;
    color: #dc3545;
    padding: 20px;
}
