﻿@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400&family=Merriweather:wght@400&display=swap');

:root {
    --tech-red-950: #2f070f;
    --tech-red-900: #490c17;
    --tech-red-800: #651022;
    --tech-red-700: #86162d;
    --tech-red-600: #aa1f3b;
    --tech-red-500: #c73252;
    --tech-red-100: #f5e5e8;
    --tech-red-50: #faf3f4;

    --primary-dark: #490c17 !important;
    --primary: #86162d !important;
    --primary-light: #b32844 !important;
    --secondary: #aa1f3b !important;
    --secondary-light: #c73252 !important;
    --accent: #cf3756 !important;
    --accent-light: #e3657e !important;
    --danger: #9c152a !important;
    --warning: #be4a20 !important;
    --info: #7a2033 !important;
    --light-bg: #faf3f4 !important;
    --white: #ffffff !important;
    --card-bg: rgba(255, 255, 255, 0.94) !important;
    --sidebar-bg: #3b0b13 !important;
    --sidebar-text: #f5e5e8 !important;
    --text-dark: #2a1519 !important;
    --text-medium: #5e2a34 !important;
    --text-light: #7f4a54 !important;
    --border: rgba(111, 23, 40, 0.16) !important;
    --ink: #2a1519 !important;
    --paper: #f9f2f1 !important;
    --forest: #86162d !important;
    --clay: #9c233b !important;
    --gold: #bc4a57 !important;
    --nav: #3b0b13 !important;
    --line: rgba(111, 23, 40, 0.14) !important;
}

html {
    font-size: 90%;
}

*,
*::before,
*::after {
    font-weight: 400 !important;
}

body,
button,
input,
select,
textarea {
    font-family: 'IBM Plex Sans', 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.logo-text,
.page-title h1,
.top-title,
.section-title h2 {
    font-family: 'Merriweather', Georgia, serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
}

h1 {
    font-size: clamp(1.55rem, 2.1vw, 2.05rem) !important;
}

h2 {
    font-size: clamp(1.35rem, 1.7vw, 1.7rem) !important;
}

h3 {
    font-size: clamp(1.12rem, 1.35vw, 1.32rem) !important;
}

h4,
h5,
h6 {
    font-size: 1rem !important;
}

b,
strong,
.btn,
.nav-link,
.nav-links a,
.stat-number,
.stat-value,
.metric strong,
.code,
.code-display,
.member-name,
.agent-name,
.quick-access-title,
.product-row.header,
th {
    font-weight: 400 !important;
}

body {
    background:
        radial-gradient(circle at 14% 8%, rgba(176, 24, 45, 0.16), transparent 46%),
        radial-gradient(circle at 90% 0%, rgba(89, 14, 28, 0.14), transparent 43%),
        linear-gradient(145deg, #f6f1f2 0%, #faf6f6 52%, #efe5e7 100%) !important;
}

header,
.top-bar {
    background: rgba(255, 251, 251, 0.92) !important;
    border-color: rgba(111, 23, 40, 0.12) !important;
}

.sidebar,
.login-sidebar,
.app .sidebar {
    background: linear-gradient(180deg, var(--tech-red-950) 0%, var(--tech-red-900) 48%, var(--tech-red-800) 100%) !important;
    color: var(--sidebar-text) !important;
}

.sidebar .muted,
.sidebar a,
.sidebar .section,
.nav-section h4,
.help-links a,
.pill {
    color: #f5dfe4 !important;
}

.logo-icon,
.feature-icon,
.quick-access-icon,
.member-avatar,
.timeline-number {
    background: linear-gradient(135deg, var(--tech-red-700), var(--tech-red-500)) !important;
    color: #fff6f7 !important;
}

.btn,
button,
.btn-primary {
    background: linear-gradient(135deg, var(--tech-red-700), var(--tech-red-500)) !important;
    color: #fff6f7 !important;
    border: 1px solid rgba(255, 233, 237, 0.16) !important;
    box-shadow: 0 10px 20px rgba(80, 10, 26, 0.22) !important;
}

.btn:hover,
button:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, var(--tech-red-600), var(--tech-red-400, #db4b6b)) !important;
}

.btn-secondary,
.btn-outline,
.btn-ghost {
    background: #fff7f8 !important;
    color: var(--primary) !important;
    border: 1px solid rgba(134, 22, 45, 0.35) !important;
    box-shadow: none !important;
}

.panel,
.card,
.stat-card,
.feature-card,
.timeline-content,
.quick-access-card,
.metric,
.connect-code,
.device-code-display,
.pos-stat,
.agent-card,
.agent-detail,
.login-container,
.form-input,
.product-list,
.product-row {
    border-color: rgba(111, 23, 40, 0.14) !important;
}

.panel,
.card,
.stat-card,
.feature-card,
.timeline-content,
.quick-access-card,
.metric,
.connect-code,
.device-code-display,
.pos-stat,
.agent-card,
.agent-detail,
.login-container,
.product-list {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 14px 30px rgba(75, 12, 23, 0.12) !important;
}

.main-content,
.content,
.hero,
.roles,
.benefits,
.features {
    background: transparent !important;
}

.sidebar .nav-links a:hover,
.sidebar .nav-links a.active,
#sidebar .nav-links a:hover,
#sidebar .nav-links a.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff7f8 !important;
}

.nav-link:hover {
    color: var(--primary-dark) !important;
}

a,
.form-link,
.topbar a,
.nav-link {
    color: var(--primary) !important;
}

/* Keep text white on red buttons (anchors + buttons). */
a.btn,
a.btn-primary,
.btn,
.btn-primary,
button,
a.shop-btn,
.shop-btn {
    color: #fff6f7 !important;
}

/* Keep outline / ghost buttons readable on light background. */
a.btn-secondary,
a.btn-outline,
a.btn-ghost,
.btn-secondary,
.btn-outline,
.btn-ghost,
a.shop-btn-ghost,
.shop-btn-ghost {
    color: var(--primary) !important;
}

/* Footer: all text white */
footer,
footer *,
footer a,
footer p,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer li,
footer span,
footer small {
    color: #ffffff !important;
}

.nav-link::after,
.features::before,
.timeline-line,
.stat-card::before,
.form-link::after {
    background: linear-gradient(135deg, var(--tech-red-700), var(--tech-red-500)) !important;
}

i.fa-solid,
i.fa-regular,
i.fa-brands {
    color: currentColor !important;
    line-height: 1;
}

.fa-solid,
.fa-solid::before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.fa-regular,
.fa-regular::before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400 !important;
}

