/* ============================================
   SocialHub - Premium Digital Marketplace
   Dark Theme CSS
   ============================================ */

:root,
html[data-theme="dark"] {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4834d4;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --info: #0984e3;

    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-input: #16162a;

    --text-primary: #ffffff;
    --text-secondary: #b2b2cc;
    --text-muted: #6c6c8a;

    --border: #2a2a40;
    --border-light: #3a3a55;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(108,92,231,0.3);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] {
    --primary: #6c5ce7;
    --primary-light: #7c6cf0;
    --primary-dark: #4834d4;
    --secondary: #00b4a6;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #e8a817;
    --danger: #d63031;
    --info: #0984e3;

    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-input: #f0f2f5;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aa0;

    --border: #e2e4ea;
    --border-light: #d0d3da;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(108,92,231,0.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__left {
    display: flex;
    gap: 20px;
}

.top-bar__left span i {
    color: var(--primary-light);
    margin-right: 5px;
}

.top-bar__right strong {
    color: var(--success);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.header__logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.header__logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__nav {
    display: flex;
    gap: 5px;
    flex: 1;
}

.header__nav a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__search {
    position: relative;
}

.header__search input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 40px 8px 16px;
    color: var(--text-primary);
    width: 200px;
    transition: var(--transition);
}

.header__search input:focus {
    width: 280px;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.header__search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
}

.header__icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
}

.header__icon-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.header__icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

.header__user-menu {
    position: relative;
}

.header__user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 5px 12px 5px 5px;
    cursor: pointer;
    color: var(--text-primary);
}

.header__user-btn img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.header__user-btn i {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.header__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 220px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.header__dropdown.active {
    display: block;
}

.header__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header__dropdown a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.header__dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 5px 0;
}

.header__dropdown .text-danger:hover {
    color: var(--danger);
}

.header__mobile-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(108,92,231,0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108,92,231,0.5);
}

.btn--outline {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108,92,231,0.1);
}

