/* ===================================
           RESET & BASE STYLES
        =================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Material Design Color Palette */
    --primary-color: #224478;
    --primary-light: #90aee0;
    --primary-dark: #122440;
    --secondary-color: #c4cad0;
    --secondary-dark: #778592;
    --background: #fcf7ff;
    --surface: #fcf7ff;
    --error: #b00020;
    --on-primary: #ffffff;
    --on-secondary: #000000;
    --on-background: #000000;
    --on-surface: #000000;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-disabled: rgba(0, 0, 0, 0.38);
    --divider: rgba(0, 0, 0, 0.12);

    /* Elevation Shadows - Material Design */
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --elevation-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --elevation-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --elevation-4: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    --elevation-5: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);

    /* Timing Functions */
    --timing-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --timing-deceleration: cubic-bezier(0, 0, 0.2, 1);
    --timing-acceleration: cubic-bezier(0.4, 0, 1, 1);
}

body {
    font-family:
        "Assistant",
        "Roboto",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

button {
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ===================================
           ANIMATIONS & KEYFRAMES
        =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 12px;
}

.confetti-container {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    height: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

.confetti {
    position: absolute;
    top: 0;
    left: var(--x, 50%);
    width: 8px;
    height: 8px;
    background-color: var(--color, var(--primary-color));
    opacity: 0;
    border-radius: 2px;
    animation: confetti-burst var(--duration, 2s) var(--delay, 0ms) ease-out forwards;
    animation-play-state: paused;
}

.confetti-container.confetti-playing .confetti {
    animation-play-state: running;
}

@keyframes confetti-burst {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    60% {
        opacity: 0.85;
    }
    100% {
        transform: translate(var(--tx, 0px), var(--ty, 60px)) rotate(var(--rot, 360deg)) scale(0.5);
        opacity: 0;
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s var(--timing-deceleration) forwards;
}

/* ===================================
           HEADER / HERO SECTION
        =================================== */
.hero {
    background-image: url("/images/hero-bg.png");
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: top center;
    color: var(--on-primary);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L50 50L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="1" fill="none"/><path d="M50 0L100 50L50 100L0 50Z" stroke="rgba(255,255,255,0.03)" stroke-width="1" fill="none"/></svg>');
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s var(--timing-deceleration);
}

.hero .logo {
    width: 20rem;
    max-width: 100%;
    margin-bottom: 24px;
}

/* ===================================
           MAIN CONTENT SECTIONS
        =================================== */
.main-content {
    background: #fafafa;
    padding-top: 64px;
}

.section {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s var(--timing-deceleration);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section h2,
section h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-content {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ===================================
           GAME PREVIEW CARDS
        =================================== */
.card-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    justify-content: center;
    width: 50%;
    min-width: 300px;
    margin: 48px auto;
}

.sample-card {
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    min-height: 357px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: var(--elevation-2);
    transition: all 0.4s var(--timing-standard);
    position: relative;
    overflow: hidden;
}

.sample-card.white-card {
    cursor: pointer;
}

.sample-card.white-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--elevation-5);
}

.black-card {
    background: #1a1a1a;
    color: white;
}

.white-card {
    background: white;
    color: var(--text-primary);
}

.card-text {
    font-size: 22px;
    line-height: 1.4;
    flex-grow: 1;
    padding: 5px;
    align-self: flex-start;
    overflow-wrap: normal;
    white-space: normal;
    font-family: "Crimson Pro", serif;
    font-weight: 400;
}

html[lang="he"] .card-text {
    font-family: "HadasimCLM", serif;
    font-size: 23px;
    direction: rtl;
}

html[lang="he"] .underscore {
    letter-spacing: -0.1em;
}

html[lang="he"] .latin {
    font-family: "Crimson Pro", serif;
}

html[lang="he"] .deck-id {
    bottom: 20px;
    right: 20px;
    left: unset;
}

html[lang="he"] .explicit.E {
    bottom: 20px;
    left: 20px;
    right: unset;
}

.deck-id {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 13px;
    font-family: "Assistant", sans-serif;
}

.white-card .deck-id {
    color: #00000099;
}

.black-card .deck-id {
    color: #ffffffb3;
}

.source {
    position: absolute;
    bottom: 60px;
    right: 0;
    font-size: 14px;
    left: 0;
    margin: auto;
    text-align: center;
    font-style: italic;
    font-family: "Crimson Pro", serif;
    font-weight: 400;
}

html[lang="he"] .source {
    font-family: "HadasimCLM", serif;
    font-style: normal;
    direction: rtl;
}

.white-card .source {
    color: var(--text-secondary);
}

.black-card .source {
    color: #ffffffb3;
}

.explicit {
    display: none;
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    width: 1.2rem;
    height: 1.2rem;
    text-align: center;
    border-radius: 3px;
    font-family: "Assistant", sans-serif;
    line-height: calc(1.2rem - 3px);
}

.white-card .explicit {
    border: 1px solid rgba(0, 0, 0, 60%);
    color: rgba(0, 0, 0, 60%);
    background: white;
}

.black-card .explicit {
    border: 1px solid black;
    background: #ffffffb3;
    color: black;
}

.explicit.E {
    display: block;
}

.button-container {
    margin: 16px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-container a {
    flex: 0 0 auto;
    width: fit-content;
}

/* ===================================
           FEATURES SECTION
        =================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.feature {
    background: var(--surface);
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--elevation-1);
    transition: all 0.3s var(--timing-standard);
    animation: scaleIn 0.6s var(--timing-deceleration);
}

.feature:hover {
    box-shadow: var(--elevation-3);
    transform: translateY(-8px);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 500;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

/* ===================================
           STATS SECTION
        =================================== */
.stats {
    background: white;
    padding: 64px 0;
}

.stats-grid {
    display: flex;
    width: 100%;
    gap: 32px;
    text-align: center;
}

.stat {
    padding: 32px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    box-shadow: var(--elevation-1);
    transition: all 0.3s var(--timing-standard);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: hidden;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: inherit;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-currency {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-plus {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 820px) {
    .stats-grid {
        flex-wrap: wrap;
    }

    html[dir="rtl"] .stats-grid.rtl-reverse {
        flex-direction: column-reverse;
    }
}

/* ===================================
           AVAILABLE DECKS SECTION
        =================================== */
.available-decks-section {
    background: linear-gradient(to bottom, var(--background) 0%, #f5f0fa 100%);
    padding: 64px 0;
}

.available-decks-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.available-decks-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.deck-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--elevation-2);
    transition: all 0.4s var(--timing-standard);
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.6s var(--timing-deceleration);
}

.deck-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.deck-flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--elevation-2);
    object-fit: cover;
}

.deck-card-body {
    padding: 24px;
}

.deck-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    background: var(--background);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--divider);
}