.fa-brands,
.fa-brands::before {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

.nav-icon i.fa-solid,
.feature-icon i.fa-solid,
.benefit-icon i.fa-solid,
.quick-access-icon i.fa-solid,
.mobile-menu-btn i.fa-solid {
    font-size: 1rem;
}

.nav-icon i.fa-solid {
    width: 1rem;
    text-align: center;
}

th,
.stat-label,
.pos-stat-label,
.agent-metric-label,
.text-small {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem !important;
}

input,
select,
textarea,
.form-input {
    border: 1px solid rgba(111, 23, 40, 0.24) !important;
    font-size: 0.92rem !important;
    background: #fffdfd !important;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(170, 31, 59, 0.14) !important;
    outline: none;
}

@media (max-width: 768px) {
    html {
        font-size: 87%;
    }
}

/* Shared website shell (landing/login/register/shop public pages) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.site-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff7f8;
    background: linear-gradient(135deg, var(--tech-red-700), var(--tech-red-500));
    box-shadow: 0 10px 20px rgba(80, 10, 26, 0.22);
}

.site-logo-text {
    color: var(--text-dark) !important;
    font-size: 1.2rem;
}

.site-nav-links {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-link {
    text-decoration: none;
    color: var(--text-medium) !important;
    font-size: 0.92rem;
    padding: 0.25rem 0.2rem;
}

.site-link:hover {
    color: var(--primary) !important;
}

.site-btn {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-btn-primary {
    background: linear-gradient(135deg, var(--tech-red-700), var(--tech-red-500));
    color: #fff7f8 !important;
}

.site-btn-outline {
    background: #fff7f8;
    color: var(--primary) !important;
    border-color: rgba(134, 22, 45, 0.35);
}

.site-logout-inline {
    margin: 0;
}

.site-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.45rem;
    color: var(--text-dark);
    cursor: pointer;
}

.site-footer {
    background: var(--tech-red-900) !important;
    color: #ffffff !important;
    padding: 2.4rem 2rem 1.3rem;
    margin-top: 2.5rem;
}

.site-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.site-footer-section h4 {
    margin: 0 0 0.8rem;
    color: #ffffff !important;
}

.site-footer-section p {
    margin: 0;
    color: #ffffff !important;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer-links a {
    color: #ffffff !important;
    text-decoration: none;
}

.site-copyright {
    max-width: 1200px;
    margin: 1.3rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    text-align: center;
}

@media (max-width: 920px) {
    .site-mobile-menu-btn {
        display: inline-flex;
    }

    .site-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(80, 10, 26, 0.18);
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav-links.active {
        display: flex;
    }

    .site-nav-container {
        position: relative;
        padding: 0.9rem 1rem;
    }
}
