@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary: #00A99D;
    --primary-dark: #00847a;
    --primary-light: #00c7b7;
    --turquoise: #00A99D;
    --turquoise-dark: #00847a;
    --secondary: #00A99D;
    --accent: #00A99D;
    --accent2: #7B2D7F;
    --success: #2dc653;
    --warning: #f4a261;
    --danger: #e63946;
    --dark: #0a1628;
    --dark2: #1c2e4a;
    --gray: #6b7a99;
    --light: #f0f4f8;
    --light2: #e8edf5;
    --white: #ffffff;
    --text: #1c2e4a;
    --text-light: #6b7a99;
    --border: #dce4f0;
    --shadow: 0 8px 32px rgba(0, 169, 157, 0.12);
    --shadow-sm: 0 2px 12px rgba(0, 169, 157, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 169, 157, 0.18);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== APP CONTAINER ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    position: relative;
    box-shadow: 0 0 60px rgba(0, 169, 157, 0.1);
    overflow: hidden;
}

/* ===== HEADER ===== */
header {
    background: #ffffff;
    color: var(--text);
    padding: 1.2rem 1.4rem 1rem;
    position: relative;
    z-index: 100;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 169, 157, 0.08);
}

header::before {
    display: none;
}

header::after {
    display: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span:first-child {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.logo-text span:last-child {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
    display: none;
}

.header-actions {
    display: flex;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.header-btn {
    width: 38px;
    height: 38px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.header-btn:active {
    background: rgba(255,255,255,0.25);
    transform: scale(0.95);
}

.notif-dot {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.6);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--light);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    margin-top: 0.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 169, 157, 0.05);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.12);
}

.search-icon {
    color: var(--text-light);
    font-size: 0.95rem;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    flex: 1;
    font-family: 'Tajawal', sans-serif;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-light);
}

/* ===== CONTENT ===== */
.content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

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

/* ===== HOME PAGE ===== */

.hero-section {
    padding: 1rem 1.4rem;
}

.hero-carousel {
    position: relative;
}

.hero-slides {
    display: flex;
    direction: ltr;
    transition: transform 0.5s ease;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-slide {
    min-width: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-tag {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.hero-btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.hero-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hero-dot {
    width: 8px;
    height: 8px;
    background: var(--light2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding: 0 1.4rem 1rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.2rem;
}

.stat-icon.blue {
    background: #e8f4ff;
    color: var(--primary);
}

.stat-icon.green {
    background: #e8f8ed;
    color: var(--success);
}

.stat-icon.orange {
    background: #fff4e8;
    color: var(--warning);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.promo-section {
    padding: 0 1.4rem 1rem;
}

.promo-card {
    background: linear-gradient(135deg, var(--accent2) 0%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.promo-text h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.promo-text p {
    font-size: 0.8rem;
    opacity: 0.85;
}

.promo-btn {
    background: var(--white);
    color: var(--turquoise-dark);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
}

.section-header {
    padding: 1rem 1.4rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.filter-chips {
    display: flex;
    gap: 0.6rem;
    padding: 0.5rem 1.4rem;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    background: var(--light2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chip:hover {
    border-color: var(--primary);
    background: rgba(0, 169, 157, 0.05);
}

.chip:active {
    transform: scale(0.95);
}

.chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.2);
}

.products-section {
    padding: 0.8rem 1.4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 169, 157, 0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 169, 157, 0.15);
    border-color: var(--primary-light);
}

.product-card:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 169, 157, 0.1);
}

.product-image {
    width: 100%;
    height: 180px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0.5rem;
}

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

.product-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 2;
}

.product-badge.badge-hot {
    background: var(--danger);
}

.product-badge.badge-sale {
    background: var(--warning);
}

.product-badge.badge-eco {
    background: var(--success);
}

.product-info {
    padding: 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00A99D;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.product-desc {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    flex: 1;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.product-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: #7B2D7F;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
}

.product-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    width: 100%;
}

.product-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-btn.add {
    background: #00A99D;
    color: var(--white);
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.product-btn.add:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.4);
}

.product-btn.add:active {
    transform: scale(0.95);
}

.product-btn.fav {
    background: var(--light2);
    color: var(--text-light);
}

.product-btn.fav:hover {
    background: #f0f0f0;
    transform: scale(1.08);
}

.product-btn.fav.active {
    background: #ffe8ec;
    color: var(--danger);
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

/* ===== CART PAGE ===== */
.cart-page-inner,
.orders-page-inner,
.favorites-page-inner {
    padding: 1rem 1.4rem;
}

.cart-header-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.cart-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    display: flex;
    gap: 0.8rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--light2);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text);
    transition: var(--transition);
}

.qty-btn:active {
    background: var(--turquoise);
    color: var(--white);
}

.qty-value {
    width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-right: 0.5rem;
}

.cart-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.summary-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.btn-primary {
    background: #00A99D;
    color: var(--white);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 157, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 169, 157, 0.15);
}

