:root {
    --primary-color: #440099;
    --secondary-color: #DA291C;
    --text-color: #1a1a1a;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --input-bg: #f0f2f5;
    --input-border: #d1d5db;
    --focus-ring: rgba(68, 0, 153, 0.2);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    /* Prevent horizontal scroll from shapes */
    position: relative;
    padding: 20px 0;
}

/* Background Shapes for visual interest */
.background-shapes {
    position: fixed;
    /* Fixed so they don't scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
}

.shape-1 {
    background-color: var(--primary-color);
    width: 600px;
    height: 600px;
    top: -150px;
    right: -150px;
    animation: float 10s infinite ease-in-out;
}

.shape-2 {
    background-color: var(--secondary-color);
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -100px;
    animation: float 12s infinite ease-in-out reverse;
}

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

    50% {
        transform: translate(20px, 30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    backdrop-filter: blur(10px);
    /* Glassmorphism hint if supported */
}

.logo-container {
    margin-bottom: 32px;
}

.brand-logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

.pickup-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 4px;
}

input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid var(--input-border);
    background-color: var(--input-bg);
    font-size: 1.1rem;
    font-family: var(--font-main);
    color: var(--text-color);
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.input-helper {
    font-size: 0.8rem;
    color: #888;
    margin-left: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b31e12 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-main);
    box-shadow: 0 10px 20px rgba(218, 41, 28, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(218, 41, 28, 0.4);
}

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

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.result-message.success {
    background-color: #e6fffa;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.result-message.error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.hidden {
    display: none;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
        box-shadow: none;
        /* Flatter on mobile usually looks cleaner or use subtle */
        background: rgba(255, 255, 255, 0.9);
    }

    .brand-logo-img {
        max-width: 150px;
        /* Adjusted for mobile */
    }

    .container {
        padding: 15px;
    }
}

/* Order List Styles */
.result-container {
    margin-top: 24px;
    width: 100%;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 12px;
}

.order-id {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.order-store {
    font-size: 0.9rem;
    color: white;
    background: var(--primary-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(68, 0, 153, 0.2);
}

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

.order-address {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 8px;
}

.order-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.status-ready {
    color: #059669;
    /* Green */
}

.status-pending {
    color: #d97706;
    /* Amber */
}

.order-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-retire {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.btn-retire:not(:disabled) {
    background-color: #059669;
    color: white;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
}

.btn-retire:not(:disabled):hover {
    background-color: #047857;
    transform: translateY(-1px);
}

.btn-retire:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.pickup-helper-text {
    font-size: 0.8rem;
    color: #d97706;
    /* Amber */
    text-align: right;
    font-weight: 500;
}

.pickup-success-msg {
    background-color: #ecfdf5;
    color: #065f46;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 24px;
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-location {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.btn-location:hover {
    border-color: var(--primary-color);
    background: #f9f7ff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-location svg {
    color: var(--primary-color);
}

.btn-cancel {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-main);
}