/* Shared flat visual language for the public site and account surfaces. */
:root {
    --flat-bg: #f3f6fa;
    --flat-surface: #ffffff;
    --flat-border: #d9e1eb;
    --flat-muted-surface: #f7f9fc;
}

.site-page {
    min-height: 100vh;
    background: var(--flat-bg);
    font-size: 17px;
}

.site-page .app-container {
    max-width: 1280px;
}

.site-page .main-nav {
    padding: 2px 0 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--flat-border);
}

.site-page .logo-image {
    height: 56px;
}

.site-page .btn-login-x,
.site-page .btn-nav-submit {
    border-radius: 4px;
    box-shadow: none;
    font-size: 0.95rem;
}

.site-page .btn-login-x:hover,
.site-page .btn-nav-submit:hover {
    transform: none;
    box-shadow: none;
}

.site-page .user-profile,
.site-page .profile-header,
.site-page .settings-panel,
.site-page .submit-container,
.site-page .legal-content,
.site-page .preferences-card {
    border-radius: 0;
    box-shadow: none;
}

.site-page .profile-header,
.site-page .settings-panel,
.site-page .submit-container,
.site-page .legal-content,
.site-page .preferences-card {
    border: 1px solid var(--flat-border);
    background: var(--flat-surface);
}

.site-page .main-footer {
    margin-top: 30px;
    padding-top: 18px;
    font-size: 0.88rem;
}

/* Seller dashboard */
.dashboard-page .profile-header {
    margin-bottom: 22px;
    padding: 26px;
}

.dashboard-page .tabs-nav {
    gap: 0;
    margin-bottom: 18px;
    padding-bottom: 0;
}

.dashboard-page .tab-btn {
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 18px;
    font-size: 1rem;
}

.dashboard-page .tab-btn:hover {
    background: var(--flat-muted-surface);
}

.dashboard-page .tab-btn.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
}

.dashboard-page .data-list {
    gap: 10px;
}

.dashboard-page .data-item {
    padding: 18px 20px;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.2s, border-color 0.2s;
}

.dashboard-page .data-item:hover {
    background: var(--flat-muted-surface);
    transform: none;
}

.dashboard-page .item-meta {
    font-size: 0.92rem;
}

.dashboard-page .btn-action-sm {
    border-radius: 0;
    font-size: 0.88rem;
}

.dashboard-page .status-tag {
    border-radius: 0;
    font-size: 0.8rem;
}

.dashboard-page .settings-panel {
    padding: 28px;
}

.dashboard-page .email-input-group input,
.dashboard-page .security-form input {
    border-radius: 0;
    font-size: 1rem;
}

.dashboard-page .email-input-group button,
.dashboard-page .security-form button {
    border-radius: 0;
    background: var(--primary);
    box-shadow: none;
    font-size: 0.98rem;
}

/* Listing and verification flow */
.listing-page .submit-container {
    max-width: 680px;
    margin: 26px auto;
    padding: 32px;
}

.listing-page .form-group input,
.listing-page .form-group textarea,
.listing-page .bulk-domain-input,
.listing-page .file-input,
.listing-page .preview-input {
    border-radius: 0;
    font-size: 1rem;
}

.listing-page .form-group input,
.listing-page .form-group textarea,
.listing-page .bulk-domain-input {
    min-height: 44px;
}

.listing-page .btn-submit,
.listing-page .secondary-button,
.listing-page .method-button,
.listing-page .copy-button {
    border-radius: 0;
    box-shadow: none;
    font-size: 0.98rem;
}

.listing-page .btn-submit {
    background: var(--primary);
}

.listing-page .listing-mode-picker {
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: var(--flat-muted-surface);
}

.listing-page .listing-mode-button {
    border-right: 1px solid var(--flat-border);
    border-radius: 0;
    padding: 12px 10px;
    font-size: 0.98rem;
}

.listing-page .listing-mode-button:last-child {
    border-right: 0;
}

.listing-page .listing-mode-button:hover,
.listing-page .listing-mode-button.active {
    background: var(--flat-surface);
    box-shadow: none;
}

.listing-page .method-picker {
    gap: 0;
}

.listing-page .method-button {
    border-radius: 0;
}

.listing-page .method-button + .method-button {
    border-left: 0;
}

