@import url('https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css');
@import url('https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/variable/woff2/SUIT-Variable.css');

/* ODA Design System — Refined */

:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --accent: #7c3aed;
    --accent-light: #f5f3ff;
    --gradient: linear-gradient(135deg, #2563eb, #6366f1);
    --gradient-subtle: linear-gradient(135deg, #eff6ff, #f5f3ff);
    --success: #16a34a;
    --success-light: #f0fdf4;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.03);
    --transition: 180ms ease;
    --transition-slow: 300ms ease;
    --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.08);
    --font-mono: 'SF Mono', 'Fira Code', monospace;
}

/* Reset */
html {
    scrollbar-gutter: stable;
}

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

::selection {
    background: rgba(37, 99, 235, 0.12);
    color: inherit;
}

body {
    font-family: 'Wanted Sans Variable', 'Wanted Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 6px;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.navbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    font-family: 'SUIT Variable', 'SUIT', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    user-select: none;
    -webkit-user-select: none;
}

.navbar .logo a {
    color: inherit;
    text-decoration: none;
}

.navbar .logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--gray-800);
    text-decoration: none;
}

.navbar-actions .mall-id {
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-outline {
    background: #fff;
    color: var(--gray-600);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-800);
    text-decoration: none;
}

.btn-outline:disabled {
    background: var(--gray-50);
    color: var(--gray-400);
    border-color: var(--gray-200);
}

.btn-danger {
    background: #fff;
    color: var(--danger);
    border-color: var(--gray-200);
}

.btn-danger:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    text-decoration: none;
}

.btn-sm {
    padding: 5px 14px;
    font-size: 14px;
    min-height: 32px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
}

/* ===== Cards ===== */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-800);
}

.card-header-view {
    font-weight: 500;
    color: var(--gray-400);
    margin-left: 2px;
}

.card-header-view::before {
    content: '/ ';
}

.card-body {
    padding: 24px;
}

.card-body-flush {
    padding: 0;
}

/* ===== Stat cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card[data-href] {
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--focus-ring);
}

.stat-card.active::before {
    opacity: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-sub {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 6px;
    font-weight: 500;
}

/* ===== Status badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Pipeline progress bar */
.pipeline-bar-wrap {
    flex: 0 0 120px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.pipeline-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Sync bar (info + button) */
.sync-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 24px;
    font-size: 14px;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.sync-info-text {
    flex: 1;
    min-width: 0;
}


/* ===== Tables ===== */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

th {
    text-align: left;
    padding: 12px 18px;
    background: var(--gray-50);
    color: var(--gray-500);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    transition: background-color var(--transition);
    font-size: 14px;
}

tbody tr:not(.event-detail-row):nth-child(even) td {
    background: rgba(248, 250, 252, 0.5);
}

tr:not(.event-detail-row):hover td {
    background: var(--primary-light);
}

td.mono {
    font-family: var(--font-mono);
    font-size: 13px;
}

/* ===== Status dot ===== */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: default;
}

.status-on {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.status-off {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* ===== Search bar ===== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.search-input {
    flex: 1;
    max-width: 420px;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-500);
    flex-wrap: wrap;
    background: var(--gray-50);
}

.page-size-select {
    padding: 6px 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-600);
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.page-size-select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-600);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
}

.page-btn:hover:not(:disabled):not(.active) {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.page-btn:disabled {
    color: var(--gray-300);
    cursor: default;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    font-size: 14px;
    color: var(--gray-400);
}

.page-total {
    font-size: 14px;
    color: var(--gray-500);
    white-space: nowrap;
}

/* ===== Loading ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: var(--gray-400);
    font-size: 15px;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Empty state ===== */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--gray-400);
}

.empty-state p {
    margin-top: 8px;
    font-size: 15px;
}

/* ===== Landing Page ===== */
.hero {
    text-align: center;
    padding: 120px 24px 100px;
    background: linear-gradient(-45deg, #0d0d20, #2a1660, #143058, #1e1250);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
    0% {
        background-position: 0% 25%;
    }

    25% {
        background-position: 50% 75%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 25%;
    }

    100% {
        background-position: 0% 25%;
    }
}

.hero-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero .subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.8;
}

