@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&display=swap');

:root {
    --bg-color: #f0f2f5;
    /* Light Gray Background */
    --card-bg: #ffffff;
    /* White Cards */
    --primary-color: #00D26A;
    /* Vibrant Green */
    --accent-color: #008f45;
    /* Darker Green for hover/contrast */
    --text-color: #1a1a1a;
    /* Dark Text */
    --text-muted: #666666;
    /* Gray Text */
    --font-main: 'Montserrat', sans-serif;
    /* UPDATE: Montserrat Font */
    --border-color: #e0e0e0;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

.app-container {
    width: 100%;
    /* max-width removed here to allow full width sections */
    background: transparent;
    padding: 0;
    /* Remove default padding */
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    /* Constrain content width */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text-nav {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-links .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links .nav-link.active {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-login:hover {
    background: var(--accent-color);
}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #006938 0%, var(--primary-color) 100%);
    width: 100%;
    /* Full width */
    padding-top: 80px;
    /* Only top padding */
    padding-bottom: 0;
    text-align: center;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    /* Separation from content */
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    margin-bottom: 40px;
    padding-left: 20px;
    /* Moved constraint here */
    padding-right: 20px;
    /* Moved constraint here */
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-hero-white {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-wave {
    width: 100%;
    line-height: 0;
    background: transparent;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.product-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

#product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    /* Red as requested */
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.4;
}

.price-section {
    text-align: center;
    background: #f8f9fa;
    /* Light Gray */
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid var(--border-color);
}

.price-section .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.price-display {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    /* Remove text shadow or make it lighter */
    text-shadow: none;
    transition: color 0.2s, transform 0.1s;
}

.price-drop-anim {
    color: #ff3366;
    /* Red for Drop Activity? Or just darker green? Let's use Red for excitement */
    transform: scale(1.1);
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-button {
    width: 100%;
    padding: 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 210, 106, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 106, 0.5);
    background: var(--accent-color);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-text {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    /* White text on Green button */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.status-message {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
}

.status-message.success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.status-message.hidden {
    display: none;
}

.how-it-works {
    margin-top: 40px;
}

.how-it-works h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-muted);
}

.steps {
    display: flex;
    flex-direction: row;
    /* Horizontal line */
    gap: 20px;
    justify-content: space-between;
}

.step {
    display: flex;
    flex: 1;
    /* Take equal width */
    flex-direction: column;
    /* Icon above text inside the step? Or kept side-by-side? */
    align-items: center;
    /* Center align content */
    text-align: center;
    /* Center text */
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    /* Keep slight bg? or transparent? */
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.step .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-form input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-form input:focus {
    border-color: var(--primary-color);
}

.text-button {
    background: none;
    border: none;
    color: var(--text-muted);
    margin-top: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.text-button:hover {
    color: white;
}

/* Main Content Wrapper */
.main-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ticker & Layout */
/* .app-container { removed redundant rules } */

.single-column-layout {
    display: flex;
    justify-content: center;
    width: 100%;
}

.active-auction {
    width: 100%;
}

/* Ticker Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    white-space: nowrap;
    position: relative;
    padding: 12px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.ticker {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
    /* Start from right */
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.ticker-item strong {
    color: var(--primary-color);
}

.ticker-item .price {
    color: #1a1a1a;
    font-weight: 700;
}

.ticker-item .arrow {
    color: var(--primary-color);
    margin-right: 5px;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Responsive */
@media (max-width: 800px) {
    /* No sidebar to hide anymore */
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Lighter overly */
    backdrop-filter: blur(8px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: none;
    max-width: 90%;
    width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    color: var(--text-color);
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    color: #ffaa00;
    /* Keep branding warning color? Or change? Keeping for "Time up" */
    font-size: 1.8rem;
    margin: 10px 0;
}