.btn-secondary {
    background: var(--light2);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.btn-secondary:active {
    background: var(--border);
}

/* ===== CHECKOUT PAGES ===== */
.checkout-page-inner {
    padding: 0.8rem 1.4rem 1rem;
    overflow-y: auto;
    height: 100%;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.back-btn {
    background: var(--light2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.back-btn:active {
    background: var(--border);
}

.checkout-title {
    font-weight: 800;
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
}

.checkout-step {
    display: none;
}

.checkout-progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}

.progress-num {
    width: 28px;
    height: 28px;
    background: var(--light2);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition);
}

.progress-step.active .progress-num {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.progress-label {
    text-align: center;
    color: var(--text-light);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 -0.3rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
}

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

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

/* ===== INVOICE ===== */
.invoice-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.invoice-header {
    text-align: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.invoice-header h2 {
    font-size: 1.3rem;
    margin: 0;
}

.invoice-header p {
    margin: 0;
}

.invoice-section {
    margin-bottom: 1rem;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light2);
}

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

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.invoice-item-name {
    flex: 1;
}

.invoice-item-qty {
    color: var(--text-light);
    margin: 0 0.5rem;
}

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

/* ===== PAYMENT METHODS ===== */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.payment-method-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.4rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-card:active {
    transform: translateY(-2px);
}

.payment-method-card.active {
    border-color: var(--primary);
    background: #ffffff; /* تغيير الخلفية للون الأبيض */
}

.payment-icon {
    width: 85px;
    height: 50px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.payment-info {
    flex: 1;
}

.payment-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.payment-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

#card-payment-form {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

/* ===== OTP PAGE ===== */
.otp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem 1.4rem;
    text-align: center;
}

.otp-header {
    margin-bottom: 2rem;
}

.otp-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.otp-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.otp-phone {
    background: var(--light2);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.otp-form {
    width: 100%;
}

.otp-inputs {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 45px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

.otp-resend {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ===== SUCCESS PAGE ===== */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem 1.4rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-container h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-container p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.success-details {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

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

/* ===== FAVORITES PAGE ===== */
.favorites-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.favorites-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ===== NOTIFICATIONS PAGE ===== */
.menu-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.menu-item-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.menu-item-text {
    flex: 1;
}

.menu-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.menu-item-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: flex-end;
}

.product-modal {
    background: var(--white);
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.2rem 1.4rem;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--light2);
    border-radius: 2px;
    margin: -0.5rem auto 1rem;
}

.modal-image {
    width: 100%;
    height: 200px;
    background: var(--light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--light);
    border-radius: 10px;
}

.modal-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.modal-qty-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem;
}

.modal-qty-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-qty-val {
    width: 30px;
    text-align: center;
    font-weight: 700;
}

.modal-add-btn {
    background: linear-gradient(135deg, var(--turquoise-dark) 0%, var(--turquoise) 100%);
    color: var(--white);
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.modal-add-btn:active {
    transform: scale(0.98);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    position: relative;
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(0, 169, 157, 0.08);
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    flex: 1;
    font-family: 'Tajawal', sans-serif;
    border-radius: 12px;
    position: relative;
}

.nav-item:hover:not(#nav-notif) {
    background: rgba(0, 169, 157, 0.05);
    color: var(--primary-light);
}

.nav-item.active {
    color: var(--turquoise-dark);
    background: rgba(0, 169, 157, 0.08);
}

#nav-notif {
    cursor: default !important;
    color: var(--text-light) !important;
    pointer-events: none;
}

#nav-notif:active {
    transform: none !important;
    background: none !important;
}

.nav-icon-wrap {
    position: relative;
    font-size: 1.3rem;
}

.nav-icon {
    display: block;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    border: 2px solid var(--white);
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}


/* ===== DISABLED PAYMENT METHOD ===== */
.payment-method-card.disabled-payment {
    opacity: 0.6;
    cursor: not-allowed;
    background: #fafafa;
}

.payment-method-card.disabled-payment:active {
    transform: none;
}

/* ===== PAYMENT CARD IMAGES ===== */
.payment-card-image {
    width: 36px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== ENHANCED CARD PAYMENT FORM ===== */
#card-payment-form {
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#card-payment-form form {
    max-width: 460px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid #e0e6ed;
    background: white;
}

#card-payment-form form .form-group input {
    background: white;
    border: 1.5px solid #e0e6ed;
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
}

#card-payment-form form .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 169, 157, 0.1);
    background: #f8fbff;
}

/* ===== CARD NUMBER FORMATTING ===== */
#card-number {
    letter-spacing: 0.15em;
    font-weight: 500;
}