.deck-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.deck-price {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1.3;
}

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

.availability-info {
    text-align: center;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s var(--timing-standard);
}

.availability-badge.in-stock {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.availability-badge.limited {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.availability-badge.no-stock {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* RTL Support for Available Decks */
html[dir="rtl"] .deck-card-header,
html[dir="rtl"] .deck-stats,
html[dir="rtl"] .availability-badge {
    direction: rtl;
}

html[dir="rtl"] .deck-title {
    text-align: right;
}

/* Responsive Design for Available Decks */
@media (max-width: 768px) {
    .available-decks-section .section-title {
        font-size: 2rem;
    }

    .decks-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .deck-stats {
        grid-template-columns: 1fr;
    }
}

/* ===================================
           SIGN UP FORM SECTION
        =================================== */
.signup-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--on-primary);
    padding: 80px 0;
    position: relative;
}

.signup-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 16px;
}

.signup-intro {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

.already-ordered-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 0 auto 32px;
    max-width: 700px;
    font-size: 1rem;
    color: white;
}

.already-ordered-callout a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.already-ordered-callout a:hover {
    opacity: 0.85;
}

.already-ordered-callout.about-section-callout {
    background: rgba(34, 68, 120, 0.12);
    border-color: rgba(34, 68, 120, 0.3);
    color: var(--primary-color);
    margin-top: 50px;
}

.already-ordered-callout.about-section-callout a {
    color: var(--primary-color);
}

.signup-form {
    background: var(--surface);
    border-radius: 8px;
    padding: 48px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--elevation-5);
    animation: scaleIn 0.6s var(--timing-deceleration);
}

.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--divider);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.3s var(--timing-standard);
}

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

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

.quantity-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

html[dir="rtl"] .rtl-reverse {
    flex-direction: row-reverse;
}

/* CTA Button */
.btn {
    display: block;
    text-align: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--timing-standard);
    box-shadow: var(--elevation-2);
}

.btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-3);
    opacity: 0.95;
}

.btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: var(--elevation-1);
}

.btn.btn-light {
    background: linear-gradient(135deg, #c4dbff 0%, #eff4fa 100%);
    color: var(--primary-color);
}

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

.btn.btn-white:not(:disabled):hover {
    background: #ffffff;
    color: var(--primary-color);
}

.price-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--elevation-2);
    border-left: 4px solid var(--secondary-color);
    max-width: 700px;
    margin: 32px auto;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.price-info p {
    color: var(--text-primary);
    margin: 8px 0;
}

.price-info strong {
    color: var(--primary-color);
}

/* ===================================
           FOOTER
        =================================== */
.footer {
    background: #263238;
    color: rgba(255, 255, 255, 0.87);
    text-align: center;
    padding: 48px 24px;
}

