@import url('auth.css');

:root {
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    /* More opaque for better readability */
    --glass-border: rgba(224, 175, 160, 0.6);
    --primary-gradient: linear-gradient(135deg, #d68576 0%, #e0afa0 100%);
    /* Deep Rose > Rose Gold */
    --secondary-gradient: linear-gradient(135deg, #fab1a0 0%, #ffc3c3 100%);
    --text-main: #333333;
    /* Dark Grey as requested */
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --accent-glow: #e0afa0;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
    --shadow-soft: 0 10px 30px rgba(181, 107, 92, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #faf9f6;
    /* Off-white for warmth */
    background-image: radial-gradient(circle at 10% 20%, rgba(250, 208, 196, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(224, 175, 160, 0.1) 0%, transparent 20%);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects - Adjusted for Light Theme */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(250, 208, 196, 0.05), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Utils */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(224, 175, 160, 0.1);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(214, 133, 118, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 133, 118, 0.6);
}

.btn-primary.small {
    padding: 8px 24px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    border-radius: 100px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #333;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    /* Dark Grey/Black for visibility */
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d68576;
    /* Dark Rose */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 120px 10% 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-content {
    max-width: 550px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(121, 40, 202, 0.15);
    border: 1px solid rgba(121, 40, 202, 0.4);
    border-radius: 20px;
    color: #dcb0ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(121, 40, 202, 0.2);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 45%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
}

.circle-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary-gradient);
    filter: blur(100px);
    opacity: 0.2;
    animation: breath 8s ease-in-out infinite alternate;
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 140px;
    height: 140px;
}

.floating-card i {
    font-size: 2.2rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.floating-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.c1 {
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.c2 {
    bottom: 20%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

.c3 {
    top: 30%;
    right: 0;
    animation: float 5s ease-in-out infinite 0.5s;
}

/* Products Section */
.products-section {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    margin-inline: auto;
}

.tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tab.active,
.tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab.active {
    background: white;
    color: black;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    font-size: 0.75rem;
    color: #a78bfa;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: auto;
    font-weight: 600;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.btn-icon:hover {
    transform: rotate(90deg);
    background: var(--accent-glow);
    color: white;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 10%;
    position: relative;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    margin: 30px auto;
    width: fit-content;
}

.switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-glow);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.save-badge {
    background: #10B981;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 4px;
}

.pricing-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
}

.price-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: rgba(121, 40, 202, 0.3);
}

.price-card.popular {
    border-color: rgba(121, 40, 202, 0.5);
    background: linear-gradient(180deg, rgba(121, 40, 202, 0.08), rgba(0, 0, 0, 0));
    box-shadow: 0 0 30px rgba(121, 40, 202, 0.15);
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}

.price-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.plan-desc {
    color: var(--text-muted);
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.features li i {
    color: #10B981;
    font-size: 1rem;
}

.features li.disabled {
    color: var(--text-muted);
    opacity: 0.6;
    text-decoration: line-through;
}

.features li.disabled i {
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 10% 40px;
    margin-top: 80px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover,
.social-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    .menu-toggle {
        display: block;
    }

    .navbar {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(224, 175, 160, 0.3);
        border-top: none;
        border-left: none;
        border-right: none;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
    }

    .navbar .logo {
        color: #d68576;
        /* Dark Rose for Mobile */
    }

    .menu-toggle {
        display: block;
        color: #333;
        /* Dark menu icon */
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 25px;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
        border-bottom: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(-20px);
        transition: 0.3s;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .navbar .btn-primary {
        display: none;
    }

    /* Hide CTA in nav for space */

    /* Hero */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
        padding-bottom: 40px;
    }

    .hero-content {
        margin-bottom: 60px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        justify-content: center;
        gap: 30px;
    }

    .hero-visual {
        width: 100%;
        height: 350px;
    }

    .circle-bg {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        width: 110px;
        height: 110px;
        padding: 15px;
    }

    .floating-card i {
        font-size: 1.8rem;
    }

    /* Global Types */
    .section-header h2 {
        font-size: 2.2rem;
    }

    /* Pricing */
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .price-card {
        width: 100%;
        max-width: 100%;
    }

    .price-card.popular {
        transform: none;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes breath {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* --- Pages Expansion Styles --- */

/* Page Container */
.page-container {
    padding: 140px 10% 80px;
    min-height: 80vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Badge */
.badge-count {
    background: #ff0080;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: top;
    margin-left: 4px;
}

/* Product Details */
.product-detail-container {
    display: flex;
    gap: 40px;
    padding: 40px;
    border-radius: 32px;
    margin-top: 120px;
    margin-inline: 10%;
    align-items: flex-start;
}

.product-detail-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    max-width: 500px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #00dfd8;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- New Checkout Redesign --- */
.page-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Form Styling */
.form-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #fff;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.input-icon input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 14px 14px 45px;
    /* Space for icon */
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-icon input:focus {
    border-color: #00ff88;
    background: rgba(0, 0, 0, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* Payment Section */
.payment-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.secure-notice {
    font-size: 0.9rem;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
}

/* Sidebar Summary */
.checkout-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-item-details {
    flex: 1;
    margin-left: 15px;
}

.checkout-item-title {
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.checkout-item-price {
    font-weight: 600;
    color: #bbb;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.summary-row.total {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 10px;
}

.total-price {
    color: #00ff88;
}

.guarantee-badge {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .checkout-sidebar {
        order: -1;
        /* Summary first on mobile? Or verify preference. Let's keep form first for now, user can scroll to see total. Actually, usually summary at bottom on mobile or collapsed. Let's leave order normal (Form first). */
    }
}


/* Cart & Checkout Layout */
.cart-layout,
.checkout-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cart-items,
.checkout-form {
    flex: 2;
    padding: 30px;
    border-radius: 24px;
}

.cart-summary {
    flex: 1;
    padding: 30px;
    border-radius: 24px;
    position: sticky;
    top: 120px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-top: 5px;
}

.remove-btn:hover {
    text-decoration: underline;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-row.total {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
}

.form-group input:focus {
    outline: none;
    border-color: #7928CA;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Mobile Responsive Pages */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        padding: 20px;
    }

    .cart-layout,
    .checkout-layout {
        flex-direction: column;
    }

    .cart-summary {
        position: static;
        width: 100%;
    }
}

/* --- Success Page Styles --- */
.success-card {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
    width: 100%;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    font-size: 5rem;
    color: #10B981;
    margin-bottom: 10px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-card h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.success-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.download-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-text {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.back-link:hover {
    color: white;
    text-decoration: underline;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Secure Downloads */
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
}

.download-item:last-child {
    border-bottom: none;
}

.download-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.download-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.expiry-badge {
    display: inline-block;
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.btn-download {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-download:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.error-msg {
    color: #ff4757;
    margin-bottom: 10px;
    font-weight: 600;
}

/* --- Admin Panel Styles --- */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Floating Cart */
.cart-float {
    position: fixed;
    bottom: 20px;
    /* Same level as WhatsApp but on other side */
    left: 20px;
    /* Move to Left */
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.float-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    /* controlled by JS */
    align-items: center;
    justify-content: center;
    border: 2px solid #050505;
}

/* Ensure WhatsApp float is positioned correctly relative to this if needed, 
   but WhatsApp usually uses .whatsapp-float class. Let's find it. */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
}

.auth-box {
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    text-align: center;
}

.auth-box h2 {
    margin-bottom: 10px;
}

.auth-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.table-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-table .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    display: inline-flex;
    margin-right: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-table .btn-icon:hover {
    transform: none;
    background: var(--primary-gradient);
}

.admin-table .btn-icon.delete:hover {
    background: #ff4757;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-box {
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 20px;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
}

.glass-input:focus {
    outline: none;
    border-color: #7928CA;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Featured Deal Section */
.featured-deal {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.deal-card {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.deal-image {
    flex: 1;
    min-width: 300px;
}

.deal-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.deal-image img:hover {
    transform: scale(1.02);
}

.deal-content {
    flex: 1;
}

.deal-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deal-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.deal-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.price-box {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.new-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2ecc71;
}

/* Pulse Animation Button */
.btn-pulse {
    background: var(--primary-gradient);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    animation: pulse-blue 2s infinite;
    text-align: center;
}

.btn-pulse:hover {
    transform: translateY(-2px);
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(121, 40, 202, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(121, 40, 202, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(121, 40, 202, 0);
    }
}

@media (max-width: 768px) {
    .deal-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .price-box {
        justify-content: center;
    }

    .deal-image {
        min-width: 100%;
    }
}

/* Blog Styles */
.page-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

/* Single Post Styles */
.single-post {
    max-width: 900px;
    margin: 0 auto 60px;
    border-radius: 24px;
    overflow: hidden;
}

.post-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content-wrapper {
    padding: 40px;
}

.post-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.post-meta .date {
    color: var(--text-muted);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
    color: white;
}

.quote-block {
    border-left: 4px solid var(--accent-secondary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: white;
    font-size: 1.2rem;
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .post-hero img {
        height: 250px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content-wrapper {
        padding: 20px;
    }
}

/* --- Admin Dashboard Styles --- */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
    height: 100%;
    z-index: 100;
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: white;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.sidebar-item {
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    /* Sidebar width */
    padding: 40px;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 25px;
    border-radius: 20px;
    background: white;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: row;
        margin: 0 20px;
    }

    .admin-content {
        margin-left: 0;
        padding: 20px;
    }
}

/* --- Blog Post Readability --- */
.single-post .post-body {
    color: #000000 !important;
}

.single-post .post-body p {
    color: #000000 !important;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.single-post .post-body h1,
.single-post .post-body h2,
.single-post .post-body h3 {
    color: #000000 !important;
    margin-top: 2rem;
}

.single-post .post-body li {
    color: #000000 !important;
    margin-bottom: 10px;
}

/* --- Admin Input Fix (Restored) --- */
.glass-input,
input.glass-input,
textarea.glass-input,
select.glass-input {
    color: #333 !important;
    background: rgba(255, 255, 255, 0.7) !important;
}

.glass-input::placeholder {
    color: #666 !important;
}

option {
    color: #333 !important;
    background: white !important;
}

/* Force Deal Title Dark */
.deal-title {
    color: #333 !important;
    font-weight: 800;
    margin-bottom: 10px;
}

/* --- BuzzFeed Blog Layout --- */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

.main-column {
    min-width: 0;
    /* Prevent grid blowout */
}

.sidebar-column {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Ad Slots */
.ad-slot {
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
}

.ad-slot::after {
    content: "Advertisement";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    color: #ccc;
}

.leaderboard {
    width: 100%;
    height: 90px;
    margin-bottom: 40px;
}

.sidebar-ad {
    width: 300px;
    height: 250px;
    margin: 0 auto;
}

.in-article {
    width: 100%;
    height: 150px;
    margin: 40px 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-glow);
    padding-bottom: 10px;
    display: inline-block;
}

.trending-list {
    list-style: none;
    padding: 0;
}

.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trending-list li:last-child {
    border-bottom: none;
}

.trend-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e0afa0;
    /* Rose Gold/Pink */
    line-height: 1;
}

.trending-list a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.trending-list a:hover {
    color: #d68576;
}

/* Newsletter Widget */
.newsletter-widget {
    text-align: center;
    background: linear-gradient(135deg, #fff0f6 0%, #fff 100%);
}

.newsletter-widget p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.newsletter-widget .glass-input {
    background: white !important;
    border: 1px solid #ddd;
    color: #333 !important;
    margin-bottom: 10px;
}

.full-width {
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .blog-layout-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        position: static;
        order: 2;
        /* Sidebar below content */
    }

    .sidebar-ad {
        width: 100%;
        max-width: 300px;
    }
}