/* ============================================================
   SUPPLIER DASHBOARD STYLES
   ============================================================ */

/* Layout */
body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.dashboard-sidebar {
    width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-item:hover {
    background: var(--bg);
    color: var(--text);
}

.sidebar-nav .nav-item.active {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar-nav .nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.sidebar-lang-selector {
    padding: 0.5rem 0 1rem;
}

.sidebar-lang-selector .lang-selector {
    justify-content: center;
    flex-wrap: wrap;
}

.sidebar-lang-selector .lang-selector-btn {
    background: none;
    border: none;
    padding: 0.375rem 0.5rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-3);
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius);
}

.sidebar-lang-selector .lang-selector-btn:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.sidebar-lang-selector .lang-selector-btn.active {
    color: var(--accent);
    background: var(--accent-light);
    font-weight: 600;
}

.sidebar-lang-selector .lang-divider {
    color: var(--border);
    font-size: 0.75rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: none;
    border: none;
    color: var(--text-2);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition);
}

.logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
}

.menu-toggle:hover {
    background: var(--bg);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-2);
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.user-menu {
    font-size: 0.875rem;
    color: var(--text-2);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg);
}

.dashboard-view {
    display: none;
    animation: fadeIn 0.3s;
}

.dashboard-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading State */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-2);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.stat-icon.green {
    background: #f0fdf4;
    color: #22c55e;
}

.stat-icon.purple {
    background: #faf5ff;
    color: #a855f7;
}

.stat-icon.orange {
    background: #fff7ed;
    color: #f97316;
}

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

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-2);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-change {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: #dc2626;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.card-header a {
    font-size: 0.8125rem;
    color: var(--accent);
    text-decoration: none;
}

.card-header a:hover {
    text-decoration: underline;
}

.card-content {
    padding: 1rem 1.25rem;
}