#card-expiry {
    font-weight: 500;
    background: white;
    border: 1.5px solid #e0e6ed;
    padding: 0.7rem 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-align: center;
    direction: ltr;
}

#card-cvv {
    font-weight: 500;
    letter-spacing: 0.1em;
    background: white;
    border: 1.5px solid #e0e6ed;
    padding: 0.7rem 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-align: center;
    direction: ltr;
}

/* ===== ENHANCED OTP PAGE ===== */
.otp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem 1.4rem;
    text-align: center;
}

.otp-header {
    margin-bottom: 2rem;
}

.otp-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.otp-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.otp-phone {
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f8ff 100%);
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border: 1px solid #b3d9ff;
    font-size: 0.9rem;
}

.otp-form {
    width: 100%;
}

.otp-inputs {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 45px;
    height: 50px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    background: white;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
    background: #f8fbff;
}

.otp-input.filled {
    border-color: var(--primary);
    background: #f0f7ff;
}

.otp-resend {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.otp-resend button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.otp-resend button:hover {
    color: #00A99D;
}

/* ===== OTP LOADING STATE ===== */
.otp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.otp-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e6ed;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.otp-loading-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== OTP SUCCESS STATE ===== */
.otp-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.otp-success-icon {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dc653;
    font-size: 1.5rem;
}

.otp-success-text {
    font-size: 0.9rem;
    color: #2dc653;
    font-weight: 700;
}


/* ===== ADS SECTION ===== */
.ads-section {
    padding: 1rem 1.4rem;
    margin: 1rem 0;
}

.ads-carousel {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    transition: transform 0.5s ease;
}

.ad-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.ad-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.ads-dot.active {
    background: var(--primary) !important;
    width: 10px !important;
    height: 10px !important;
}

.ads-dot:hover {
    background: #bbb !important;
}

/* ===== ENHANCED STAT CARDS ===== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 1.8rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}


/* ===== CARD NUMBER LTR FIX ===== */
#card-number {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

/* ===== CVV AND EXPIRY FIX ===== */
#card-payment-form form .form-group input#card-expiry,
#card-payment-form form .form-group input#card-cvv {
    padding: 0.7rem 0.6rem;
    font-size: 0.85rem;
    text-align: center;
    direction: ltr;
}