.footer p {
    margin: 16px auto;
    opacity: 0.8;
}

.footer-sitemap {
    margin-bottom: 40px;
}

.footer-sitemap-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.footer-sitemap-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s var(--timing-standard);
    font-size: 0.95rem;
    padding: 4px 0;
}

.footer-link:hover {
    color: white;
    padding-left: 8px;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 32px auto 24px;
    max-width: 800px;
}

/* RTL Support for Footer */
html[dir="rtl"] .footer-sitemap-grid {
    text-align: right;
}

html[dir="rtl"] .footer-link:hover {
    padding-left: 0;
    padding-right: 8px;
}

/* ===================================
           RESPONSIVE DESIGN
        =================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

    .hero .description {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .signup-form {
        padding: 32px 24px;
    }

    .card-preview {
        grid-template-columns: 1fr;
    }

    .button-container a {
        width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-sitemap-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .footer-sitemap-column {
        gap: 8px;
    }

    html[dir="rtl"] .footer-sitemap-grid {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 16px;
    }
}

/* ===================================
           UTILITY CLASSES
        =================================== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* ===================================
           LANGUAGE SWITCHER STYLES
        =================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s var(--timing-deceleration);
    border: 2px solid transparent;
}

.lang-option:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* RTL support */
[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
    }

    [dir="rtl"] .language-switcher {
        right: auto;
        left: 10px;
    }

    .lang-option span {
        display: none;
    }

    .lang-option {
        padding: 8px;
    }
}

a.inherit {
    color: inherit;
}

a.btn {
    text-decoration: none;
}

/* ===================================
           PAGE HEADERS
=================================== */

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===================================
           IDEAS FORM STYLES
        =================================== */
.ideas-form {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s var(--timing-deceleration);
}

.ideas-form .form-group input,
.ideas-form .form-group select {
    background: white;
    transition: all 0.3s var(--timing-standard);
}

.ideas-form .form-group input:hover,
.ideas-form .form-group select:hover {
    border-color: var(--primary-light);
}

.ideas-form .form-group input:focus,
.ideas-form .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 68, 120, 0.1);
    transform: translateY(-1px);
}

.name-card {
    padding: 32px;
    margin-bottom: 32px;
    background: var(--surface);
    box-shadow: var(--elevation-2);
}

.idea-container {
    display: none;
    padding: 24px;
    margin-bottom: 16px;
    background: var(--surface);
    box-shadow: var(--elevation-2);
    border-radius: 8px;
    gap: 16px;
    flex-direction: column;
    animation: fadeInUp 0.4s var(--timing-deceleration);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--timing-standard);
}

.idea-container:hover {
    box-shadow: var(--elevation-3) !important;
    transform: translateY(-2px);
}

.idea-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

[dir="rtl"] .idea-container::before {
    left: auto;
    right: 0;
}

.idea-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-group-no-margin {
    margin-bottom: 0;
}

.refresh-cards-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    font-size: 1.2rem;
    vertical-align: middle;
    opacity: 0.7;
    transition:
        opacity 0.2s,
        transform 0.2s;
    height: 32px;
    width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.refresh-cards-btn:not(:disabled):hover {
    opacity: 1;
    transform: rotate(90deg);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-arrow {
    font-size: 1.25rem;
}

.btn-wide {
    width: 100%;
}

.submit-btn {
    font-size: 1.125rem;
    width: 100%;
}

.submit-btn:not(:disabled):hover {
    box-shadow: var(--elevation-5) !important;
}

.form-text {
    color: var(--text-secondary);
}

/* ===================================
           FAQ SECTION
        =================================== */
.faq-section {
    background: #fafafa;
    padding: 80px 0;
}

.faq-section h2 {
    color: var(--text-primary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--elevation-1);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s var(--timing-standard);
}

.faq-item:hover {
    box-shadow: var(--elevation-2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: start;
    gap: 16px;
    transition: background 0.2s var(--timing-standard);
}

.faq-question:hover {
    background: rgba(34, 68, 120, 0.04);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s var(--timing-standard);
    line-height: 1;
    width: 24px;
    text-align: center;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.35s var(--timing-standard),
        padding 0.35s var(--timing-standard);
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===================================
           PAY PAGE
        =================================== */

.pay-section {
    padding: 80px 0 120px;
}

.pay-section .container {
    max-width: 680px;
}

.pay-page-header {
    text-align: center;
    padding-top: 30px;
    margin-bottom: 32px;
}

.pay-page-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ─── Cards ─── */
.pay-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--elevation-2);
    margin-bottom: 24px;
    overflow: hidden;
}

#delivery-card {
    overflow: visible;
}

