/* ============================================================
   Cheaply: style.css
   Thin compatibility shim only. All real design lives in:
   variables.css · reset.css · layout.css · components.css
   feed.css · animations.css · responsive.css
   ============================================================ */

/* Scrollbar hide utility */
.scrollbar-none {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}

/* Visibility utilities */
.hidden {
    display: none !important;
}

/* Text utilities */
.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-base {
    font-size: var(--text-base);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.font-medium {
    font-weight: var(--weight-medium);
}

.font-semibold {
    font-weight: var(--weight-semibold);
}

.font-bold {
    font-weight: var(--weight-bold);
}

.text-muted {
    color: var(--gray-500);
}

.text-subtle {
    color: var(--gray-400);
}

.text-dark {
    color: var(--gray-900);
}

/* Link reset */
a {
    color: inherit;
    text-decoration: none;
}

/* Page-level background */
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Paragraph default */
p {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: var(--weight-semibold);
}

/* Focus visible ring, accessible */
:focus-visible {
    outline: 2px solid var(--gray-900);
    outline-offset: 2px;
}

/* ── Auth page layout ────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) 24px;
    background: var(--white);
}

.auth-card {
    width: 100%;
    max-width: 480px;
}

.auth-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--black);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: var(--text-base);
    color: var(--gray-500);
    margin-bottom: var(--space-5);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: var(--space-4) 0;
    color: var(--gray-400);
    font-size: var(--text-xs);
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    content: '';
    border-top: 1px solid var(--gray-150);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--black);
    font-weight: var(--weight-medium);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Password toggle button */
.password-field {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--gray-700);
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Password strength indicator */
.password-strength-bar {
    height: 3px;
    background: var(--gray-150);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 8px;
}

.password-strength-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow), background var(--transition-slow);
}

.strength-weak {
    background: var(--color-error);
}

.strength-medium {
    background: var(--color-warning);
}

.strength-strong {
    background: var(--color-success);
}

.password-strength-text {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: 4px;
}

/* Social login buttons */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.social-btn:hover {
    border-color: var(--gray-400);
    box-shadow: var(--shadow-xs);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-btn-row {
    display: flex;
    gap: 10px;
}

/* Form helper text */
.form-hint {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-top: 4px;
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-error);
    margin-top: 4px;
    display: none;
}

.field-error .form-error {
    display: block;
}

.field-error .form-input {
    border-color: var(--color-error);
}

/* Checkbox */
.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--black);
    cursor: pointer;
}

.checkbox-wrap a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Dashboard layout ────────────────────────────────────── */
.dash-page {
    background: var(--color-bg);
    padding: var(--space-5) 0 var(--space-10);
}

.dash-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.dash-header {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-150);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.dash-greeting {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
}

.dash-subline {
    font-size: var(--text-base);
    color: var(--gray-500);
    margin-top: 4px;
}

.dash-mode-badge {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 5px 14px;
}

/* Stats row */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    margin-bottom: var(--space-5);
}

.dash-stat {
    background: var(--color-surface);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.dash-stat:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.dash-stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
    line-height: 1;
}

.dash-stat-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-weight: var(--weight-medium);
}

/* Two-column dashboard grid */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
    align-items: start;
}

/* Quick navigation links (no card wrapper) */
.dash-nav-list {
    display: flex;
    flex-direction: column;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-150);
    color: var(--gray-700);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.dash-nav-item:first-child {
    border-top: 1px solid var(--gray-150);
}

.dash-nav-item:hover {
    color: var(--color-text);
}

.dash-nav-item svg {
    width: 16px;
    height: 16px;
    color: var(--gray-300);
    flex-shrink: 0;
}

/* Activity feed */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    flex-shrink: 0;
    margin-top: 5px;
}

.activity-row-text {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: var(--leading-snug);
}

.activity-row-time {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-top: 3px;
}

/* Seller profile info list */
.profile-info-list {
    display: flex;
    flex-direction: column;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--text-sm);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    color: var(--gray-500);
}

.profile-info-value {
    color: var(--gray-900);
    font-weight: var(--weight-medium);
    text-align: right;
}

/* Quick Actions panel */
.qa-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--space-5);
    overflow: hidden;
}

.qa-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-subtle);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--color-text);
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1px;
    background: var(--gray-100);
}

.qa-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    transition: background var(--transition-fast);
}

.qa-item:hover {
    background: var(--gray-50);
}

.qa-item.primary {
    background: var(--black);
    color: var(--white);
}

.qa-item.primary .qa-sub {
    color: var(--gray-400);
}

.qa-item.primary:hover {
    background: var(--gray-900);
}

.qa-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qa-label {
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
}

.qa-sub {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: 2px;
}

/* Dashboard stats label */
.stats-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: 12px;
    display: block;
}

/* Marketplace status sidebar */
.dash-sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-xs);
    padding: var(--space-5);
}

.dash-sidebar-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

.dash-sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--gray-500);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.dash-sidebar-row:last-of-type {
    border-bottom: none;
}

.dash-sidebar-val {
    font-weight: var(--weight-bold);
    color: var(--color-text);
    font-size: var(--text-xs);
}

/* Verification banner */
.dash-verify-banner {
    background: var(--black);
    color: var(--white);
    padding: 20px 24px;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.dash-verify-title {
    font-weight: var(--weight-extrabold);
    font-size: var(--text-sm);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.dash-verify-sub {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

.dash-verify-btn {
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    padding: 10px 24px;
    font-size: var(--text-xs);
    font-weight: var(--weight-extrabold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    white-space: nowrap;
}

/* Responsive dashboard */
@media (max-width: 900px) {
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .qa-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-inner {
        padding: 0 16px;
    }

    .dash-page {
        padding: var(--space-4) 0 var(--space-8);
    }
}

/* ── Settings pages ──────────────────────────────────────── */
.settings-page {
    background: var(--white);
    padding: 40px 0 80px;
}

.settings-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.settings-page-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 4px;
}

.settings-page-sub {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.5;
}

.settings-section {
    margin-bottom: 0;
    padding: 28px 0;
    border-bottom: 1px solid var(--gray-100);
}

.settings-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-section-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--black);
    margin-bottom: 16px;
}

.settings-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (min-width: 768px) {
    .settings-section {
        display: grid;
        grid-template-columns: 168px 1fr;
        gap: 0 32px;
        align-items: start;
    }

    .settings-section-title {
        padding-top: 6px;
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .settings-inner {
        padding: 0 16px;
    }

    .settings-grid-2 {
        grid-template-columns: 1fr;
    }
}