/* ===== OTP INPUTS LTR FIX ===== */
.otp-inputs {
    direction: ltr;
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-input {
    direction: ltr;
}

/* ===== PAGE LOADING OVERLAY ===== */
#page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-content {
    animation: splashZoom 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-box {
    width: 100px;
    height: 100px;
    border: 3px solid var(--border);
    border-radius: 20px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,82,165,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loading-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes splashZoom {
    0% { transform: scale(1); opacity: 1; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

@keyframes logoPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#page-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ===== BANK ICON OTP ===== */
.bank-icon-container {
    margin-bottom: 1.5rem;
}

.bank-icon-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,82,165,0.1);
}

.bank-shield {
    display: none;
}

.bank-phone {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
    animation: phonePulse 2s infinite;
}

@keyframes phonePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}


/* ===== ANIMATION: SLIDE DOWN ===== */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== MODERN ERROR MESSAGES ===== */
.card-error-message {
    display: none !important;
}

/* ===== RESPONSIVE PAYMENT SECTION ===== */
@media (max-width: 768px) {
    .payment-icon {
        width: 75px !important;
        height: 45px !important;
    }
    
    .payment-method-card {
        padding: 1rem 0.8rem !important;
        gap: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .payment-icon {
        width: 70px !important;
        height: 42px !important;
    }
    
    .payment-method-card {
        padding: 0.9rem 0.6rem !important;
        gap: 0.6rem !important;
    }
    
    .payment-info {
        flex: 1;
        min-width: 0;
    }
    
    .payment-title {
        font-size: 0.9rem !important;
    }
    
    .payment-desc {
        font-size: 0.75rem !important;
    }
}


/* ===== SELECTED ADDRESS CARD ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#selected-address-card {
    animation: slideDown 0.3s ease-out;
}

#selected-address-card button:hover {
    background: #00A99D !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.3);
    transition: all 0.2s ease;
}

#selected-address-card button:active {
    transform: translateY(0);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES (FULL SCREEN & PROPER ALIGNMENT)
   ========================================================================== */

@media (max-width: 480px) {
    /* --- Container & Body Fixes --- */
    html, body {
        overflow: auto !important; /* السماح بالتمرير الكلي إذا لزم الأمر */
        height: auto !important;
        min-height: 100%;
    }

    .app-container {
        max-width: 100% !important; /* ملء كامل عرض الشاشة على الهواتف */
        height: auto !important;
        min-height: 100vh;
        box-shadow: none !important;
        margin: 0 !important;
        overflow: visible !important;
        display: block !important; /* منع مشاكل flex في الحاويات الكبيرة */
    }

    .content {
        overflow: visible !important;
        height: auto !important;
        padding-bottom: 80px; /* مساحة للشريط السفلي */
    }

    /* --- Header & Search Bar --- */
    header {
        padding: 1rem 1rem 0.8rem !important;
        position: sticky;
        top: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .logo-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .logo-text span:first-child {
        font-size: 1.1rem !important;
    }

    .search-bar {
        padding: 0.6rem 0.8rem !important;
        margin-top: 0.6rem !important;
    }

    /* --- Hero & Banners --- */

    .hero-section {
        padding: 0.8rem 1rem !important;
    }

    .hero-slides img {
        height: auto !important;
        min-height: 150px;
    }

    /* --- Products Grid --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* منتجين في كل صف */
        gap: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }

    .product-card {
        padding: 0.8rem !important;
    }

    .product-image {
        height: 120px !important;
    }

    .product-name {
        font-size: 0.85rem !important;
    }

    .product-price {
        font-size: 0.95rem !important;
    }

    /* --- Navigation Bar Fixes --- */
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 0.4rem 0.2rem !important;
        height: 70px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 169, 157, 0.1) !important;
    }

    .nav-item {
        padding: 0.4rem 0.2rem !important;
    }

    .nav-label {
        font-size: 0.7rem !important;
    }

    /* --- Forms & Checkout --- */
    .checkout-page-inner {
        padding: 1rem !important;
        height: auto !important;
    }

    .checkout-progress {
        gap: 0.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .progress-label {
        font-size: 0.65rem !important;
    }

    .form-group input, .form-group select {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    /* --- Modals --- */
    .product-modal {
        padding: 1.2rem 1rem !important;
        max-height: 90vh !important;
    }

    #map-modal > div {
        height: 90vh !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }

    /* --- Dynamic Content (Invoice/Cart) --- */
    #invoice-content > div, #cart-content > div {
        padding: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .invoice-item {
        font-size: 0.8rem !important;
        gap: 0.5rem !important;
    }

    /* --- Buttons --- */
    .btn-primary, .modal-add-btn, .promo-btn {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }

    /* --- Success & OTP --- */
    .success-container, .otp-container {
        padding: 1.5rem 1rem !important;
    }

    .otp-input {
        width: 40px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr !important; /* منتج واحد في الصف */
    }
    
    .logo-text {
        display: none; /* إخفاء النص لترك مساحة للشعار */
    }
    
    .nav-label {
        display: none; /* إخفاء نص القائمة السفلية */
    }
    
    .nav-icon {
        font-size: 1.4rem !important;
    }
}


/* ===== ENHANCED COUPON SECTION ===== */
.coupon-section-enhanced {
    animation: slideInUp 0.5s ease-out;
}

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

.coupon-section-enhanced input:focus {
    animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.coupon-section-enhanced button:active {
    animation: buttonPress 0.2s ease-out;
}

@keyframes buttonPress {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(2px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

#coupon-message {
    animation: messageSlide 0.4s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        max-height: 0;
        margin-top: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
        margin-top: 0.6rem;
    }
}

/* Success state styling */
#coupon-message.success {
    background: rgba(45, 198, 83, 0.12) !important;
    color: var(--success) !important;
    border-left-color: var(--success) !important;
}

/* Error state styling */
#coupon-message.error {
    background: rgba(230, 57, 70, 0.12) !important;
    color: var(--danger) !important;
    border-left-color: var(--danger) !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .coupon-section-enhanced {
        margin: 1rem 0;
        padding: 1.2rem;
    }
    
    .coupon-section-enhanced input,
    .coupon-section-enhanced button {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }
}