.listing-page .record-card,
.listing-page .verification-note,
.listing-page .alert {
    border-radius: 0;
}

.listing-page .record-card {
    box-shadow: none;
}

/* Seller storefront */
.storefront-page .seller-profile-card {
    padding: 30px;
    border-radius: 0;
    border-color: var(--flat-border);
    background: var(--flat-surface);
    box-shadow: none;
}

.storefront-page .seller-avatar-large {
    box-shadow: none;
}

.storefront-page .seller-verified-pill,
.storefront-page .seller-secondary-button,
.storefront-page .seller-contact-button {
    border-radius: 0;
}

.storefront-page .seller-contact-button,
.storefront-page .seller-manage-button {
    background: #0f172a;
    box-shadow: none;
}

.storefront-page .seller-secondary-button {
    background: var(--flat-surface);
}

.storefront-page .seller-summary {
    gap: 0;
    margin: 16px 0 28px;
}

.storefront-page .seller-summary div {
    border-radius: 0;
    border-right: 0;
}

.storefront-page .seller-summary div:last-child {
    border-right: 1px solid var(--flat-border);
}

.storefront-page .seller-filter-panel {
    gap: 12px;
    padding: 16px;
    border-radius: 0;
    background: var(--flat-surface);
}

.storefront-page .seller-search input,
.storefront-page .seller-filter-field select,
.storefront-page .seller-reset-button {
    min-height: 42px;
    border-radius: 0;
    font-size: 0.94rem;
}

.storefront-page .seller-domain-card {
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.2s, background 0.2s;
}

.storefront-page .seller-domain-card:hover {
    background: var(--flat-muted-surface);
    box-shadow: none;
    transform: none;
}

.storefront-page .seller-domain-tld,
.storefront-page .seller-domain-meta span,
.storefront-page .seller-domain-contact,
.storefront-page .seller-empty-state {
    border-radius: 0;
}

.storefront-page .seller-domain-title-group h3 {
    font-size: 1.28rem;
}

.storefront-page .seller-domain-contact {
    font-size: 0.94rem;
}

/* Legal, contact, and preferences pages */
.content-page .legal-content {
    max-width: 860px;
    margin: 26px auto;
    padding: 36px;
    font-size: 1.04rem;
}

.content-page .contact-form {
    max-width: 560px;
}

.content-page .contact-form .form-group input,
.content-page .contact-form .form-group textarea {
    border-radius: 0;
    font-size: 1rem;
}

.content-page .submit-btn,
.content-page .contact-email,
.content-page .form-message {
    border-radius: 0;
}

.content-page .submit-btn {
    background: var(--primary);
    font-size: 1rem;
}

.preferences-page .preferences-container {
    max-width: 680px;
    padding: 34px 20px;
}

.preferences-page .preferences-card {
    padding: 34px;
}

.preferences-page .email-display {
    border-radius: 0;
    background: var(--flat-muted-surface);
}

.preferences-page .setting-info h4 {
    font-size: 1rem;
}

.preferences-page .setting-info p,
.preferences-page .unsubscribe-section p {
    font-size: 0.92rem;
}

.preferences-page .btn-save,
.preferences-page .btn-unsubscribe {
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
}

.preferences-page .btn-save {
    background: var(--primary);
}

@media (max-width: 640px) {
    .site-page {
        font-size: 16px;
    }

    .site-page .main-nav {
        margin-bottom: 16px;
    }

    .dashboard-page .profile-header,
    .listing-page .submit-container,
    .content-page .legal-content,
    .preferences-page .preferences-card {
        padding: 22px 18px;
    }

    .dashboard-page .tabs-nav {
        overflow-x: auto;
    }

    .dashboard-page .tab-btn {
        flex: 0 0 auto;
        padding-inline: 14px;
    }

    .storefront-page .seller-profile-card {
        padding: 24px 20px;
    }

    .storefront-page .seller-summary {
        gap: 1px;
        background: var(--flat-border);
    }

    .storefront-page .seller-summary div,
    .storefront-page .seller-summary div:last-child {
        border-right: 0;
    }
}