.empty-message {
    color: var(--text-3);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem 0;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.quick-action:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.quick-action svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Recent Inquiries List */
.inquiry-list {
    display: flex;
    flex-direction: column;
}

/* Overview Inquiry Items */
.inquiry-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

.inquiry-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.inquiry-item:first-child {
    padding-top: 0;
}

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

.inquiry-product {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.inquiry-message {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.4;
}

.inquiry-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
    flex-shrink: 0;
}

.inquiry-date {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* Full Inquiries List */
.inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inquiry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.inquiry-product-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.inquiry-meta-info {
    font-size: 0.8125rem;
    color: var(--text-2);
}

.inquiry-body {
    margin-bottom: 1rem;
}

.inquiry-body p {
    color: var(--text-2);
    line-height: 1.6;
}

.inquiry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.inquiry-time {
    font-size: 0.8125rem;
    color: var(--text-3);
}

.inquiry-actions {
    display: flex;
    gap: 0.5rem;
}

/* Status Badges */
.status-badge,
.inquiry-status {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.pending,
.inquiry-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.replied,
.inquiry-status.replied {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.closed,
.inquiry-status.closed {
    background: var(--bg);
    color: var(--text-3);
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.draft {
    background: var(--bg);
    color: var(--text-2);
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Products Table */
.products-table-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.products-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.products-table tr:last-child td {
    border-bottom: none;
}

.products-table tr:hover {
    background: var(--bg);
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-weight: 500;
}

.product-category {
    font-size: 0.8125rem;
    color: var(--text-2);
}

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.draft {
    background: var(--bg);
    color: var(--text-2);
}

.table-actions,
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.table-actions button,
.action-btn {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-2);
}

.table-actions button:hover,
.action-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.action-btn:hover svg {
    color: var(--accent);
}

.table-actions button.delete:hover,
.action-btn.danger:hover {
    border-color: #dc2626;
    background: #fee2e2;
}

.action-btn.danger:hover svg {
    color: #dc2626;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--text-3);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--accent);
    color: white;
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--text-2);
    background: var(--bg);
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.9375rem;
    transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-2);
    margin-top: 0.375rem;
}

.form-hint-inline {
    font-size: 0.75rem;
    color: var(--text-3);
    font-weight: 400;
}

/* Category Selector (Multi-select) */
.category-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.category-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.875rem;
}

.category-option:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.category-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 500;
}

.category-option:has(input:disabled):not(:has(input:checked)) {
    opacity: 0.5;
    cursor: not-allowed;
}

.category-option:has(input:disabled):not(:has(input:checked)):hover {
    border-color: var(--border);
    background: var(--bg);
}

.category-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.category-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .category-selector {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Profile Form */
.profile-form {
    max-width: 600px;
}

.logo-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.logo-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-preview svg {
    width: 32px;
    height: 32px;
    color: var(--text-3);
}

.cover-upload {
    margin-bottom: 1.25rem;
}

.cover-preview {
    width: 100%;
    height: 120px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-preview svg {
    width: 32px;
    height: 32px;
    color: var(--text-3);
}

/* Settings */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.settings-desc {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 1rem;
}

/* Product Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.open,
.modal-overlay.active {
    display: flex;
}

.product-modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Image Upload Grid */
.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.image-upload-slot {
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    position: relative;
    background: var(--bg);
}

.image-upload-slot:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.image-upload-slot.filled {
    border-style: solid;
    border-color: var(--border);
}

.image-upload-slot.filled:hover {
    background: transparent;
}

.image-upload-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-slot svg {
    width: 24px;
    height: 24px;
    color: var(--text-3);
}

.image-upload-slot span {
    font-size: 0.75rem;
    color: var(--text-3);
}

.remove-image-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.image-upload-slot:hover .remove-image-btn {
    opacity: 1;
}

.remove-image-btn svg {
    width: 14px;
    height: 14px;
    color: white;
}

.remove-image-btn:hover {
    background: rgba(220, 38, 38, 0.8);
}

/* Logo & Cover Upload */
.logo-upload-area {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    background: var(--bg);
}

.logo-upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.logo-upload-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-upload-area svg {
    width: 32px;
    height: 32px;
    color: var(--text-3);
}

.logo-upload-area span {
    font-size: 0.75rem;
    color: var(--text-3);
    text-align: center;
    padding: 0 0.5rem;
}

.cover-upload-area {
    width: 100%;
    height: 150px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    background: var(--bg);
}

.cover-upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.cover-upload-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-upload-area svg {
    width: 32px;
    height: 32px;
    color: var(--text-3);
}

.cover-upload-area span {
    font-size: 0.75rem;
    color: var(--text-3);
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text);
}

.btn-small:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.btn-small.secondary {
    background: transparent;
}

.btn-small.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-small.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

/* Legacy Image Upload */
.images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.image-slot {
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    position: relative;
}

.image-slot:hover {
    border-color: var(--accent);
}

.image-slot.filled {
    border-style: solid;
}

.image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-slot svg {
    width: 24px;
    height: 24px;
    color: var(--text-3);
}

.image-slot .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-slot:hover .remove-image {
    display: flex;
}

.image-slot .remove-image svg {
    width: 12px;
    height: 12px;
    color: white;
}

/* Inquiries View */
.inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inquiry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.inquiry-card.unread {
    border-left: 3px solid var(--accent);
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.inquiry-meta h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.inquiry-meta p {
    font-size: 0.8125rem;
    color: var(--text-2);
}

.inquiry-message {
    color: var(--text-2);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.inquiry-actions {
    display: flex;
    gap: 0.5rem;
}

/* Onboarding */
.onboarding-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    text-align: center;
    padding: 2rem;
}

.onboarding-screen svg {
    width: 80px;
    height: 80px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.onboarding-screen h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.onboarding-screen p {
    color: var(--text-2);
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

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

    .overview-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    body.sidebar-open {
        overflow: hidden;
    }

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

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .products-table-container {
        overflow-x: auto;
    }

    .products-table {
        min-width: 600px;
    }

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

    .inquiry-header {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 1rem;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .header-link {
        display: none;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .product-modal {
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ============================================================
   SETTINGS SECTION
   ============================================================ */

.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.settings-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.settings-card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.settings-card-body {
    padding: 1.5rem;
}

.settings-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.settings-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.settings-checkbox span {
    font-size: 0.9375rem;
    color: var(--text);
}

/* Danger Zone */
.settings-card.danger-zone {
    border-color: #ef4444;
}

.settings-card.danger-zone .settings-card-header {
    background: #fef2f2;
    border-bottom-color: #fecaca;
}

.settings-card.danger-zone .settings-card-header h3 {
    color: #dc2626;
}

.danger-zone-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.danger-zone-content:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.danger-zone-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.danger-zone-content p {
    font-size: 0.875rem;
    color: var(--text-2);
    margin: 0;
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-container {
        max-width: 100%;
    }

    .danger-zone-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .danger-zone-content button {
        width: 100%;
    }
}

/* ============================================================
   FEATURED LISTING STYLES
   ============================================================ */

/* Featured Status in Products Table */
.featured-status {
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.featured-status.featured {
    color: var(--success);
    font-weight: 500;
}

.featured-status.featured svg {
    color: #fbbf24;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.featured-status .featured-days {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #065f46;
}

.featured-status.pending {
    color: #f59e0b;
}

.btn-tiny {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 0.25rem;
}

.btn-tiny:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

/* Featured Modal */
.featured-modal {
    max-width: 520px;
}

.featured-product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.25rem 0;
}

.featured-category {
    font-size: 0.875rem;
    color: var(--text-2);
    margin: 0 0 1.5rem 0;
}

/* Duration Selector */
.duration-selector {
    margin-bottom: 1.5rem;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.duration-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    min-height: 90px;
    position: relative;
}

.duration-btn:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-light);
}

.duration-btn.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.duration-btn.recommended {
    border-color: #fbbf24;
}

.duration-btn.recommended::before {
    content: 'Best Value';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.duration-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.duration-label {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 0.25rem;
}

.duration-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.duration-discount {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 100px;
    margin-top: 0.375rem;
}

/* Supplier Limits */
.supplier-limits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 1.5rem;
}

.supplier-limits svg {
    color: var(--text-3);
    flex-shrink: 0;
}

/* Payment Section */
.payment-section {
    margin-bottom: 1.5rem;
}

.payment-section .form-label {
    margin-bottom: 0.75rem;
}

#stripe-payment-element {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.payment-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.payment-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.payment-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

/* Terms Note */
.terms-note {
    font-size: 0.75rem;
    color: var(--text-3);
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Error text */
.error-text {
    color: #dc2626;
    font-size: 0.875rem;
}

.loading-text {
    color: var(--text-3);
    font-style: italic;
}

/* Responsive */
@media (max-width: 480px) {
    .duration-options {
        grid-template-columns: 1fr 1fr;
    }

    .duration-btn {
        padding: 0.75rem;
        min-height: 80px;
    }

    .duration-price {
        font-size: 1.125rem;
    }
}

/* ============================================================
   FEATURED LISTINGS SECTION (Dashboard Overview)
   ============================================================ */

.featured-listings-section {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.section-header-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header-small h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.section-header-small h3 svg {
    color: #f59e0b;
}

.featured-count {
    font-size: 0.8125rem;
    color: var(--text-2);
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.featured-listings-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-listing-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: border-color var(--transition);
}

.featured-listing-card:hover {
    border-color: var(--border);
}

.featured-listing-card.expiring-soon {
    background: #fffbeb;
    border-color: #fde68a;
}

.featured-listing-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    flex-shrink: 0;
}

.featured-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-listing-thumb .no-thumb {
    width: 100%;
    height: 100%;
    background: var(--border);
}

.featured-listing-info {
    flex: 1;
    min-width: 0;
}

.featured-listing-title {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-listing-category {
    font-size: 0.8125rem;
    color: var(--text-2);
}

.featured-listing-expiry {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-2);
    margin-top: 0.25rem;
}

.featured-listing-expiry.warning {
    color: #f59e0b;
    font-weight: 500;
}

.featured-listing-expiry svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .featured-listing-card {
        flex-wrap: wrap;
    }

    .featured-listing-info {
        flex: 1 1 calc(100% - 64px);
    }

    .featured-listing-card .btn-small {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   NOTIFICATION SYSTEM
   ============================================================ */

.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: notificationSlideIn 0.3s ease;
}

.notification-exit {
    animation: notificationSlideOut 0.3s ease forwards;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes notificationSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.notification-icon svg {
    width: 100%;
    height: 100%;
}

.notification-content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-3);
    transition: color var(--transition);
}

.notification-close:hover {
    color: var(--text);
}

.notification-close svg {
    width: 100%;
    height: 100%;
}

/* Notification types */
.notification-success {
    border-color: #86efac;
    background: #f0fdf4;
}

.notification-success .notification-icon {
    color: #16a34a;
}

.notification-error {
    border-color: #fecaca;
    background: #fef2f2;
}

.notification-error .notification-icon {
    color: #dc2626;
}

.notification-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.notification-warning .notification-icon {
    color: #f59e0b;
}

.notification-info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.notification-info .notification-icon {
    color: #3b82f6;
}

@media (max-width: 480px) {
    .notification-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}