/* Restore inner radius clipping for header/body since card no longer clips */
#delivery-card .pay-card-header:first-child {
    border-radius: 12px 12px 0 0;
}
#delivery-card .pay-card-body:last-child {
    border-radius: 0 0 12px 12px;
}

.pay-card-header {
    padding: 18px 28px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pay-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.pay-card-body {
    padding: 24px 28px;
}

details.expandable-if-starts-closed summary {
    padding: 0 1em 1em 1em;
    cursor: pointer;
}

details.expandable-if-starts-closed[data-initial-state="open"] summary {
    display: none;
}

/* ─── Order Lookup ─── */
.pay-lookup {
    margin-top: 60px;
    margin-bottom: 60px;
}

.pay-lookup .pay-card-body {
    padding: 20px 28px;
}

.lookup-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.lookup-row input {
    flex: 1;
}

.btn-inline {
    width: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ─── Order Info Grid ─── */
.order-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

input.order-info-value {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--divider);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--background);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

input.order-info-value:focus {
    outline: none;
    border-color: var(--primary-color);
}

.order-divider {
    border: none;
    border-top: 1px solid var(--divider);
    margin: 20px 0;
}

/* ─── Order Items ─── */
.order-items {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.order-item-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.order-item-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.order-item-qty-input {
    width: 80px;
    padding: 8px 10px;
    border: 1.5px solid var(--divider);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--background);
    text-align: center;
    transition: border-color 0.2s;
}

.order-item-qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ─── Invoice Table ─── */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 4px 0;
}

.invoice-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 6px 10px;
    border-bottom: 1.5px solid var(--divider);
    text-align: start;
}

.invoice-table thead th:not(:first-child) {
    text-align: end;
}

.invoice-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--divider);
    vertical-align: middle;
    text-align: start;
}

.invoice-table tbody td:not(:first-child) {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.invoice-table tbody tr:last-child td {
    border-bottom: none;
}

.invoice-qty {
    font-weight: 600;
}

.invoice-subtotal {
    font-weight: 500;
}

.available-decks {
    display: inline-block;
    margin-left: 8px;
    padding: 0.1rem 0.4rem;
    background-color: #fff9cd;
    color: #495057;
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid #c4c1aa;
}

.none-available {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quantity-sold-out {
    color: #c11a28;
    text-decoration: line-through;
    position: relative;
    font-weight: normal;
}

.quantity-sold-out::after {
    content: attr(data-available, "0");
    color: black;
    font-weight: bold;
    text-decoration: none;
    position: absolute;
    left: 1.2em;
}

/* ─── Radio pills ─── */
.radio-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 2px solid var(--divider);
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    transition:
        border-color 0.2s,
        background 0.2s,
        color 0.2s;
}

.radio-pill:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(34, 68, 120, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.radio-pill input {
    display: none;
}

.radio-pill:has(input:disabled) {
    filter: saturate(0.5) !important;
    opacity: 0.6;
}

/* ─── Order Total ─── */
.order-total-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.order-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.order-total-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

/* ─── Box gallery lightbox ─── */
.box-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.box-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.box-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.box-gallery-prev {
    left: 1rem;
}

.box-gallery-next {
    right: 1rem;
}

.box-gallery-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
}

.box-gallery-main {
    max-width: min(80vw, 700px);
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.box-gallery-thumbs {
    display: flex;
    gap: 0.75rem;
}

.box-gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition:
        border-color 0.2s,
        opacity 0.2s;
}

.box-gallery-thumb.active {
    border-color: #fff;
    opacity: 1;
}

.box-gallery-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ===================================
           PICKUP DISTRIBUTOR DASHBOARD
        =================================== */
.distributor-section {
    padding: 2rem 0;
}

.distributor-section .container {
    max-width: 1600px;
}

.distributor-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.distributor-stat-card {
    background: white;
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}

.distributor-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.distributor-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.distributor-stat-card .stat-progress {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.distributor-stat-card .stat-number {
    font-size: 2rem;
    line-height: 1;
}

.distributor-stat-card .stat-divider {
    font-size: 1.5rem;
    opacity: 0.5;
}

.distributor-stat-card .stat-total {
    font-size: 1.5rem;
    opacity: 0.7;
}

.progress-bar-mini {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Distributor Tabs */
.distributor-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.distributor-tab-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.distributor-tab-btn:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb, 69, 123, 157), 0.05);
}

.distributor-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.distributor-tab-content {
    display: none;
}

.distributor-tab-content.active {
    display: block;
}

.distributor-search-container {
    padding: 1rem;
    border-radius: 8px;
}

.distributor-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.distributor-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 69, 123, 157), 0.1);
}