/* Shared homepage/storefront inventory filter module */
.storefront-page .seller-marketplace-workspace {
    display: grid;
    grid-template-columns: minmax(250px, 292px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.storefront-page .seller-marketplace-workspace .filter-sidebar,
.storefront-page .seller-marketplace-workspace .inventory-panel {
    min-width: 0;
    border: 1px solid var(--flat-border);
    border-radius: 0;
    background: var(--flat-surface);
    box-shadow: none;
}

.storefront-page .seller-marketplace-workspace .filter-sidebar {
    position: sticky;
    top: 18px;
    overflow: hidden;
}

.storefront-page .seller-marketplace-workspace .filter-sidebar-heading,
.storefront-page .seller-marketplace-workspace .inventory-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--flat-border);
}

.storefront-page .seller-marketplace-workspace .filter-sidebar-heading h2,
.storefront-page .seller-marketplace-workspace .inventory-panel-heading h2 {
    margin-top: 4px;
    color: var(--text-heading);
    font-size: 1.35rem;
    line-height: 1.2;
}

.storefront-page .seller-marketplace-workspace .filter-sidebar-kicker,
.storefront-page .seller-marketplace-workspace .inventory-panel-kicker {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.storefront-page .seller-marketplace-workspace .filter-reset {
    min-height: auto;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary);
    font-size: 0.9rem;
}

.storefront-page .seller-marketplace-workspace .filter-reset:hover {
    border-color: transparent;
    background: transparent;
    color: var(--primary-hover);
    text-decoration: underline;
}

.storefront-page .seller-marketplace-workspace .toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--flat-border);
}

.storefront-page .seller-marketplace-workspace .search-label {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.storefront-page .seller-marketplace-workspace .search-wrapper {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.storefront-page .seller-marketplace-workspace .search-icon {
    width: 18px;
    height: 18px;
}

.storefront-page .seller-marketplace-workspace .toolbar input {
    min-height: 44px;
    padding: 9px 12px 9px 40px;
    border-radius: 0;
    background: var(--flat-muted-surface);
    font-size: 0.98rem;
}

.storefront-page .seller-marketplace-workspace .filters-group {
    display: block;
}

.storefront-page .seller-marketplace-workspace .select-wrapper select {
    width: 100%;
    min-height: 44px;
    border-radius: 0;
    background-color: var(--flat-muted-surface);
    font-size: 0.95rem;
}

.storefront-page .seller-marketplace-workspace .advanced-filters {
    border-bottom: 0;
    background: var(--flat-surface);
}

.storefront-page .seller-marketplace-workspace .advanced-filters summary {
    padding: 16px 20px;
    border-bottom: 1px solid var(--flat-border);
    font-size: 0.95rem;
}

.storefront-page .seller-marketplace-workspace .active-filter-count {
    font-size: 0.84rem;
}

.storefront-page .seller-marketplace-workspace .filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 20px 18px;
}

.storefront-page .seller-marketplace-workspace .filter-field {
    gap: 6px;
    font-size: 0.84rem;
}

.storefront-page .seller-marketplace-workspace .filter-field select,
.storefront-page .seller-marketplace-workspace .filter-control {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 0;
    background: var(--flat-muted-surface);
    font-size: 0.9rem;
}

.storefront-page .seller-marketplace-workspace #sellerFilter {
    opacity: 1;
    color: #475569;
    background: #eef2f7;
    cursor: not-allowed;
}

.storefront-page .seller-marketplace-workspace .filter-summary {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.storefront-page .seller-marketplace-workspace .inventory-panel {
    overflow: hidden;
}

.storefront-page .seller-marketplace-workspace .inventory-panel-heading {
    align-items: flex-start;
    padding: 20px 24px;
}

.storefront-page .seller-marketplace-workspace .inventory-panel-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: right;
}

.storefront-page .seller-marketplace-workspace .seller-result-summary {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.storefront-page .seller-marketplace-workspace .seller-domain-grid {
    padding: 18px;
}

.storefront-page .seller-marketplace-workspace .seller-empty-state {
    margin: 18px;
}

@media (max-width: 980px) {
    .storefront-page .seller-marketplace-workspace {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .storefront-page .seller-marketplace-workspace {
        grid-template-columns: 1fr;
    }

    .storefront-page .seller-marketplace-workspace .filter-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .storefront-page .seller-marketplace-workspace .inventory-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .storefront-page .seller-marketplace-workspace .inventory-panel-note {
        text-align: left;
    }
}