.hero-note {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* Section label */
.section-label {
    font-size: 13px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subheading {
    font-size: 16px;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 40px;
}

/* Problem Section */
.problem-section {
    padding: 80px 24px;
    background: #fff;
}

.problem-inner {
    max-width: 900px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.problem-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.problem-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

.problem-source {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 8px;
}

/* Stats / Social Proof Section */
.stats-section {
    padding: 80px 24px;
    background: var(--gray-50);
}

.stats-section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.proof-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.proof-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.proof-card-highlight {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    position: relative;
}

.proof-card-highlight::before {
    content: 'ODA가 해결합니다';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.proof-value {
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.proof-desc {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 8px;
}

.proof-desc strong {
    color: var(--gray-900);
    font-weight: 700;
}

.proof-source {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

/* Callout Section */
.callout-section {
    padding: 64px 24px;
    background: #fff;
    border-top: 1px solid var(--gray-100);
}

.callout-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.callout-heading {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.callout-desc {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.8;
}

/* Features */
.features {
    padding: 80px 24px;
    background: #fff;
}

.features-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid {
    max-width: 1000px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-subtle);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 12px;
    font-weight: 500;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* How It Works */
.how-section {
    padding: 80px 24px;
    background: var(--gray-50);
}

.how-section-inner {
    max-width: 640px;
    margin: 0 auto;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.step-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 17px;
}

.step-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: 2px;
}

.step-desc {
    color: var(--gray-500);
    font-size: 15px;
    margin-top: 6px;
    line-height: 1.7;
}

/* Testimonial Section */
.testimonial-section {
    padding: 80px 24px;
    background: #fff;
}

.testimonial-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 28px 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.testimonial-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
}

.testimonial-before {
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.testimonial-arrow {
    color: var(--gray-300);
    font-size: 16px;
}

.testimonial-after {
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.testimonial-quote {
    text-align: center;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.75;
    flex: 1;
}

.testimonial-author {
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.testimonial-who {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}

.testimonial-shop {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 2px;
}

.testimonial-note {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-400);
}

/* ===== Pricing Page ===== */

/* Pricing Hero */
.pricing-hero {
    text-align: center;
    padding: 88px 24px 72px;
    background: linear-gradient(-45deg, #0d0d20, #2a1660, #143058, #1e1250);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
}

.pricing-hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.pricing-hero .subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.50);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Pricing main card section */
.pricing-main {
    padding: 64px 24px;
    background: var(--gray-50);
}

.pricing-inner {
    max-width: 640px;
    margin: 0 auto;
}

.pricing-card-wrap {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 44px 40px 36px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    position: relative;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.pricing-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 16px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.pricing-rate {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    margin-bottom: 8px;
}

.pricing-number {
    font-size: 80px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -3px;
}

.pricing-percent {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-rate-label {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 0 auto 32px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--gray-700);
    font-weight: 500;
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--primary);
}

.pricing-divider {
    width: 100%;
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0 20px;
}

.pricing-includes-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.pricing-includes {
    list-style: none;
    text-align: left;
    margin: 0 auto 28px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pricing-includes li {
    font-size: 14px;
    color: var(--gray-500);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.pricing-includes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
}

.pricing-cta {
    width: 100%;
    justify-content: center;
}

/* Cost Simulation */
.pricing-example-section {
    padding: 80px 24px;
    background: #fff;
}

.pricing-example-inner {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-sim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.pricing-sim-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pricing-sim-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pricing-sim-card-highlight {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border-color: rgba(37, 99, 235, 0.25);
}

.pricing-sim-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-sim-revenue {
    font-size: 15px;
    color: var(--gray-600);
    font-weight: 500;
}

.pricing-sim-arrow {
    color: var(--gray-300);
    display: flex;
    align-items: center;
}

.pricing-sim-cost {
    font-size: 15px;
    color: var(--gray-600);
}

.pricing-sim-cost strong {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ */
.pricing-faq-section {
    padding: 80px 24px;
    background: var(--gray-50);
}

.pricing-faq-inner {
    max-width: 720px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--gray-300);
}

.faq-item[open] {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition), color var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '\2212';
    color: var(--primary);
}

.faq-item[open] .faq-question {
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.75;
}

/* CTA Section */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(-45deg, #0d0d20, #2a1660, #143058, #1e1250);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    text-align: center;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.cta-inner p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-sub {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* Landing Footer */
/* Contact Section */
.contact-section {
    padding: 80px 24px;
    background: var(--gray-50);
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.5;
}

.contact-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.landing-footer {
    padding: 32px 24px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: 'SUIT Variable', 'SUIT', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-300);
}

.footer-brand span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== Dashboard ===== */
.dashboard-content {
    padding-top: 28px;
    padding-bottom: 28px;
}

/* Placeholder section */
.placeholder-section {
    background: var(--gradient-subtle);
    border: 2px dashed rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-lg);
    padding: 56px 28px;
    text-align: center;
    color: var(--gray-400);
    margin-top: 28px;
}

.placeholder-section h3 {
    color: var(--gray-500);
    margin-bottom: 8px;
    font-size: 16px;
}

.placeholder-section p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Product Detail Page ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.back-link::before {
    content: '\2190';
    font-size: 16px;
}

.product-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.product-gallery {
    position: relative;
}

.product-image-main {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.product-image-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition);
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.product-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 4px;
}

.product-price-area {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.product-price-current {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
}

.product-price-original {
    font-size: 16px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-price-discount {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

.product-status-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-meta-list {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 6px 12px;
    font-size: 15px;
}

.product-meta-label {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 14px;
}

.product-meta-value {
    color: var(--gray-700);
}

.product-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.product-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gradient-subtle);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

/* Inline compact stats */
.product-inline-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.inline-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.inline-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.inline-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* Description collapsible */
.product-description-text {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.8;
    white-space: pre-wrap;
}

.product-description-text.collapsed {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
}

.product-description-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(transparent, #fff);
}

/* Similar products */
.similar-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.similar-card-wrap {
    overflow: hidden;
}

.similar-card-body-inner {
    padding: 12px;
}

.similar-header-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 999px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.rec-grid-5col {
    grid-template-columns: repeat(5, 1fr);
}

.similar-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.similar-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.similar-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--gray-50);
    display: block;
}

.similar-card-noimg {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 13px;
}

.similar-card-body {
    padding: 10px 12px;
}

.similar-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.similar-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.similar-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}

.similar-card-pct {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 7px;
    border-radius: 999px;
}

.no-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 15px;
    border-radius: var(--radius);
}

.similar-empty {
    text-align: center;
    padding: 32px;
    color: var(--gray-400);
    font-size: 15px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

/* ===== Events Filter Bar ===== */
.events-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 24px 0;
    background: var(--gray-50);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* Event legend button & popover */
.event-legend-wrap {
    position: relative;
    display: inline-flex;
    margin-left: 2px;
}

.event-legend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    background: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: color var(--transition);
}

.event-legend-btn:hover {
    color: var(--gray-600);
}

.event-legend-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 12px 16px;
    width: max-content;
    animation: fadeSlideIn 0.15s ease;
}

.event-legend-popover.open {
    display: block;
}

.event-legend-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.event-legend-group+.event-legend-group {
    margin-top: 10px;
}

.event-legend-group-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.event-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.event-legend-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.event-legend-desc {
    font-size: 12px;
    color: var(--gray-500);
}

.chip {
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.filter-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.filter-input,
.filter-select {
    padding: 7px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-700);
    background: #fff;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.filter-input {
    max-width: 160px;
}

.filter-date {
    width: 130px;
}

/* ===== Events Summary ===== */
.events-summary {
    display: flex;
    gap: 12px;
    padding: 14px 24px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
    align-items: stretch;
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    min-width: 110px;
    box-shadow: var(--shadow-xs);
}

.summary-card .summary-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.summary-card .summary-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.summary-funnel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    flex: 1;
    min-width: 260px;
    box-shadow: var(--shadow-xs);
}

.funnel-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.funnel-step .funnel-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 24px;
}

.funnel-step .funnel-label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.funnel-arrow {
    color: var(--gray-300);
    font-size: 18px;
    flex-shrink: 0;
}

.funnel-step-ctr .funnel-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.funnel-step-ctr {
    margin-left: 6px;
}

/* ===== Page Funnel Breakdown ===== */
.page-funnels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding-top: 4px;
}