.distributor-search-results {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.distributor-table-container {
    overflow-x: auto;
}

.distributor-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.distributor-orders-table thead {
    background: #f5f5f5;
}

.distributor-orders-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.distributor-orders-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.distributor-orders-table tr:hover {
    background: #f9f9f9;
}

.distributor-orders-table .picked-up-row {
    opacity: 0.6;
}

.distributor-orders-table .text-center {
    text-align: center;
}

.btn-pickup {
    width: auto;
}

.pickup-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pickup-status.picked-up .status-text {
    color: #28a745;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-undo-pickup {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-undo-pickup:hover {
    background: #dc3545;
    color: white;
}

.btn-edit-notes {
    background: none;
    border: 1px solid #3b6fd4;
    color: #3b6fd4;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    vertical-align: middle;
}

.btn-edit-notes:not(:disabled):hover {
    background: #3b6fd4;
    color: white;
}

.btn-edit-notes svg {
    width: 14px;
    height: 14px;
}

.order-notes {
    margin-top: 4px;
    padding: 4px 8px;
    background: #f0f4ff;
    border-left: 3px solid #3b6fd4;
    border-radius: 4px;
    font-style: italic;
}

.order-notes small {
    color: #666;
    font-size: 0.85rem;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .distributor-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .distributor-tabs {
        gap: 0;
    }

    .distributor-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }

    .distributor-table-container {
        font-size: 0.85rem;
    }

    .distributor-orders-table th,
    .distributor-orders-table td {
        padding: 0.5rem;
    }
}

/* RTL support for distributor dashboard */
[dir="rtl"] .distributor-stat-card .stat-progress {
    direction: ltr;
    text-align: right;
}

[dir="rtl"] .distributor-tabs {
    direction: rtl;
}

[dir="rtl"] .distributor-search-input {
    text-align: right;
}

[dir="rtl"] .distributor-orders-table th,
[dir="rtl"] .distributor-orders-table td {
    text-align: right;
}

.distributor-orders-table .phone-cell {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .distributor-orders-table .phone-cell {
    text-align: left;
}

.distributor-orders-table .ltr-cell {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .distributor-orders-table .text-center {
    text-align: center;
}

/* ─── Box option ─── */
.box-option-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
}

.box-option-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

/* ─── Delivery Tabs ─── */
.delivery-tabs {
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.delivery-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition:
        background 0.2s,
        color 0.2s;
    color: var(--primary-color);
    border-inline-end: 1px solid var(--primary-color);
    user-select: none;
}

.delivery-tab:last-child {
    border-inline-end: none;
}

.delivery-tab input[type="radio"] {
    display: none;
}

.delivery-tab:has(input:checked) {
    background: var(--primary-color);
    color: white;
}

.delivery-tab:not(:has(input:checked)):hover {
    background: rgba(34, 68, 120, 0.06);
}

.confirmation-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 20px auto;
}

#screenshot-received {
    color: rgb(27, 143, 27);
    margin-top: 10px;
    display: none;
}

#screenshot-received.confirmed {
    display: block;
}

/* ─── Address Fields ─── */
.address-row {
    display: flex;
    gap: 16px;
}

/* ─── Pickup List ─── */
.pickup-combobox {
    position: relative;
    margin-bottom: 20px;
}

.pickup-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pickup-search-input {
    width: 100%;
    padding: 0.5rem 2.2rem 0.5rem 0.7rem;
    border: 1.5px solid var(--divider);
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #fff;
}

[dir="rtl"] .pickup-search-input {
    padding-left: 2.2rem;
    padding-right: 0.7rem;
}

.pickup-search-input:focus,
.pickup-combobox.open .pickup-search-input {
    border-color: var(--primary-color);
}

.pickup-caret {
    position: absolute;
    inset-inline-end: 0.55rem;
    color: #888;
    pointer-events: none;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.pickup-combobox.open .pickup-caret {
    transform: rotate(180deg);
}

.pickup-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 5px;
    max-height: 260px;
    overflow-y: auto;
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.pickup-combobox.open .pickup-list {
    display: flex;
}

.pickup-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
    font-size: 0.9rem;
}

.pickup-option:hover {
    background: rgba(34, 68, 120, 0.07);
}

.pickup-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(34, 68, 120, 0.06);
}

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

.pickup-option-marker {
    color: var(--primary-color);
    flex-shrink: 0;
}

.pickup-signup-box {
    padding-top: 16px;
    border-top: 1px solid var(--divider);
}

/* ─── Payment Methods ─── */
.payment-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.payment-step-1 {
    margin-top: 0;
}

.payment-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 4px;
}

.payment-method-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    border: 2px solid var(--divider);
    border-radius: 10px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
    text-align: center;
    background: var(--surface);
    position: relative;
    min-height: 90px;
}

.payment-method-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-tile:has(input:checked) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 68, 120, 0.15);
}

.payment-method-tile:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.payment-method-logo {
    height: 36px;
    object-fit: contain;
    max-width: 80px;
}