.btn--secondary {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

.btn--success {
    background: linear-gradient(135deg, var(--success), #00a086);
    color: white;
}

.btn--danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    color: white;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 0;
    font-size: 0.9rem;
}

.alert .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert--success {
    background: rgba(0,184,148,0.1);
    border-bottom: 1px solid rgba(0,184,148,0.3);
    color: var(--success);
}

.alert--error {
    background: rgba(214,48,49,0.1);
    border-bottom: 1px solid rgba(214,48,49,0.3);
    color: var(--danger);
}

.alert__close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert__close:hover {
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    opacity: var(--hero-opacity, 0.3);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    opacity: var(--hero-overlay, 0.4);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 1;
    pointer-events: none;
}

html[data-theme="light"] .hero::before {
    background: var(--bg-primary);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__content h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

.hero__buttons .btn--outline {
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
}

.hero__buttons .btn--outline:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.hero__stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__cards {
    position: relative;
    width: 100%;
    height: 400px;
}

.hero__card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.hero__card:nth-child(1) {
    top: 0;
    left: 10%;
    width: 260px;
    animation-delay: 0s;
}

.hero__card:nth-child(2) {
    top: 40%;
    right: 5%;
    width: 240px;
    animation-delay: 2s;
}

.hero__card:nth-child(3) {
    bottom: 0;
    left: 20%;
    width: 220px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hero__card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero__card-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.hero__card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero__card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 70px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 50px;
}

.section__header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section__header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section--alt {
    background: var(--bg-secondary);
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.category-card__name {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.category-card__count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .category-card {
        padding: 16px 10px;
    }
    .category-card__icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .category-card__name {
        font-size: 0.78rem;
    }
}

@media (max-width: 380px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-card__badge--featured {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.product-card__badge--instant {
    background: rgba(0,184,148,0.2);
    color: var(--success);
    border: 1px solid rgba(0,184,148,0.3);
}

.product-card__wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    border: none;
    transition: var(--transition);
}

.product-card__wishlist:hover,
.product-card__wishlist.active {
    color: var(--accent);
    background: rgba(253,121,168,0.2);
}

.product-card__image {
    width: 100%;
    height: 180px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__body {
    padding: 18px;
}

.product-card__category {
    font-size: 0.75rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-card__rating {
    color: var(--warning);
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card__price .old-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.product-card__buy {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.product-card__buy:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-card__number {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.step-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   TRUST / FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
}

.feature-card__icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(108,92,231,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 18px;
}

.feature-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   NEWSLETTER / CTA
   ============================================ */
.cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.05));
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    gap: 10px;
}

.cta-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.cta-form input:focus {
    border-color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.footer__brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

.footer__logo {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 5px;
}

html[data-theme="light"] .footer__logo {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__links-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__links-row a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer__links-row a:hover {
    color: var(--primary-light);
}

.footer__socials {
    display: flex;
    gap: 10px;
}

.footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.footer__socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer__bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer__links-row {
        gap: 15px;
    }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c6c8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-card__header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card__header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.auth-card__header p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.auth-card__footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-card__footer a {
    color: var(--primary-light);
    font-weight: 500;
}

.auth-card__footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__buttons { flex-wrap: wrap; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .header__nav { display: none; }
    .header__search { display: none; }
    .header__mobile-toggle { display: flex; }
    .header__auth-btn { display: none; }
    .header__user-btn span { display: none; }
    .header .container { gap: 10px; }
    .header__actions { gap: 8px; }
    .hero { padding: 80px 0 50px; min-height: 300px; }
    .hero__stats { flex-wrap: wrap; gap: 20px; }
    .hero__stat-number { font-size: 1.4rem; }
    .section { padding: 50px 0; }
    .section__header { margin-bottom: 30px; }
    .section__header h2 { font-size: 1.6rem; }
    .section__header p { font-size: 0.92rem; }
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .cta-section { padding: 50px 0; }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-form { flex-direction: column; }
    .feature-card { padding: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero { padding: 60px 0 40px; min-height: 250px; }
    .hero__buttons { flex-direction: column; align-items: stretch; }
    .hero__buttons .btn { justify-content: center; }
    .hero__stats { gap: 15px; }
    .hero__stat-number { font-size: 1.2rem; }
    .hero__stat-label { font-size: 0.7rem; }
    .btn--lg { padding: 14px 24px; font-size: 0.9rem; }
    .auth-card { padding: 25px 18px; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { padding: 20px 10px; }
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-nav__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary-light);
}

/* ============================================
   UTILITIES
   ============================================ */
.main-content {
    overflow-x: hidden;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-light); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--warning);
    border-color: var(--warning);
}

/* Theme toggle icon visibility */
[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: block; }
html:not([data-theme]) .theme-toggle .fa-sun { display: block; }
html:not([data-theme]) .theme-toggle .fa-moon { display: none; }

/* Light mode header gradient text fix */
[data-theme="light"] .header__logo-text {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .footer__logo {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HOW IT WORKS PAGE
   ============================================ */
.how-steps {
    display: grid;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 50px;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
}

.how-step:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.how-step__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.how-step__content {
    flex: 1;
}

.how-step__num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.how-step__content h3 {
    font-size: 1.1rem;
    margin: 4px 0 8px;
    color: var(--text-primary);
}

.how-step__content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-trust {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.how-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.how-trust__item i {
    color: var(--success);
    font-size: 1rem;
}

@media (max-width: 600px) {
    .how-step {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .how-trust {
        gap: 15px;
        padding: 20px;
    }
    .how-trust__item {
        font-size: 0.78rem;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    position: relative;
}

.product-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    background: rgba(0,184,148,0.9);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.product-detail__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-detail__cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    font-weight: 600;
}

.product-detail__title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-detail__meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.product-detail__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-detail__price-box {
    padding: 16px 20px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.product-detail__price {
    font-size: 1.8rem;
    font-weight: 800;
}

.product-detail__old-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.product-detail__discount {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    margin-left: 8px;
}

.product-detail__quick {
    display: grid;
    gap: 8px;
}

.product-detail__quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.product-detail__quick-item i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.product-detail__actions {
    display: flex;
    gap: 10px;
}

.product-detail__trust {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-detail__trust span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-detail__trust i {
    color: var(--success);
}

/* Tabs/panels */
.product-tabs {
    margin-top: 40px;
}

.product-tab-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.product-tab-panel h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.product-tab-panel__body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.product-features {
    list-style: none;
    display: grid;
    gap: 10px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.product-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-detail__title {
        font-size: 1.3rem;
    }
    .product-detail__price {
        font-size: 1.5rem;
    }
    .product-detail__actions {
        flex-direction: column;
    }
    .product-tab-panel {
        padding: 18px;
    }
}

/* ============================================
   MARKETPLACE FILTERS
   ============================================ */
.marketplace-filters {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 30px;
}

.marketplace-filters__form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.marketplace-filters__search {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.marketplace-filters__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.marketplace-filters__search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
}

.marketplace-filters__search input:focus {
    border-color: var(--primary);
}

.marketplace-filters__select {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236c6c8a' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.marketplace-filters__select:focus {
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .marketplace-filters__form {
        flex-direction: column;
    }
    .marketplace-filters__search {
        width: 100%;
    }
    .marketplace-filters__select {
        width: 100%;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 997;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 18px;
        left: 18px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============================================
   USER DASHBOARD COMPONENTS
   ============================================ */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.dash-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dash-stat__value {
    font-size: 1.2rem;
    font-weight: 700;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow: hidden;
}

.dash-card__title {
    font-size: 1rem;
    margin-bottom: 16px;
}

.dash-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.dash-list-item:last-child {
    border-bottom: none;
}

.dash-list-item__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    overflow: hidden;
    flex-shrink: 0;
}

.dash-list-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-list-item__icon--round {
    border-radius: 50%;
}

.dash-list-item__info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.dash-list-item__name {
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-list-item__sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dash-list-item__right {
    text-align: right;
    flex-shrink: 0;
    font-size: 0.84rem;
}

.dash-list-item__amount {
    font-weight: 600;
    font-size: 0.84rem;
}

.dash-list-item__badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .dash-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dash-stat {
        padding: 14px;
    }

    .dash-stat__value {
        font-size: 1rem;
    }

    .dash-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-card {
        padding: 16px;
    }

    .dash-list-item {
        gap: 8px;
    }

    .dash-list-item__icon {
        width: 32px;
        height: 32px;
    }

    .dash-list-item__name {
        font-size: 0.8rem;
    }

    .dash-list-item__right {
        font-size: 0.78rem;
    }

    .dash-list-item__amount {
        font-size: 0.78rem;
    }
}

@media (max-width: 380px) {
    .dash-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dash-stat {
        padding: 12px;
        gap: 8px;
    }

    .dash-stat__icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .dash-stat__value {
        font-size: 0.9rem;
    }
}

/* ============================================
   PRODUCT CARD CART
   ============================================ */
.product-card__cart {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.product-card__cart form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-input);
    flex-shrink: 0;
}

.qty-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-control .qty-input {
    width: 36px;
    height: 34px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.product-card__cart .product-card__buy {
    flex: 1;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-card__cart .product-card__buy:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108,92,231,0.3);
}
