.auth-container {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #fff;
    background-image: radial-gradient(#FF6E3710 1px, transparent 1px);
    background-size: 24px 24px;
}

.auth-box {
    background: #fff;
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    border: 1px solid #f5f5f5;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.auth-subtitle {
    color: #888;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.3rem;
    transition: 0.3s;
    pointer-events: none;
}

.modern-input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: #fcfcfc;
    outline: none;
    transition: 0.3s;
}

.modern-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 5px 20px rgba(255,110,55,0.1);
}

.modern-input:focus + .input-icon {
    color: var(--primary);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, #000 100%);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: var(--primary);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 600;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider:not(:empty)::before { margin-right: 15px; }
.divider:not(:empty)::after { margin-left: 15px; }

.google-btn {
    width: 100%;
    background: #fff;
    color: #333;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #eee;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.google-btn:hover {
    background: #f9f9f9;
    border-color: #ddd;
    transform: translateY(-2px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
}

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

.dashboard-wrapper {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    min-height: 600px;
}

.dash-sidebar {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    height: fit-content;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.user-profile-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #eee;
}

.uph-avatar {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #FFF0E6 0%, #fff 100%);
    border: 2px solid #ffe0d6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(255,110,55,0.1);
}

.uph-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.uph-info span {
    font-size: 0.85rem;
    color: #888;
    display: block;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: #666;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.dash-link span { font-size: 1.4rem; transition: 0.3s; }

.dash-link:hover, .dash-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255,110,55,0.25);
}

.dash-link:hover span, .dash-link.active span { transform: translateX(3px); }

.dash-link.logout { margin-top: 20px; color: #ff4d4d; background: #fff5f5; }
.dash-link.logout:hover { background: #ff4d4d; color: #fff; box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2); }

.dash-content {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.dash-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f8f8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.full-width { grid-column: span 2; }

.orders-list { display: flex; flex-direction: column; gap: 20px; }
.order-card {
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 25px;
    transition: 0.3s;
    background: #fff;
}
.order-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.oc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.oc-id-group { display: flex; flex-direction: column; gap: 2px; }
.oc-id {
    font-weight: 700;
    color: var(--dark);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
}
.oc-date { font-size: 0.85rem; color: #999; display: flex; align-items: center; gap: 5px; }
.oc-status {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.status-prep { background: #FFF3CD; color: #856404; }
.status-del { background: #D4EDDA; color: #155724; }
.oc-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.oc-items { font-size: 0.95rem; color: #555; line-height: 1.6; max-width: 70%; }
.oc-total {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    font-family: 'Oswald';
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.addr-card {
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 25px;
    position: relative;
    transition: 0.3s;
    background: #fff;
}
.addr-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.addr-card.default {
    border: 2px solid var(--primary);
    background: #fff9f5;
}
.addr-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.addr-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}
.addr-type .material-symbols-outlined { color: var(--primary); }
.addr-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.addr-actions { display: flex; gap: 15px; }
.addr-action-btn {
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.btn-edit { color: var(--dark); }
.btn-edit:hover { color: var(--primary); }
.btn-del { color: #ff4d4d; }
.btn-del:hover { color: #d32f2f; }

@media (max-width: 900px) {
    .dashboard-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .dash-sidebar { display: none; }
    .dash-form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .oc-body { flex-direction: column; align-items: flex-start; gap: 15px; }
    .oc-total { align-self: flex-end; }
}

@media (max-width: 480px) {
    .dashboard-wrapper {
        margin: 20px auto;
        padding: 0 10px;
    }
    .auth-container {
    padding: 0px 0px;
    }
    
    .dash-content {
        padding: 15px;
        margin-bottom: 80px; 
    }
    
    .dash-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .order-card {
        padding: 15px;
    }
    
    .oc-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .oc-id { font-size: 1.1rem; }
    
    .oc-body {
        gap: 12px;
    }
    
    .oc-items {
        max-width: 100%;
        font-size: 0.9rem;
    }
    
    .oc-total {
        font-size: 1.2rem;
    }
}

.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-box {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10000;
    animation: modalSlideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

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

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.oi-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.oi-qty {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: auto;
}

.oi-extra, .oi-addon {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 24px;
}

.mobile-account-menu {
    display: none;
    position: fixed;
    bottom: 70px; 
    left: 0;
    width: 100%;
    z-index: 9998;
}

.mobile-account-menu.active {
    display: block;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9990;
}

.mobile-dash-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideUpMenu 0.3s ease-out;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-dash-nav .dash-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-dash-nav .dash-link:hover {
    background: #f5f5f5;
}

.mobile-dash-nav .dash-link.active {
    background: #e3f2fd;
    color: #1976d2;
}

.mobile-dash-nav .dash-link.logout {
    color: #dc3545;
}

.mobile-dash-nav .dash-link span {
    font-size: 20px;
}