.payment-method-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.payment-method-name.name {
    text-transform: capitalize;
}

.pay-now-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 2px dashed var(--divider);
    border-radius: 6px;
    color: var(--text-disabled);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-small {
    font-size: 0.8rem;
    padding: 6px 12px;
    line-height: 1;
    min-width: unset;
}

/* ─── Checkbox label ─── */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .pay-card-body,
    .pay-card-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .payment-method-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-total-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-total {
        align-items: flex-start;
    }

    .address-row {
        flex-direction: column;
        gap: 0;
    }

    .lookup-row {
        flex-direction: column;
    }

    .btn-inline {
        width: 100%;
    }
}

/* ===================================
           ADMIN PAGES
        =================================== */

/* --- Admin Login --- */
.admin-login-body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Materialize nav override */
.admin-topnav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.admin-nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.admin-topnav .brand-logo {
    position: relative !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.admin-title {
    font-size: 20px;
    font-weight: 500;
}

.admin-topnav ul li a.active-nav-link {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Materialize color overrides */
.admin-body .input-field input:focus,
.admin-body .input-field input.valid {
    border-bottom-color: var(--primary-color) !important;
    box-shadow: 0 1px 0 0 var(--primary-color) !important;
}

.admin-login-body .input-field input:focus {
    border-bottom-color: var(--primary-color) !important;
    box-shadow: 0 1px 0 0 var(--primary-color) !important;
}

.admin-body .input-field label.active {
    color: var(--primary-color) !important;
}

.admin-body .input-field .select-wrapper input.select-dropdown:focus {
    border-bottom: 1px solid var(--primary-color) !important;
}

/* Layout */
.admin-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 40px;
}

.admin-stats-row {
    margin-bottom: 10px;
}

/* Stat cards */
.admin-stat-card {
    border-radius: 10px !important;
}

.admin-stat-number {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 5px;
}

/* Filter cards */
.admin-filters-card {
    border-radius: 10px !important;
    margin-bottom: 20px;
}

.admin-filters-card .card-content {
    padding-bottom: 0 !important;
}

.admin-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Pill dropdown */
.pill-dropdown {
    position: relative;
    width: 100%;
    font-size: 14px;
}

.pill-dropdown-trigger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    min-height: 36px;
    user-select: none;
    outline: none;
}

.pill-dropdown-trigger:focus,
.pill-dropdown.open .pill-dropdown-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(34, 68, 120, 0.15);
}

.pill-placeholder {
    color: #aaa;
    font-size: 14px;
}

.pill-arrow {
    margin-left: auto;
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.pill-dropdown.open .pill-arrow {
    transform: rotate(180deg);
}

.pill-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

.pill-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    padding: 4px;
}

.pill-dropdown.open .pill-dropdown-menu {
    display: block;
}

.pill-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
}

.pill-option:hover {
    background: #f5f5f5;
}

.pill-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.pill-active {
    background: #4caf50;
    color: white;
}
.pill-pending {
    background: #ff9800;
    color: white;
}
.pill-removed {
    background: #999;
    color: white;
}

