/* =====================================================
   GLOBAL STYLES & DESIGN TOKENS
   Shared variables, reset, and base styles
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ===================================================== */
:root {
    /* ── Master Palette (5-Color System) ──
       #000000 Black | #14213D Prussian Blue | #FCA311 Orange
       #E5E5E5 Alabaster Grey | #FFFFFF White
    */
    
    /* Color Palette */
    --primary-color: #FCA311;
    --primary-hover: #E8950F;
    --primary-light: #FDB944;
    --secondary-color: #14213D;
    --secondary-hover: #0D1527;
    --accent-blue: #14213D;
    --accent-light: #1B2A4A;
    
    /* Auth Page Specific */
    --auth-bg-cream: #FFFFFF;
    --auth-switcher-bg: #E5E5E5;
    --auth-switcher-active: #FFFFFF;
    
    /* Social Brand Colors */
    --facebook-blue: #1877F2;
    --google-red: #EA4335;
    
    /* Neutrals */
    --dark-navy: #14213D;
    --dark-blue: #0D1527;
    --gray-50: #FFFFFF;
    --gray-100: #F0F0F0;
    --gray-200: #E5E5E5;
    --gray-300: #D5D5D5;
    --gray-400: #999999;
    --gray-500: #666666;
    --gray-600: #14213D;
    --gray-700: #14213D;
    --gray-800: #14213D;
    --gray-900: #000000;
    --white: #FFFFFF;
    
    /* Status Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #FCA311;
    --warning-light: rgba(252, 163, 17, 0.15);
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info: #14213D;
    --info-light: rgba(20, 33, 61, 0.12);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-pill: 50px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-island: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 1.75;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    
    /* Text Measure */
    --text-measure-narrow: 45ch;
    
    /* Animation */
    --anim-ease: cubic-bezier(.2,.8,.2,1);
    --anim-base: 400ms;
    --anim-stagger: 100ms;
    --anim-entrance-transform: translateY(12px);
    
    /* Layout */
    --sidebar-width: 280px;
    --topbar-height: 70px;
}

/* =====================================================
   2. CSS RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    color: var(--gray-800);
    background: var(--gray-50);
}

/* Global client loader */
.app-global-loader {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vw, 2rem);
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.app-global-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-global-loader-card {
    width: min(560px, 100%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.app-global-loader-brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.app-global-loader-spinner {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: var(--accent, #FCA311);
    animation: appLoaderSpin 0.85s linear infinite;
}

.app-global-loader-copy-wrap {
    min-width: 0;
}

.app-global-loader-title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.app-global-loader-copy {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
}

.app-global-loader-skeleton {
    margin-top: 1rem;
    display: grid;
    gap: 0.55rem;
}

.app-global-loader-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 35%, #e2e8f0 70%);
    background-size: 220% 100%;
    animation: appLoaderShimmer 1.2s ease-in-out infinite;
}

.app-global-loader-line.is-wide {
    width: 100%;
}

.app-global-loader-line.is-mid {
    width: 76%;
}

.app-global-loader-line.is-short {
    width: 52%;
}

body.page-is-transitioning {
    overflow: hidden;
}

@keyframes appLoaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes appLoaderShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -120% 0; }
}

@media (max-width: 1024px) {
    .app-global-loader-card {
        width: min(500px, 100%);
    }
}

@media (max-width: 768px) {
    .app-global-loader-card {
        border-radius: 16px;
        padding: 1rem;
    }

    .app-global-loader-spinner {
        width: 34px;
        height: 34px;
    }

    .app-global-loader-title {
        font-size: 0.96rem;
    }

    .app-global-loader-copy {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .app-global-loader {
        padding: 0.85rem;
    }

    .app-global-loader-card {
        border-radius: 14px;
        padding: 0.9rem;
    }

    .app-global-loader-brand {
        gap: 0.75rem;
    }

    .app-global-loader-spinner {
        width: 30px;
        height: 30px;
        border-width: 2.5px;
    }

    .app-global-loader-line {
        height: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-global-loader,
    .app-global-loader-spinner,
    .app-global-loader-line {
        transition: none;
        animation: none;
    }
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Keyboard-visible focus ring baseline for client/shared pages */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.app-skip-link {
    position: fixed;
    left: 14px;
    top: -48px;
    z-index: 26000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-lg);
    transition: top var(--transition-fast);
}

.app-skip-link:focus,
.app-skip-link:focus-visible {
    top: 10px;
    color: var(--white);
}

/* =====================================================
   3. ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: var(--anim-entrance-transform); }
    to   { opacity: 1; transform: none; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Motion-enabled stagger children */
.motion-enabled .stagger-child {
    animation: fadeUp var(--anim-base) var(--anim-ease) both;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .motion-enabled .stagger-child {
        animation: none !important;
    }
}

/* =====================================================
   4. UTILITY CLASSES
   ===================================================== */
.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* =====================================================
   5. COMMON COMPONENTS
   ===================================================== */

/* Logo Component */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--white);
}