.page-funnels:empty {
    display: none;
}

.page-funnel-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    box-shadow: var(--shadow-xs);
}

.page-funnel-item strong {
    color: var(--gray-800);
    font-weight: 700;
}

.page-funnel-item .page-funnel-stats {
    color: var(--gray-500);
}

.page-funnel-item em {
    font-style: normal;
    font-weight: 700;
    color: var(--primary);
}

.page-funnel-ctr-label {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 600;
}

/* ===== Event Detail Expand Row ===== */
.event-detail-row td {
    padding: 0;
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.event-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-items: start;
    gap: 20px;
    padding: 20px 24px;
    animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-detail-fields {
    font-size: 14px;
}

.event-detail-fields dt {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 10px;
}

.event-detail-fields dt:first-child {
    margin-top: 0;
}

.event-detail-fields dd {
    color: var(--gray-800);
    margin: 2px 0 0 0;
    word-break: break-all;
}

.event-detail-json {
    font-size: 13px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-detail-json-label {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.event-detail-json pre {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-mono);
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    flex: 1;
    min-height: 0;
}

/* Expand button */
.expand-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 13px;
    color: var(--gray-500);
}

.expand-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.expand-btn.expanded {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Truncated text */
.text-truncated {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    cursor: default;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .hero {
        padding: 80px 20px 60px;
    }

    .section-heading {
        font-size: 26px;
    }

    .features {
        padding: 48px 20px;
    }

    .how-section {
        padding: 48px 20px;
    }

    .problem-section {
        padding: 48px 20px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-number {
        font-size: 36px;
    }

    .stats-section {
        padding: 48px 20px;
    }

    .callout-section {
        padding: 48px 20px;
    }

    .callout-heading {
        font-size: 22px;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .proof-value {
        font-size: 32px;
    }

    .testimonial-section {
        padding: 48px 20px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero {
        padding: 64px 20px 52px;
    }

    .pricing-hero h1 {
        font-size: 30px;
    }

    .pricing-main {
        padding: 40px 20px;
    }

    .pricing-card {
        padding: 32px 24px 28px;
    }

    .pricing-number {
        font-size: 64px;
    }

    .pricing-percent {
        font-size: 28px;
    }

    .pricing-example-section {
        padding: 48px 20px;
    }

    .pricing-sim-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-faq-section {
        padding: 48px 20px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 18px;
    }

    .faq-answer {
        padding: 0 18px 16px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-inner h2 {
        font-size: 28px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 22px;
    }

    .navbar {
        padding: 0 16px;
        height: 56px;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab {
        white-space: nowrap;
    }

    td,
    th {
        padding: 10px 12px;
    }

    .product-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price-current {
        font-size: 22px;
    }

    .similar-columns {
        grid-template-columns: 1fr;
    }

    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rec-grid-5col {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-inline-stats {
        gap: 12px;
    }

    .inline-stat-value {
        font-size: 16px;
    }

    .events-filter-bar {
        padding: 10px 14px;
    }

    .filter-dates {
        margin-left: 0;
        width: 100%;
    }

    .events-summary {
        padding: 12px 14px;
        gap: 8px;
    }

    .summary-funnel {
        min-width: 200px;
    }

    .event-detail-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero {
        padding: 60px 16px 48px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: 22px;
    }
}

/* ===== Dark-bg Forms (Cafe24 auth, beta, contact) ===== */
.oda-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    text-align: left;
    letter-spacing: 0.02em;
}

.oda-form input,
.oda-form textarea,
.oda-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.oda-form input::placeholder,
.oda-form textarea::placeholder {
    color: rgba(255, 255, 255, .35);
}

.oda-form input:focus,
.oda-form textarea:focus,
.oda-form select:focus {
    border-color: #2563eb;
}

.oda-form .field {
    margin-bottom: 18px;
}

.oda-form .required::after {
    content: " *";
    color: #e74c3c;
}

.oda-form .checkbox-row {
    margin: 20px 0;
}

.oda-form .checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
    letter-spacing: 0;
}

.oda-form .checkbox-row input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* ===== Contact Page Layout ===== */
.contact-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 960px;
    margin: 0 auto;
}

.contact-form-side {
    flex: 1;
    min-width: 0;
}

.contact-map-side {
    flex: 1;
    min-width: 0;
    padding-top: 25px;
}

.map-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
}

.map-card iframe {
    display: block;
}

.map-info {
    padding: 16px 20px;
    background: rgba(255, 255, 255, .06);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.map-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
}

.map-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    margin: 0;
    line-height: 1.5;
}

.msg-banner {
    background: rgba(37, 99, 235, .15);
    border: 1px solid rgba(37, 99, 235, .3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
}

@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }
}

/* ===== Auth Pages (Login / Setup) ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 40px 20px;
    background: var(--gray-50);
}

.auth-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--gray-400);
    margin-bottom: 24px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    background: #fff;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.auth-input:disabled {
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: not-allowed;
}

.auth-checkbox {
    margin-bottom: 20px;
}

.auth-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.auth-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-error:empty {
    display: none;
}

.auth-info {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-info:empty {
    display: none;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
}

.auth-footer a {
    font-weight: 600;
}

/* ===== Toggle Switch (iOS-style) ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:focus-visible+.toggle-slider {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== Widget Setting Rows ===== */
.ws-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: opacity var(--transition), background var(--transition);
}

.ws-row.ws-disabled {
    opacity: 0.5;
    background: var(--gray-50);
}

.ws-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.ws-row-label strong {
    font-size: 14px;
    color: var(--gray-800);
}

.ws-row-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ws-row-fields input,
.ws-row-fields select {
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: #fff;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.ws-row-fields input:focus,
.ws-row-fields select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.ws-row-fields input:disabled,
.ws-row-fields select:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
    border-color: var(--gray-200);
}

.ws-row-fields input[type="text"] {
    flex: 1;
    padding: 7px 12px;
    min-width: 0;
}

.ws-row-fields select {
    padding: 7px 10px;
}

.ws-row-fields .ws-limit-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
}