/* Table */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-header {
    background: var(--primary-color);
    color: white;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.table-export-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    border-radius: 6px;
    padding: 5px 12px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.table-export-btn:not(:disabled):hover {
    background: #e8eaf6;
}

.admin-body table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-body th a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.admin-body th,
.admin-body td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-body th {
    background: #f8f9fa;
    font-weight: 700;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background 0.2s;
}

.admin-body th:hover {
    background: #e9ecef;
}

.sort-indicator {
    display: inline-block;
    margin-left: 5px;
    font-size: 10px;
    opacity: 0.5;
}

.sort-indicator.active {
    opacity: 1;
}

.admin-body tr:hover {
    background: #f8f9fa;
}

.unpaid-order {
    background: #fff3f2;
}

.unpaid-order:hover {
    background: #fff0ed !important;
}

/* Pagination */
.admin-pagination {
    padding: 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
    margin: 0;
}

.admin-body .pagination li.active {
    background-color: var(--primary-color) !important;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.badge-black {
    background: #333;
    color: white;
}

.badge-white {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.badge-delivery {
    background: #4caf50;
    color: white;
}

.badge-pickup {
    background: #ff9800;
    color: white;
}

.badge-paid {
    background: #4caf50;
    color: white;
}

.badge-unpaid {
    background: #f44336;
    color: white;
}

.badge-he {
    background: #2196f3;
    color: white;
}

.badge-en {
    background: #9c27b0;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.badge-removed {
    background: #999;
    color: white;
}

.badge-seen {
    background: #2196f3;
    color: white;
}

.badge-pending {
    background: #ff9800;
    color: white;
}

.badge-active {
    background: #4caf50;
    color: white;
}

.badge-currency-ils {
    background: #0288d1;
    color: white;
}

.editable-field {
    position: relative;
    user-select: none;
    cursor: pointer;
}

.editable-field:hover {
    opacity: 1;
    transform: scale(1.05);
    z-index: 999;
}

.field-dropdown {
    position: absolute;
    top: 100%;
    left: -26px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 100px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    color: black;
}

.field-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.field-option:hover {
    background: #f0f0f0;
}

.field-option:first-child {
    border-radius: 3px 3px 0 0;
}

.field-option:last-child {
    border-radius: 0 0 3px 3px;
}

.editable-text {
    cursor: text;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s;
    position: relative;
    display: inline-block;
    min-width: 20px;
}

.editable-text:hover {
    background: #f0f7ff;
    outline: 1px dashed #2196f3;
}

.editable-text.editing {
    background: white;
    outline: 2px solid var(--primary-color);
    padding: 2px 4px;
}

/* Prevent Materialize from stomping on inline edit inputs */
.admin-body td .editable-text input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: 100%;
    outline: none;
}

.admin-body td .editable-text input:focus {
    outline: none;
    border: none !important;
    box-shadow: none !important;
}

.reason-text {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.reason-text.editing {
    min-width: 120px;
}

.status-container {
    min-width: 110px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 360px;
}

.login-container h1 {
    color: #333;
    margin-bottom: 20px;
}

.login-container input[type="password"] {
    width: 250px;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.login-container button {
    width: 250px;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container button:not(:disabled):hover {
    background: #764ba2;
}

.login-container .error {
    color: red;
    margin-top: 10px;
}

/* --- Admin Dashboard --- */
.admin-body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-link {
    text-decoration: none;
}

.header-logo {
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav {
    background: white;
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-color);
    color: white;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 5px;
}

.stat-card h4 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 5px;
}

.stat-card p {
    color: #666;
    font-size: 14px;
}

.filters {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.filter-group-label {
    font-size: 0.8rem;
    color: #9e9e9e;
    display: block;
    margin-bottom: 4px;
}

.filter-group select {
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    background: white;
    width: 100%;
}

.filter-group label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.filter-btn-apply:not(:disabled):hover {
    background: var(--primary-dark);
}

.filter-btn-clear {
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
}

.filter-btn-clear:not(:disabled):hover {
    background: #e0e0e0;
}

.select {
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    padding: 8px 12px;
    width: 10rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.2s;
    font-size: 14px;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
    font-weight: 700;
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.editable-text input {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    width: 100%;
    outline: none;
}

.editable-text input:focus {
    outline: none;
}

.info-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    vertical-align: middle;
    opacity: 0.7;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.card-count-diff {
    font-size: 0.9rem;
    color: #666;
    margin-left: 8px;
}

.card-count-diff.positive {
    color: #4caf50;
}

.card-count-diff.negative {
    color: #f44336;
}

.view-external-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 3px 4px;
    border-radius: 5px;
    background: #e8f0fe;
    color: #3b6fd4;
    text-decoration: none;
    font-size: 15px;
    gap: 4px;
    vertical-align: middle;
    transition: background 0.15s;
}

.view-external-button.green {
    background: #d0f0c0;
    color: #2e7d32;
}

.view-external-button.blue {
    background: #e8f0fe;
    color: #3b6fd4;
}

.view-external-button:not(:disabled):hover {
    background: #c7d9fb;
}

.view-external-button.green:not(:disabled):hover {
    background: #b8e0a8;
}

/* =========================================================================
   my-order.php — extracted from inline styles
   For elements toggled via element.style.display by JS, the `display:none`
   stays inline in the PHP; only the other declarations were moved here.
   ========================================================================= */

/* ── WhatsApp group note ── */
.whatsapp-group-card {
    border: 1.5px solid #82d185;
}
.whatsapp-group-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.whatsapp-icon {
    width: 2.2rem;
    height: 2.2rem;
    flex-shrink: 0;
    filter: invert(40%) sepia(100%) saturate(400%) hue-rotate(90deg) brightness(0.85);
}
.whatsapp-group-row p {
    margin: 0;
}
.whatsapp-group-row a {
    font-weight: 600;
}
.whatsapp-sep {
    color: #888;
    margin: 0 0.35rem;
}

/* ── Lookup row ── */
.lookup-email-input {
    padding: 0.5rem;
}
.lookup-result {
    margin-top: 10px;
}

/* ── Order selection (when multiple orders matched the email) ── */
.order-selection-card {
    padding: 0.75rem;
    background-color: #e7f3ff;
    border: 1.5px solid #b3d9ff;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.order-selector {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* ── Currency selection ── */
.currency-block {
    margin-top: 1.5rem;
}
.currency-radio-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* ── Add Box card ── */
.box-div {
    margin-top: 1.5rem;
    background: transparent;
    border: 2px solid #c2c2c2;
    border-radius: 10px;
    padding: 1rem 1.1rem;
}
.box-div .box-option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}
.box-checkbox {
    margin: 0;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #72a4f2;
    cursor: pointer;
    flex-shrink: 0;
}
.box-thumb-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.box-option-text {
    margin: 0;
    flex: 1;
}
.box-option-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2a4a8a;
}
.box-option-note {
    font-size: 0.82rem;
    color: #555;
}
.box-amount-toggles {
    gap: 0.5rem;
    align-items: center;
}
.box-qty-btn {
    padding: 0.3rem 0.6rem;
    border: 2px solid #72a4f2;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.box-qty-display {
    min-width: 30px;
    text-align: center;
    font-size: 1rem;
}

/* ── Invoice rows ── */
.order-divider--wide {
    margin: 2rem 0 1.5rem 0;
}
.invoice-donation-label {
    color: #72a4f2;
    font-weight: 500;
}
.remove-donation-btn {
    margin-left: 0.5rem;
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}
.remove-donation-btn:hover {
    background: #ffe0e0;
}
.order-total--end {
    margin-left: auto;
}

/* ── Donation appeal block ── */
.donation-appeal {
    margin-top: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-inline-start: 4px solid #72a4f2;
}
.donation-appeal-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.donation-appeal-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}
.donation-appeal-body {
    flex: 1;
}
.donation-appeal-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    color: #333;
}
.donation-appeal-message {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}
.donation-appeal-prompt {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}
.donation-quick-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.donation-quick-add {
    padding: 0.4rem 0.8rem;
    border: 2px solid #72a4f2;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.donation-quick-or {
    color: #999;
    margin: 0 0.25rem;
}
.custom-donation-input {
    width: 100px;
    padding: 0.4rem 0.6rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}
.donation-added-message {
    margin: 0.75rem 0 0 0;
    font-size: 0.875rem;
    color: #28a745;
    font-weight: 500;
}

/* ── Payment card header amount ── */
.order-total-amount--header {
    margin-inline-start: auto;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ── Payment status banners ── */
.payment-banner {
    padding: 1rem 1rem 0 1rem;
}
.payment-banner-success,
.payment-banner-pending {
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    border-width: 1.5px;
    border-style: solid;
}
.payment-banner-success {
    background: #e6f4ea;
    border-color: #34a853;
    color: #1e6e35;
}
.payment-banner-pending {
    background: #fff8e1;
    border-color: #f9a825;
    color: #7a5800;
}
.payment-banner-icon {
    font-size: 1.3rem;
}
.payment-banner-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.payment-remaining-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: #b85c00;
}

/* ── Payment method tiles (smaller info text) ── */
.payment-method-info--small {
    font-size: 0.65em;
}

/* ── Step 2 payment instructions ── */
.payment-instructions-text {
    margin-bottom: 1em;
}

/* ── Pickup point distributor notice ── */
.pickup-distributor-notice {
    background: #fff8e1;
    border: 1.5px solid #f5c842;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ── Shipping estimates inline link button ── */
.shipping-estimates-btn {
    background: none;
    border: none;
    color: #72a4f2;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
}

/* ── Form-group flex sizing helpers ── */
.form-group--flex-2 {
    flex: 2;
}
.form-group--flex-1 {
    flex: 1;
}

/* ── Shipping notes textarea ── */
.shipping-notes-textarea {
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

/* ── Pickup combobox: "no results" message ── */
.pickup-no-results {
    color: #888;
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem;
}

/* ── Submission success card ── */
.submission-success-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.submission-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.submission-success-title {
    margin-bottom: 0.75rem;
}
.submission-success-body {
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-inline: auto;
}
.submission-success-appeal {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    max-width: 520px;
    margin-inline: auto;
    color: var(--text-muted, #666);
}
.btn--inline-block {
    display: inline-block;
}
.kofi-widget-wrap {
    text-align: center;
    margin-top: 2rem;
}

/* ── Shipping estimates modal ── */
.shipping-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.shipping-modal-dialog {
    background: #fff;
    border-radius: 10px;
    max-width: 560px;
    width: 100%;
    padding: 1.75rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.shipping-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.shipping-modal-title {
    margin: 0 0 1rem 0;
}
.shipping-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.shipping-modal-table thead tr {
    background: #f0f4ff;
}
.shipping-modal-table th {
    text-align: center;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid #d0d9f0;
}
.shipping-modal-table th:first-child {
    text-align: initial;
}
.shipping-modal-table td {
    padding: 0.6rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.shipping-modal-table td:first-child {
    text-align: initial;
}
.shipping-modal-table tbody tr.alt {
    background: #f9fff9;
}
.shipping-modal-note {
    margin: 1rem 0 0 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}
