/* Root Variables */
:root {
    --primary-color: #ff6b35;
    --primary-dark: #e8551c;
    --primary-light: #ff8c5f;
    --secondary-color: #ffa726;
    --success-color: #66bb6a;
    --warning-color: #ffa726;
    --danger-color: #ef5350;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-image: url('../assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main content container - wider with white background */
.main-content .container {
    max-width: calc(100% - 40px);
    margin: 2rem 20px;
    padding: 0;
}

/* Header */
.header {
    background: linear-gradient(135deg, #e8925d 0%, #d97545 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: var(--light-color);
}

.icon-btn svg {
    display: block;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Active Orders Banner */
.active-orders-banner {
    background: linear-gradient(135deg, #e8925d 0%, #d97545 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.active-orders-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-icon {
    font-size: 2rem;
}

.banner-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.banner-text p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.banner-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* Content wrapper inside container */
.content-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.content-inner {
    padding: 2rem;
}

/* Promo Carousel */
.promo-carousel {
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    height: 400px;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.promo-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.promo-slide.active {
    opacity: 1;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 3rem 2rem;
    color: white;
}

.discount-badge {
    display: inline-block;
    background-color: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.promo-overlay h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.promo-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: white;
    width: 30px;
    border-radius: 5px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Pizza Grid */
.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pizza-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.pizza-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pizza-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pizza-info {
    padding: 1.5rem;
}

.pizza-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.pizza-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pizza-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pizza-actions {
    display: flex;
    gap: 0.5rem;
}

.pizza-actions .btn {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #d97545 0%, #c26839 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(217, 117, 69, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c26839 0%, #b05f31 100%);
    box-shadow: 0 6px 16px rgba(217, 117, 69, 0.4);
}

.btn-outline {
    background-color: white;
    border: 2px solid #d97545;
    color: #d97545;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #d97545 0%, #c26839 100%);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-color);
}

.btn-secondary {
    background-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--dark-color);
}

/* Reviews Section */
.reviews-carousel {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.review-item {
    text-align: center;
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--warning-color);
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--light-color);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Menu Page */
.search-container {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    background: #e8e8e8;
    color: #666;
}

.tab-btn.active {
    background: linear-gradient(135deg, #d97545 0%, #c26839 100%);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product/Menu Card Title Styles */
.menu-grid h3,
.pizza-card h3,
.product-card h3,
.promo-card h3 {
    color: #333 !important;
    font-weight: 600;
}

/* Cart Page */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart svg {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.cart-items {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--light-color);
}

.remove-btn {
    color: var(--danger-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: none;
}

/* Voucher Section */
.voucher-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.btn-select-voucher {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.btn-select-voucher:hover {
    background: var(--primary-color);
    color: white;
}

.voucher-icon {
    font-size: 1.2rem;
}

.voucher-info {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1976d2;
    line-height: 1.5;
}

.info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.voucher-info strong {
    color: var(--primary-color);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Profile Page - Simple Boxed Design */
.profile-simple-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-simple-header {
    background: white;
    padding: 2rem;
    text-align: left;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-simple-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.profile-simple-name {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.profile-simple-email {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
}

.profile-simple-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Old Profile Page Styles - Keep for backwards compatibility */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

.profile-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* New Profile Design */
.profile-user-banner {
    background: linear-gradient(135deg, #e8925d 0%, #d97545 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInScale 0.6s ease-out 0.2s both;
}

.profile-avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-user-name {
    font-size: 1.8rem;
    margin: 0.5rem 0 0.25rem;
}

.profile-user-email {
    opacity: 0.9;
    font-size: 1rem;
}

.profile-menu-card {
    background: white;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-menu-card .profile-menu-item {
    animation: slideInLeft 0.5s ease-out both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-menu-item {
    width: 100%;
    padding: 1.25rem 2rem;
    background: white;
    border: none;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.profile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(232, 146, 93, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.profile-menu-item:hover::before {
    width: 100%;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: var(--light-color);
}

.profile-menu-label {
    color: var(--text-primary);
    font-weight: 500;
}

.profile-menu-logout .profile-menu-label {
    color: var(--primary-color);
}

.profile-badge-group {
    display: flex;
    gap: 0.5rem;
}

.profile-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.profile-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.profile-badge-gray {
    background: #9e9e9e;
    color: white;
}

.profile-badge-orange {
    background: var(--primary-color);
    color: white;
}

.profile-badge-green {
    background: var(--success-color);
    color: white;
}

.profile-detail-item {
    margin-bottom: 1.5rem;
}

.profile-detail-item label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.profile-detail-item p {
    font-size: 1rem;
    color: var(--text-primary);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.voucher-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

/* Unclaimed voucher style - purple/blue gradient */
.voucher-card.voucher-unclaimed {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Claimed voucher style - orange gradient */
.voucher-card.voucher-claimed {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.voucher-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.voucher-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    letter-spacing: 2px;
}

/* Hidden voucher code with dots */
.voucher-code-hidden {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

/* New Voucher Card Design */
.voucher-card-new {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.voucher-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.voucher-card-new.voucher-card-disabled {
    opacity: 0.7;
}

.voucher-card-new.voucher-card-claimed {
    margin-bottom: 1rem;
}

.voucher-card-header {
    background: linear-gradient(135deg, #e8925d 0%, #d97545 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voucher-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.voucher-card-header svg {
    flex-shrink: 0;
}

.voucher-card-body {
    padding: 1.25rem;
}

.voucher-card-body p {
    margin: 0 0 1rem 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.voucher-code-box {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.voucher-code-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #d97545;
    letter-spacing: 1px;
}

.voucher-code-text.voucher-code-revealed {
    color: #4caf50;
}

.voucher-status-claimed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.voucher-status-weekend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff3e0;
    color: #e65100;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.btn-voucher-claim {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #e8925d 0%, #d97545 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-voucher-claim:hover {
    background: linear-gradient(135deg, #d97545 0%, #c26839 100%);
}

.btn-voucher-claimed {
    width: 100%;
    padding: 0.75rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
}

/* Orders Page */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-id {
    font-weight: bold;
    color: var(--primary-color);
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-confirmed {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.status-preparing {
    background: rgba(255, 167, 38, 0.1);
    color: #ffa726;
}

.status-delivering {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.status-delivered {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.order-items {
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.order-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Order Details Modal */
.order-details-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.order-details-section:last-child {
    border-bottom: none;
}

.order-details-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Order Timeline */
.order-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-step {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-icon {
    position: absolute;
    left: -2.2rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.timeline-step.completed .timeline-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.timeline-step.completed::before {
    background: var(--success-color);
}

.timeline-step.current .timeline-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    animation: pulse 2s infinite;
}

.timeline-step.pending .timeline-icon {
    background: var(--light-color);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.timeline-step.completed .timeline-content h4 {
    color: var(--success-color);
    font-weight: 600;
}

.timeline-step.current .timeline-content h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-step.pending .timeline-content h4 {
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .pizza-grid,
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .promo-carousel {
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--light-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

.toast.warning {
    background: var(--warning-color);
}

.toast.info {
    background: #007DFF;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Address Cards and Icon Buttons */
.address-card {
    background: white;
    transition: var(--transition);
}

.address-card:hover {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow);
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-icon:hover {
    background: var(--light-color);
    transform: scale(1.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* PROFILE PAGE OVERRIDE - FORCE NEW STYLES */
.profile-user-banner {
    background: linear-gradient(135deg, #e8925d 0%, #d97545 100%) !important;
    color: white !important;
    padding: 3rem 2rem !important;
    text-align: center !important;
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
    box-shadow: var(--shadow) !important;
}

.profile-avatar-large {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: var(--primary-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3rem !important;
    font-weight: bold !important;
    margin: 0 auto 1rem !important;
    border: 4px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
}

.profile-user-name {
    font-size: 1.8rem !important;
    margin: 0.5rem 0 0.25rem !important;
}

.profile-user-email {
    opacity: 0.9 !important;
    font-size: 1rem !important;
}

.profile-menu-card {
    background: white !important;
    border-radius: 0 0 12px 12px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow) !important;
}

.profile-menu-item {
    width: 100% !important;
    padding: 1.25rem 2rem !important;
    background: white !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    font-size: 1rem !important;
    text-align: left !important;
}

.profile-menu-item:last-child {
    border-bottom: none !important;
}

.profile-menu-item:hover {
    background: var(--light-color) !important;
}

.profile-menu-label {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

.profile-menu-logout .profile-menu-label {
    color: var(--primary-color) !important;
}

.profile-badge-group {
    display: flex !important;
    gap: 0.5rem !important;
}

.profile-badge {
    padding: 0.35rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.profile-badge-gray {
    background: #9e9e9e !important;
    color: white !important;
}

.profile-badge-orange {
    background: var(--primary-color) !important;
    color: white !important;
}

.profile-badge-green {
    background: var(--success-color) !important;
    color: white !important;
}

/* Checkout Modal Styles */
.checkout-input-with-icon {
    padding-left: 42px !important;
}

.checkout-input-with-icon-right {
    padding-right: 42px !important;
}

.checkout-textarea-with-icon-right {
    padding-right: 42px !important;
}

.payment-option-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(239, 108, 51, 0.1);
}

.payment-option-card.payment-option-selected {
    border-color: var(--primary-color);
    background: #fff8f5;
}

.btn-cancel-order {
    width: 100%;
    padding: 1rem;
    background: white;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel-order:hover {
    border-color: #999;
    color: #333;
    background: #f5f5f5;
}

.btn-place-order {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-place-order:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 108, 51, 0.3);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Photo Edit Button Animation */
.profile-photo-edit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-photo-edit-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-photo-edit-btn:active {
    transform: scale(0.95);
}

/* Form Input Animations */
.form-input, .form-label, select.form-input, textarea.form-input {
    transition: all 0.3s ease;
}

.form-input:focus, select.form-input:focus, textarea.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 146, 93, 0.1);
    transform: translateY(-1px);
}

/* Address Card Animation */
.address-card {
    transition: all 0.3s ease;
}

.address-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

/* Voucher Card Animations */
.profile-card > div > div[style*="border: 2px solid"] {
    transition: all 0.3s ease;
}

/* Developer Card Animation */
.profile-card > div > div[style*="grid"] > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card > div > div[style*="grid"] > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Section Fade In */
#profile-details, #vouchers, #developers {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