.ws-status {
    font-size: 12px;
    font-weight: 600;
    min-width: 44px;
    text-align: right;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.ws-status-saved {
    color: var(--success);
}

.ws-status-error {
    color: var(--danger);
}

/* Widget drag handle */
.ws-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    cursor: grab;
    color: var(--gray-300);
    font-size: 18px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
    letter-spacing: 1px;
}

.ws-drag-handle:hover {
    color: var(--gray-500);
    background: var(--gray-100);
}

.ws-drag-handle:active {
    cursor: grabbing;
    color: var(--primary);
}

.ws-row.ws-dragging {
    opacity: 0.4;
    background: var(--primary-light);
    border-style: dashed;
}

.ws-row.ws-drag-over-top::before,
.ws-row.ws-drag-over-bottom::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ws-row.ws-drag-over-top::before {
    top: -6px;
}

.ws-row.ws-drag-over-bottom::after {
    bottom: -6px;
}

/* Section divider in settings */
.ws-section-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 10px;
}

.ws-section-header:first-child {
    padding-top: 0;
}

/* Position select in ws-row */
.ws-position-select {
    padding: 5px 8px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--gray-600);
    background: #fff;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.ws-position-select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.ws-position-select:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

/* ===== Reconnect Banner (Dashboard) ===== */
.reconnect-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: var(--warning-light);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-700);
}

.reconnect-banner a {
    font-weight: 600;
    white-space: nowrap;
    color: var(--warning);
}

.reconnect-banner a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 28px 20px;
    }

    .reconnect-banner {
        flex-direction: column;
        text-align: center;
    }
}