.logo-text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--white);
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-md);
    color: var(--white);
}

/* User Info */
.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.user-role {
    font-size: var(--font-size-xs);
    opacity: 0.7;
}

/* =====================================================
   6. HYBRID CONTAINER SYSTEM
   Adaptive containers for different page contexts
   ===================================================== */

/* Standard Container - Constrained width for landing pages */
.container {
    width: 100%;
    max-width: var(--container-width, 1440px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter, 20px);
    padding-right: var(--gutter, 20px);
}

/* Fluid Container - Full-width for dashboard pages */
.container-fluid {
    width: var(--container-width-fluid, calc(100% - 40px));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter, 20px);
    padding-right: var(--gutter, 20px);
}

/* Auth Container - Narrow width for focused forms */
.container-auth {
    width: 100%;
    max-width: var(--container-width-auth, 500px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter, 20px);
    padding-right: var(--gutter, 20px);
}

/* Responsive container adjustments */
@media (max-width: 768px) {
    .container,
    .container-fluid,
    .container-auth {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =====================================================
   GLOBAL ANIMATIONS
   Smooth page load animations for all pages
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out forwards;
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Content area animation (for dashboard pages) */
.content-area {
    animation: fadeInUp 0.4s ease-out;
}

/* Card animations on hover */
.card-animate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-animate:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
/* =====================================================
   FOOTER STYLES
   Global footer component for all client pages
   ===================================================== */
.app-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    border-top: 1px solid #e5e9f0;
    margin-top: 3rem;
    padding: 2rem 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Footer remains in normal flow on mobile */
@media (max-width: 768px) {
    .app-footer {
        margin-top: 2rem;
        padding: 1.5rem 1rem 0.9rem;
        width: 100%;
    }
}

/* Footer text colors for light background */
.app-footer,
.app-footer .footer-tagline,
.app-footer .footer-copyright {
    color: #5a6476;
}

.app-footer .footer-brand-name {
    color: #14213D;
}

.app-footer .footer-brand-name a {
    color: #14213D;
    text-decoration: none;
}

.app-footer .footer-brand-name a:hover {
    color: #FCA311;
}

.app-footer .footer-heading {
    color: #7a8497;
}

.app-footer .footer-nav a {
    color: #25344f;
}

.app-footer .footer-nav a:hover {
    color: #FCA311;
}

.app-footer .footer-bottom {
    border-top: 1px solid #e8edf4;
}

.app-footer .social-link {
    color: #304060;
    border-color: #d5dde8;
}

.app-footer .social-link:hover {
    background: #14213D;
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8edf4;
}

.footer-main {
    flex: 0 0 280px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #14213D);
}

.footer-tagline {
    font-size: 0.875rem;
    color: #5a6476;
    line-height: 1.5;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #666666);
    margin: 0 0 0.5rem 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: #25344f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary-color, #FCA311);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #6b7486;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #d5dde8;
    color: #304060;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #14213D;
    color: white;
    transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-main {
        flex: 0 0 auto;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .footer-col {
        flex: 1 1 45%;
        min-width: 140px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =====================================================
   TOAST NOTIFICATION SYSTEM
   Global toast notifications for user feedback
   ===================================================== */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 360px;
    border-left: 4px solid var(--primary, #14213D);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary, #14213D);
    line-height: 1.4;
}

/* Toast Type Variants */
.toast-success {
    border-left-color: #22C55E;
}

.toast-error {
    border-left-color: #EF4444;
}

.toast-warning {
    border-left-color: #FCA311;
}

.toast-info {
    border-left-color: var(--primary, #14213D);
}

/* Toast responsive */
@media (max-width: 480px) {
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* =====================================================
   REVIEW MODAL STYLES
   Star rating and review submission system
   ===================================================== */

/* Modal Overlay */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.review-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.review-modal {
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg, 12px);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.review-modal-overlay.open .review-modal {
    transform: translateY(0) scale(1);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #E5E5E5);
}

.review-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #14213D);
    margin: 0;
}

.review-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary, #F0F0F0);
    color: var(--text-secondary, #666666);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.review-modal-close:hover {
    background: var(--error-color, #EF4444);
    color: white;
}

.review-modal-body {
    padding: 1.5rem;
}

/* Product info in modal */
.review-product-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #F0F0F0);
    border-radius: var(--radius-md, 8px);
}

.review-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    flex-shrink: 0;
}

.review-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-product-details {
    flex: 1;
}

.review-product-name {
    font-weight: 600;
    color: var(--text-primary, #14213D);
    margin-bottom: 0.25rem;
}

.review-product-meta {
    font-size: 0.8rem;
    color: var(--text-secondary, #666666);
}

/* Star Rating Input */
.star-rating-input {
    text-align: center;
    margin-bottom: 1.5rem;
}

.star-rating-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #666666);
    margin-bottom: 0.75rem;
}

.star-rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.star-rating-stars input {
    display: none;
}

.star-rating-stars label {
    cursor: pointer;
    transition: transform 0.15s ease;
}

.star-rating-stars label svg {
    width: 36px;
    height: 36px;
    fill: var(--gray-300, #D5D5D5);
    transition: fill 0.2s ease;
}

.star-rating-stars label:hover svg,
.star-rating-stars input:checked ~ label svg {
    transform: scale(1.1);
}

.star-rating-stars label:hover svg {
    fill: #FACC15;
}

.star-rating-stars input:checked + label svg,
.star-rating-stars input:checked + label ~ label svg {
    fill: #FACC15;
}

/* Reverse order for CSS-only rating */
.star-rating-stars {
    flex-direction: row-reverse;
    justify-content: center;
}

.star-rating-stars label:hover ~ label svg {
    fill: #FACC15;
}

.star-rating-value {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #666666);
}

/* Review Text Input */
.review-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color, #E5E5E5);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #14213D);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-textarea::placeholder {
    color: var(--text-secondary, #666666);
}

.review-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #FCA311);
    box-shadow: 0 0 0 3px rgba(233, 79, 55, 0.1);
}

.review-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary, #666666);
    margin-top: 0.25rem;
}

/* Modal Footer */
.review-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color, #E5E5E5);
}

.btn-review-cancel {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary, #F0F0F0);
    border: 1px solid var(--border-color, #E5E5E5);
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary, #14213D);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-review-cancel:hover {
    background: var(--gray-200, #E5E5E5);
}

.btn-review-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color, #FCA311);
    border: none;
    border-radius: var(--radius-md, 8px);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(233, 79, 55, 0.3);
}

.btn-review-submit:hover {
    background: var(--primary-dark, #d93a23);
    transform: translateY(-1px);
}

.btn-review-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Review Eligibility States */
.review-eligibility-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md, 8px);
    margin-bottom: 1.5rem;
}

.review-eligibility-message.success {
    background: var(--success-light, #D1FAE5);
    color: var(--success, #10B981);
}

.review-eligibility-message.warning {
    background: var(--warning-light, #FEF3C7);
    color: var(--warning, #FCA311);
}

.review-eligibility-message.error {
    background: var(--error-light, #FEE2E2);
    color: var(--error, #EF4444);
}

.review-eligibility-icon {
    flex-shrink: 0;
}

.review-eligibility-icon svg {
    width: 20px;
    height: 20px;
}

.review-eligibility-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Existing Review Display */
.existing-review {
    background: var(--bg-secondary, #F0F0F0);
    border-radius: var(--radius-md, 8px);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.existing-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.existing-review-stars svg {
    width: 18px;
    height: 18px;
    fill: #FACC15;
}

.existing-review-date {
    font-size: 0.75rem;
    color: var(--text-secondary, #666666);
}

.existing-review-text {
    font-size: 0.875rem;
    color: var(--text-primary, #14213D);
    line-height: 1.6;
    margin: 0;
}

.btn-edit-review {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color, #E5E5E5);
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary, #14213D);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-review:hover {
    background: var(--primary-light, #FDB944);
    border-color: var(--primary-color, #FCA311);
    color: white;
}

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

/* Review Modal Responsive */
@media (max-width: 480px) {
    .review-modal {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .star-rating-stars label svg {
        width: 28px;
        height: 28px;
    }
    
    .review-modal-footer {
        flex-direction: column;
    }
    
    .btn-review-cancel,
    .btn-review-submit {
        width: 100%;
    }
}