/* ===== PIN PAGE STYLES ===== */
.pin-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.pin-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pin-header h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.pin-atm-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.pin-atm-wrap img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.pin-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    min-height: 40px;
}

.pin-bank-row img {
    height: 30px;
    object-fit: contain;
    max-width: 100px;
}

.pin-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
    margin: 1rem 0;
}

.pin-desc span {
    font-weight: 700;
    color: var(--primary);
}

.pin-boxes {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    direction: ltr;
}

.pin-box {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--text);
    background: var(--light);
    outline: none;
    transition: var(--transition);
    -webkit-text-security: disc;
}

.pin-box:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

.pin-box.filled {
    border-color: var(--primary);
}

.pin-submit {
    width: 100%;
    padding: 1rem;
    background: #ccc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: not-allowed;
    transition: var(--transition);
}

.pin-submit.active {
    background: linear-gradient(135deg, var(--primary) 0%, #003d7a 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.2);
}

.decline-box-pin {
    display: none;
    background: #fff8f8;
    border: 1px solid #ff4d4d;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    gap: 0.8rem;
}

.decline-box-pin.show {
    display: flex;
    animation: shake 0.5s ease-in-out;
}

.decline-icon-pin {
    width: 32px;
    height: 32px;
    background: #ff4d4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.decline-text-pin {
    flex: 1;
    text-align: right;
}

.decline-title-pin {
    color: #ff4d4d;
    font-size: 0.9rem;
    font-weight: 700;
}

.decline-sub-pin {
    color: #666;
    font-size: 0.8rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
