:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Amazon Header & Nav */
header.amazon-header {
    background: #131921;
    color: white;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    height: 60px;
}

.logo-wrapper {
    display: flex;
    align-items: baseline;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}

.logo-wrapper:hover {
    border-color: white;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
    background: none;
    -webkit-text-fill-color: white;
}

.domain-tld {
    font-size: 12px;
    margin-left: 2px;
    margin-top: -5px;
}

.location-picker {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    min-width: 120px;
}

.location-picker:hover {
    border-color: white;
}

.location-picker .text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.line-1 {
    font-size: 12px;
    color: #ccc;
}

.line-2 {
    font-weight: 700;
    font-size: 14px;
}

/* Search Bar */
.header-search {
    flex: 1;
    display: flex;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.header-search:focus-within {
    box-shadow: 0 0 0 3px #f90;
}

.search-scope {
    background: #f3f3f3;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    border-right: 1px solid #ddd;
    cursor: pointer;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.header-search input {
    flex: 1;
    border: none;
    padding: 0 10px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.search-btn {
    background: #febd69;
    border: none;
    width: 45px;
    display: flex;
    align-items: center;

    /* Amazon Dashboard Styles */
    .dashboard-container {
        max-width: 1000px;
        margin: 20px auto;
        padding: 0 20px;
    }

    .dashboard-header {
        margin-bottom: 20px;
    }

    .dashboard-header h1 {
        font-size: 28px;
        font-weight: 400;
        margin-bottom: 5px;
    }

    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .dashboard-card {
        border: 1px solid #d5d9d9;
        border-radius: 8px;
        padding: 20px;
        background: white;
        cursor: pointer;
        transition: background 0.1s;
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .dashboard-card:hover {
        background: #f7fafa;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .card-content h3 {
        font-size: 17px;
        font-weight: 500;
        margin-bottom: 5px;
    }

    .card-content p {
        font-size: 13px;
        color: #565959;
        line-height: 1.4;
    }

    /* Amazon Buttons */
    .btn-amazon-primary {
        background: #FFD814;
        border: 1px solid #FCD200;
        border-radius: 20px;
        box-shadow: 0 2px 5px 0 rgba(213, 217, 217, .5);
        padding: 8px 20px;
        cursor: pointer;
        font-size: 13px;
        color: #0F1111;
        text-align: center;
        display: inline-block;
        text-decoration: none;
    }

    .btn-amazon-primary:hover {
        background: #F7CA00;
        border-color: #F2C200;
    }

    .btn-amazon-secondary {
        background: white;
        border: 1px solid #d5d9d9;
        border-radius: 20px;
        box-shadow: 0 2px 5px 0 rgba(213, 217, 217, .5);
        padding: 8px 20px;
        cursor: pointer;
        font-size: 13px;
        color: #0F1111;
        display: inline-block;
        text-decoration: none;
    }

    .btn-amazon-secondary:hover {
        background: #f7fafa;
        border-color: #d5d9d9;
    }


    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #f3a847;
}

/* Right Nav */
.header-nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    line-height: 1.1;
    color: white;
    text-decoration: none;
}

.nav-item:hover {
    border-color: white;
}

.cart-item {
    flex-direction: row;
    align-items: flex-end;
    gap: 5px;
}

.cart-icon {
    font-size: 24px;
    line-height: 1;
}

/* Sub Header */
.header-sub {
    background: #232f3e;
    color: white;
    height: 39px;
    display: flex;
    align-items: center;
}

.flex-align {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.header-sub a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 8px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    height: 30px;
}

.header-sub a:hover {
    border-color: white;
}

.menu-trigger {
    font-weight: 700;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.page-content {
    background: white;
    /* Amazon uses white bg predominantly */
    min-height: 80vh;
    padding-bottom: 40px;
}


/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--dark);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.section-title p {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    background: radial-gradient(circle at top right, #e0e7ff 0%, #f1f5f9 50%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 40px;
}

/* Quick Categories */
.cat-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
    justify-content: center;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 100px;
    cursor: pointer;
}

.cat-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.cat-item:hover .cat-icon {
    transform: translateY(-5px) rotate(5deg);
    background: var(--primary);
    color: var(--white);
}

.cat-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Card Styling */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0;
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-img {
    height: 200px;
    background-color: #f8fafc;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-body {
    padding: 24px;
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 15px 0;
}

.price-tag span {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--secondary);
    margin-left: 8px;
    font-weight: 500;
}

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    display: block;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Mobile Nav & Burger Menu */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.burger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .feature-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Modern Gen Z Auth Styling */
.auth-container {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0f172a;
    /* Dark base for contrast */
    padding: 20px;
}

/* Animated Background Blobs */
.auth-container::before,
.auth-container::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: floatBlob 10s infinite alternate ease-in-out;
    opacity: 0.6;
}

.auth-container::before {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    top: -100px;
    left: -100px;
}

.auth-container::after {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.auth-card .text-muted {
    color: #64748b;
    font-size: 0.95rem;
}

/* Modern Inputs with Floating Animation Look */
.auth-card .form-group {
    margin-bottom: 24px;
    text-align: left;
    position: relative;
}

.auth-card label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-card .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card .form-control:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Gen Z Role Selection */
.role-select-card {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.role-select-card:hover {
    border-color: #cbd5e1;
    transform: scale(1.02);
}

.role-select-card.selected {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
}

.role-select-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #6366f1;
    opacity: 0;
    transition: opacity 0.3s;
}

.role-select-card.selected::before {
    opacity: 1;
}

/* Primary Button with Glow */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 16px;
    font-weight: 700;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

/* Mobile Nav Active State */
.mobile-nav.active {
    transform: translateX(0) !important;
}