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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --accent: #e63946;
    --accent-dark: #c1121f;
    --accent-light: #ff6b6b;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --warning: #f59e0b;
    --header-bg: #0f0f0f;
    --footer-bg: #0a0a0a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.driver-avatar-svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ========== SVG ICON SYSTEM ========== */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
    line-height: 1;
}

/* SVG file icons (external <img>) */
img.svg-icon{width:20px;height:20px;display:inline-block;object-fit:contain;}

/* Navigation icons inherit text color automatically */
/* Action icons are bolder by design (2px stroke in sprite) */

/* ---- Colorful icon classes ---- */
.icon-accent { color: #e63946; }
.icon-success { color: #10b981; }
.icon-danger { color: #ef4444; }
.icon-warning { color: #f59e0b; }
.icon-blue { color: #3b82f6; }
.icon-pink { color: #ec4899; }
.icon-teal { color: #14b8a6; }
.icon-purple { color: #8b5cf6; }
.icon-orange { color: #f97316; }
.icon-muted { color: rgba(255,255,255,0.5); }
.icon-star { color: #fbbf24; }
.icon-fire { color: #ff6b6b; }
.icon-halal { color: #22c55e; }
.icon-gold { color: #fbbf24; }

/* Gradient-filled icons (star, fire, zap, crown, crescent) use SVG gradient defs */
/* They don't need color classes - their fill comes from the sprite gradients */

/* Ensure SVG icons render inside any container */
button .svg-icon,
a .svg-icon,
h2 .svg-icon,
h3 .svg-icon,
span .svg-icon,
div .svg-icon,
label .svg-icon,
strong .svg-icon,
td .svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Icon spacing when next to text */
.svg-icon + span,
.svg-icon + strong,
.svg-icon + a {
    margin-left: 0.25em;
}

/* ==== RESPONSIVE HEADER ==== */
.header {
    background: linear-gradient(180deg, var(--header-bg) 0%, rgba(15,15,15,0.95) 100%);
    backdrop-filter: blur(20px);
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1rem, 4vw, 3rem);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    white-space: nowrap;
}

.nav-buttons {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    align-items: center;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    color: #fff;
    padding: clamp(0.4rem, 1vw, 0.6rem);
    border-radius: 8px;
    width: clamp(35px, 8vw, 45px);
    height: clamp(35px, 8vw, 45px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(230, 57, 70, 0.2);
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
    font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #1a1a1a;
}

.login-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    padding: clamp(0.5rem, 1.5vw, 0.7rem) clamp(1rem, 3vw, 2rem);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: clamp(0.85rem, 2vw, 1rem);
    white-space: nowrap;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* ==== RESPONSIVE HERO ==== */
.hero {
    position: relative;
    height: clamp(350px, 60vh, 600px);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* FIX: center video so important content stays visible on all crops */
    object-position: center center;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(238, 90, 111, 0.15), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(1rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #fff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    color: rgba(255, 255, 255, 0.9);
}

.cta-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: clamp(0.8rem, 2vw, 1.3rem) clamp(2rem, 5vw, 3.5rem);
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

/* ==== RESPONSIVE CATEGORIES ==== */
.category-bar {
    background: #000;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem);
    overflow-x: auto;
}

.category-bar::-webkit-scrollbar {
    height: 6px;
}

.category-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 3px;
}

.categories {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    min-width: min-content;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: clamp(70px, 15vw, 90px);
    opacity: 0.6;
    padding: 0.5rem;
    border-radius: 12px;
}

.category-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

/* FIX TASK 4: Category icon container - fixed dimensions for consistent image display */
.category-icon {
    font-size: clamp(2rem, 5vw, 2.8rem);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    flex-shrink: 0;
}

/* FIX TASK 4: Category image - proper cover fit, no distortion, rounded corners */
.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.category-item.active {
    opacity: 1;
    background: rgba(255, 107, 107, 0.15);
}

.category-item.active .category-icon {
    transform: scale(1.15);
}

.category-name {
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    font-weight: 400;
    text-align: center;
}

.category-item.active .category-name {
    color: #ff6b6b;
    font-weight: 700;
}

/* ==== RESPONSIVE MAIN CONTENT ==== */
.main-content {
    max-width: 1400px;
    margin: clamp(2rem, 5vw, 4rem) auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
    font-weight: 300;
    letter-spacing: 3px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 4rem;
}

.food-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.food-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.4);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15);
}

.favorite-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    transform: scale(1.15);
}

.favorite-btn.active {
    background: rgba(230, 57, 70, 0.5);
    animation: heartBeat 0.6s ease-in-out;
}

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

.food-image {
    width: 100%;
    height: clamp(160px, 30vw, 200px);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(193, 18, 31, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3.5rem, 9vw, 5rem);
    position: relative;
    overflow: hidden;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.food-info {
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.food-name {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.food-desc {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.food-price {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--accent);
}

.add-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    padding: clamp(0.5rem, 1.2vw, 0.7rem) clamp(1rem, 2.5vw, 1.5rem);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    white-space: nowrap;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
}

/* ==== RESPONSIVE MODALS ==== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1rem);
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 57, 70, 0.5) rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar (WebKit browsers: Chrome, Edge, Safari) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.55);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 57, 70, 0.85);
    background-clip: padding-box;
}

.close-btn {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    border-radius: 50%;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #fff;
}

.modal h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

.form-group {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.08);
}

/* Date inputs — constrained width, compact sizing */
.form-group input[type="date"] {
    max-width: 200px;
    height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.form-group small {
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    display: block;
    margin-top: 0.3rem;
}

/* ── Payment Method Card Selector ── */
.payment-method-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.1rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.65);
}

.payment-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.payment-card.selected {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.payment-card .payment-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    justify-content: center;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: clamp(40px, 10vw, 45px);
    height: clamp(40px, 10vw, 45px);
    border-radius: 10px;
    cursor: pointer;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    transition: all 0.3s;
    font-weight: bold;
}

.qty-btn:hover {
    background: rgba(255, 107, 107, 0.3);
}

.qty-display {
    font-size: clamp(1.4rem, 3.5vw, 1.6rem);
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-btn {
    padding: clamp(0.9rem, 2vw, 1.1rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.google-btn:hover {
    background: rgba(66, 133, 244, 0.2);
}

.apple-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
}

.apple-btn:hover {
    background: #fff;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 43%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.submit-btn {
    width: 100%;
    padding: clamp(1rem, 2.5vw, 1.2rem);
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.cart-item {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(1rem, 2.5vw, 1.2rem);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    gap: 1rem;
}

.cart-total {
    border-top: 2px solid rgba(255, 107, 107, 0.3);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    font-weight: 700;
}

.map-btn {
    background: rgba(66, 133, 244, 0.2);
    color: #6ba3ff;
    padding: clamp(0.8rem, 2vw, 1rem);
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    margin-top: 0.7rem;
    transition: all 0.3s;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.map-btn:hover {
    background: rgba(66, 133, 244, 0.3);
}

/* ==== RESPONSIVE FOOTER ==== */
.social-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
    margin-top: clamp(3rem, 6vw, 6rem);
    border-top: 1px solid rgba(230, 57, 70, 0.2);
}

.social-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
}

.social-icon {
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.7;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ==== MOBILE SPECIFIC ==== */
@media (max-width: 640px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        border-radius: 15px;
        max-height: calc(100vh - 40px);
    }
    
    .categories {
        padding-bottom: 0.5rem;
    }
}

/* ==== TABLET SPECIFIC ==== */
@media (min-width: 641px) and (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==== DESKTOP LARGE ==== */
@media (min-width: 1025px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== TOUCH DEVICE OPTIMIZATIONS ==== */
@media (hover: none) and (pointer: coarse) {
    .icon-btn, .add-btn, .submit-btn, .map-btn, .cta-btn {
        min-height: 44px;
    }
    
    .food-card:active {
        transform: translateY(-5px);
    }
}

/* ========================================
   MOBILE MENU & RESPONSIVE
   ======================================== */

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-menu-btn.active {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .header-content {
        padding: 0 1rem;
    }
}

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

.icon-btn[title="Driver"] {
    position: relative;
}

.icon-btn[title="Driver"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.icon-btn[title="Driver"]:hover::after {
    width: 80%;
}

/* ========================================
   STAR RATING STYLES - TOUCH OPTIMIZED
   ======================================== */
#starRating {
    position: relative;
    z-index: 100;
}

#starRating .star-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, opacity 0.15s ease;
    position: relative;
    z-index: 101;
}

#starRating .star-btn:hover {
    transform: scale(1.2) !important;
}

#starRating .star-btn:active {
    transform: scale(0.95) !important;
}

#starRating .star-btn:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure stars are always clickable */
#writeReviewModal .modal-content {
    overflow: visible;
}

#writeReviewModal .form-group {
    position: relative;
    z-index: 50;
}

/* ========================================
   DRIVER MANAGEMENT STYLES
   ======================================== */

.driver-management-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem !important;
}

.edit-driver-modal {
    max-width: 480px;
}

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

.driver-modal-header .driver-modal-icon {
    font-size: 3rem;
    margin-bottom: 0.3rem;
}

.driver-modal-header h2 {
    color: #10b981;
    margin: 0 0 0.3rem 0;
    font-size: 1.4rem;
}

.driver-modal-header p {
    color: rgba(255,255,255,0.5);
    margin: 0;
    font-size: 0.9rem;
}

/* Add Driver Section */
.add-driver-section {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.add-driver-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    cursor: pointer;
    background: rgba(16,185,129,0.1);
}

.add-driver-section .section-header h3 {
    color: #10b981;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.add-driver-section .toggle-icon {
    color: #10b981;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.add-driver-form {
    padding: 1.2rem;
}

.add-driver-form.collapsed {
    display: none;
}

/* Driver Photo Upload */
.driver-photo-upload {
    text-align: center;
    margin-bottom: 1rem;
}

.driver-pic-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    overflow: hidden;
    border: 3px solid rgba(16,185,129,0.4);
}

.driver-pic-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-btn {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.photo-btn:hover {
    background: rgba(255,255,255,0.12);
}

/* Driver Form Grid */
.driver-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.driver-form-grid .form-group {
    margin: 0;
}

.driver-form-grid .form-group label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.3rem;
}

/* FIX: Added -webkit-appearance, option styling for readable dropdown on all browsers */
.driver-form-grid select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2rem;
}

.driver-form-grid select option {
    background: #1a1a2e;
    color: white;
    padding: 0.5rem;
}

/* Add Driver Button */
.add-driver-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.add-driver-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

/* Driver List Section */
.driver-list-section {
    margin-top: 0.5rem;
}

.driver-list-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.driver-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Driver Card */
.driver-card {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #10b981;
    transition: background 0.2s;
}

.driver-card:hover {
    background: rgba(255,255,255,0.06);
}

.driver-card.inactive {
    border-left-color: #ef4444;
    opacity: 0.85;
}

.driver-card-header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.driver-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #10b981;
}

.driver-card.inactive .driver-card-avatar {
    border-color: #ef4444;
}

.driver-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-card-info {
    flex: 1;
    min-width: 0;
}

.driver-card-name {
    font-weight: 700;
    font-size: 1rem;
    color: white;
    margin-bottom: 0.2rem;
}

.driver-card-code {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.driver-card-code strong {
    color: #f59e0b;
}

.driver-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.driver-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.driver-badge.active {
    background: rgba(16,185,129,0.15);
    color: #10b981;
}

.driver-badge.inactive {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.driver-badge.available {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

.driver-badge.unavailable {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
}

/* Driver Stats Row */
.driver-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.8rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Driver Actions */
.driver-card-actions {
    display: flex;
    gap: 0.5rem;
}

.driver-action-btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 40px;
}

.driver-action-btn.edit {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.3);
}

.driver-action-btn.toggle {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}

.driver-action-btn.toggle.activate {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
}

.driver-action-btn.delete {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
}

/* =============================
   SVG UI ICONS
   ============================= */
.ui-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    fill: currentColor;
    vertical-align: middle;
}

.ui-icon-24 {
    width: 24px;
    height: 24px;
}

/* Ensure icon buttons don't shrink SVG */
.icon-btn .ui-icon,
.mobile-menu-btn .ui-icon {
    flex: 0 0 auto;
}

/* ========================================
   TASK 1 FIX: Restaurant Dashboard Order Cards
   Redesigned for better mobile UX + cleaner layout
   ======================================== */
.rd-order-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.15s;
}

.rd-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rd-order-id {
    font-weight: 800;
    font-size: 1.05rem;
    color: white;
}

.rd-status-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rd-status-pending { background: rgba(245,158,11,0.2); color: #f59e0b; }
.rd-status-accepted { background: rgba(16,185,129,0.2); color: #10b981; }
.rd-status-ready { background: rgba(245,158,11,0.2); color: #f59e0b; }
.rd-status-driver { background: rgba(59,130,246,0.2); color: #3b82f6; }

.rd-order-body {
    padding: 0.8rem 1rem;
}

.rd-customer-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.rd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
}

.rd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-customer-info {
    flex: 1;
    min-width: 0;
}

.rd-customer-name {
    font-weight: 700;
    font-size: 1rem;
    color: white;
    margin-bottom: 0.15rem;
}

.rd-customer-detail {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rd-meta-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

.rd-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}

.rd-tag-collection { background: rgba(16,185,129,0.15); color: #10b981; }
.rd-tag-delivery { background: rgba(59,130,246,0.15); color: #3b82f6; }
.rd-tag-applepay { background: rgba(0,0,0,0.3); color: white; }
.rd-tag-card { background: rgba(139,92,246,0.15); color: #a78bfa; }
.rd-tag-time { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); }

.rd-items-box {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.7rem;
}

.rd-items-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rd-item-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    color: rgba(255,255,255,0.85);
}

.rd-total-line {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1rem;
    padding-top: 0.5rem;
    margin-top: 0.4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.rd-total-amount {
    color: #ff6b6b;
}

/* FIX: ETA display bar */
.rd-eta-bar {
    background: rgba(59,130,246,0.12);
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #60a5fa;
    margin-bottom: 0.6rem;
}
/* UPGRADED TASK 2: Multi-line ETA display with countdown */
.rd-eta-upgraded {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    position: relative;
    padding-right: 4.5rem;
}
.rd-eta-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: #60a5fa;
}
.rd-eta-row strong { color: #93bbfc; }
.rd-eta-countdown {
    font-weight: 700;
    font-size: 0.8rem;
    color: #f59e0b;
    margin-left: 0.3rem;
}

.rd-eta-bar strong { color: #93bbfc; }
.rd-eta-change {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.78rem;
    text-decoration: underline;
    padding: 0;
    position: absolute;
    right: 0.6rem;
    top: 0.55rem;
}

/* FIX: Sticky action bar inside each order card */
.rd-actions {
    display: grid;
    gap: 0.5rem;
    padding: 0.7rem 1rem 0.8rem;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.rd-actions-2col { grid-template-columns: 1fr 1fr; }
.rd-actions-1col { grid-template-columns: 1fr; }

.rd-btn {
    border: none;
    padding: 0.7rem 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.1s, opacity 0.1s;
    color: white;
    min-height: 42px;
}

.rd-btn:active { transform: scale(0.97); opacity: 0.9; }

.rd-btn-accept { background: linear-gradient(135deg, #10b981, #059669); }
.rd-btn-reject { background: linear-gradient(135deg, #ef4444, #dc2626); }
.rd-btn-eta { background: rgba(59,130,246,0.2); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.rd-btn-ready { background: linear-gradient(135deg, #f59e0b, #d97706); font-size: 0.95rem; padding: 0.8rem; }
.rd-btn-complete { background: linear-gradient(135deg, #10b981, #059669); font-size: 0.95rem; padding: 0.8rem; }
.rd-btn-notify { background: linear-gradient(135deg, #f59e0b, #d97706); font-size: 0.95rem; padding: 0.8rem; }
.rd-btn-assign { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.rd-btn-print { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.rd-ready-banner {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    padding: 0.7rem;
    border-radius: 8px;
    text-align: center;
}

.rd-ready-banner-title {
    font-weight: 700;
    color: #f59e0b;
    font-size: 0.9rem;
}

.rd-ready-banner-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.2rem;
}

/* ========================================
   REDESIGNED PENDING ORDERS DASHBOARD (v18)
   - Clear item blocks with paid/free separation
   - Compact ETA card
   - Professional look, better hierarchy
   ======================================== */

/* Card accent borders by status */
.rd-order-card.rd-card-pending { border-left: 3px solid #f59e0b; }
.rd-order-card.rd-card-accepted { border-left: 3px solid #10b981; }
.rd-order-card.rd-card-ready { border-left: 3px solid #f59e0b; }
.rd-order-card.rd-card-waiting_driver { border-left: 3px solid #f59e0b; }
.rd-order-card.rd-card-driver_assigned,
.rd-order-card.rd-card-out_for_delivery { border-left: 3px solid #3b82f6; }

.rd-order-card:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.12);
}

/* Header: order id on left + time; status pill on right */
.rd-order-header-left {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.rd-order-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* Customer card — cleaner version with background */
.rd-customer-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.rd-phone-link {
    color: inherit;
    text-decoration: none;
}
.rd-phone-link:hover {
    color: #2dd4bf;
    text-decoration: underline;
}

/* Compact ETA Card (redesign) */
.rd-eta-card {
    background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(59,130,246,0.05));
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.7rem;
    position: relative;
}
.rd-eta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 0.6rem;
}
.rd-eta-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.rd-eta-cell-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}
.rd-eta-cell-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #dbeafe;
}
.rd-eta-cell-primary .rd-eta-cell-value {
    color: #ffffff;
}
.rd-eta-countdown {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    background: rgba(245,158,11,0.18);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 0.3rem;
}
.rd-eta-card .rd-eta-change {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #60a5fa;
    cursor: pointer;
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    transition: all 0.15s;
}
.rd-eta-card .rd-eta-change:hover {
    background: rgba(59,130,246,0.3);
    color: #93c5fd;
}

/* Item blocks — each dish with free/paid split */
.rd-item-block {
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.rd-item-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0.4rem;
}
.rd-item-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 0.55rem;
    margin-bottom: 0.3rem;
}
.rd-item-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 0.4rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1;
}
.rd-item-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}
.rd-item-price {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Free (included) selections — compact, comma-separated */
.rd-sel-free {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    background: rgba(16,185,129,0.08);
    border-left: 2px solid rgba(16,185,129,0.4);
    border-radius: 4px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    margin: 0.25rem 0 0.35rem 1.85rem;
    line-height: 1.4;
}
.rd-sel-free span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

/* Paid extras list — each on its own row with price */
.rd-sel-paid-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-left: 1.85rem;
    margin-bottom: 0.25rem;
}
.rd-sel-paid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.55rem;
    background: rgba(245,158,11,0.06);
    border-left: 2px solid rgba(245,158,11,0.4);
    border-radius: 4px;
    font-size: 0.78rem;
}
.rd-sel-paid-name { color: rgba(255,255,255,0.82); }
.rd-sel-paid-price {
    color: #fbbf24;
    font-weight: 700;
    white-space: nowrap;
}

/* Note / instructions under item */
.rd-item-note {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.35rem 0 0.25rem 1.85rem;
    padding: 0.3rem 0.55rem;
    background: rgba(245,158,11,0.08);
    border-left: 2px solid rgba(245,158,11,0.5);
    border-radius: 4px;
    font-size: 0.77rem;
    font-style: italic;
    color: #fcd34d;
    line-height: 1.35;
}

/* ========================================
   FIX TASK C: Show/Hide Password Toggle
   ======================================== */
.pw-toggle-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.pw-toggle-wrap input {
    padding-right: 2.8rem !important;
    width: 100%;
}

.pw-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.pw-toggle-btn:hover,
.pw-toggle-btn:focus {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.08);
    outline: none;
}

.pw-toggle-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ========================================
   FIX: iOS PWA Standalone Mode Safe Area
   Prevents layout jump when no Safari URL bar
   ======================================== */
@supports (padding: max(0px)) {
    body {
        padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
    }
}

/* Apple Pay logo sizing */
.apple-pay-logo, .apple-pay-logo-sm {
    height: 20px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}
