/**
 * Microstock Portfolio Acquisition Platform
 * Modern Black Theme with AdSense Integration
 */

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --accent: #00ff88;
    --accent-hover: #00cc6a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border: #2a2a2a;
    --error: #ff4444;
    --success: #00ff88;
    --warning: #ff9800;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

    --container: 1200px;
    --sidebar-width: 280px;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
   HEADER
   ============================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo:hover {
    color: var(--text-primary);
}

.logo svg,
.logo-img {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

/* Ensure logo doesn't overflow */
.logo img {
    width: auto;
    height: auto;
    max-width: 32px;
    max-height: 32px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-danger {
    background: var(--error);
    color: var(--text-primary);
}

.btn-view {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
}

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

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================================================
   SEARCH FORM
   ============================================================================ */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    transition: border-color 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
}

.search-icon {
    margin-left: 16px;
    color: var(--text-secondary);
}

.search-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-secondary);
}

/* ============================================================================
   LISTINGS SECTION
   ============================================================================ */
.listings-section {
    padding: 40px 0;
}

.listings-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 40px;
}

/* Sidebar */
.listings-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.agency-filters {
    list-style: none;
}

.agency-filters li {
    margin-bottom: 4px;
}

.agency-filters a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.agency-filters a:hover,
.agency-filters a.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
}

.agency-filters .count {
    font-size: 0.85rem;
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 20px;
}

.price-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.chip:hover,
.chip.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* Trust Box */
.trust-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.trust-box h3,
.trust-box h4 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.trust-box ul {
    list-style: none;
}

.trust-box li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.trust-box li:last-child {
    border-bottom: none;
}

.trust-box li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-box li span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-box li strong {
    color: var(--text-primary);
}

.trust-box.compact {
    padding: 16px;
}

.trust-box.compact ul {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trust-box.compact li {
    padding: 6px 0;
    display: block;
}

/* Sidebar Disclaimer */
.sidebar-disclaimer {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sidebar-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.sidebar-disclaimer strong {
    color: #ff9800;
}

/* Sort Bar */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.results-count {
    color: var(--text-secondary);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sort-options select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Listing Card */
.listing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s ease;
}

.listing-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.listing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.agency-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.sold {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.status-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.status-badge.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.listing-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.listing-title a {
    color: var(--text-primary);
}

.listing-title a:hover {
    color: var(--accent);
}

.listing-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.listing-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.listing-stats svg {
    color: var(--accent);
}

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

.price {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* ============================================================================
   LISTING DETAIL PAGE
   ============================================================================ */
.listing-detail {
    padding: 40px 0;
}

.listing-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.listing-header {
    margin-bottom: 30px;
}

.listing-header h1 {
    font-size: 2rem;
    margin: 16px 0 8px;
}

.listing-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.listing-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.stat-card .stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card .stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.listing-description {
    margin-bottom: 30px;
}

.listing-description h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Sidebar */
.listing-detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.price-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 20px;
}

.price-display .currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.price-display .amount {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.price-card .btn-primary,
.price-card .btn-secondary {
    margin-bottom: 10px;
}

.escrow-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.escrow-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.escrow-summary h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row.total span:last-child {
    color: var(--accent);
}

.summary-row.highlight {
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: none;
}

.summary-row.highlight span:last-child {
    color: var(--accent);
}

/* Transfer Options */
.transfer-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 12px;
}

.transfer-option.fast {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.transfer-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.transfer-option.fast .transfer-option-header {
    border-bottom-color: rgba(255, 152, 0, 0.3);
}

.option-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-days {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.option-days.fast-badge {
    background: #ff9800;
    color: #000;
    font-weight: 600;
}

.transfer-option .summary-row {
    padding: 6px 0;
    font-size: 0.85rem;
}

.transfer-option .summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.transfer-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Transfer Speed Selection (Dashboard) */
.transfer-speed-selection {
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.selection-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.speed-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.speed-option {
    cursor: pointer;
}

.speed-option input {
    display: none;
}

.speed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-align: center;
}

.speed-option input:checked + .speed-card {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
}

.speed-option.fast input:checked + .speed-card {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.speed-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.speed-option.fast .speed-name {
    color: #ff9800;
}

.speed-days {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 4px 0;
}

.speed-fee {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.speed-receive {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 6px;
}

.speed-option.fast .speed-receive {
    color: #ff9800;
}

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */
.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    opacity: 0.5;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

/* ============================================================================
   COMMENTS
   ============================================================================ */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.comments-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 12px;
}

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

.login-prompt {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.seller-badge {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.no-comments {
    color: var(--text-secondary);
    text-align: center;
    padding: 30px;
}

/* ============================================================================
   MODALS
   ============================================================================ */
.modal {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow);
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.modal h3 {
    margin-bottom: 8px;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.modal input,
.modal textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 16px;
}

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

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.page-link.current {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.page-ellipsis {
    padding: 10px 8px;
    color: var(--text-secondary);
}

/* ============================================================================
   AUTH PAGES
   ============================================================================ */
.auth-section {
    padding: 80px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 100%;
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================================================
   DASHBOARD
   ============================================================================ */
.dashboard-section {
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin-bottom: 4px;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin: 0;
}

.dashboard-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dashboard-table-wrapper {
    overflow-x: auto;
}

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

.dashboard-table th,
.dashboard-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.dashboard-table th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-table td.price {
    font-family: var(--font-mono);
    color: var(--accent);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.offers-list,
.escrow-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-card,
.escrow-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.offer-header,
.escrow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.offer-header h4,
.escrow-header h4 {
    margin: 0;
}

.offer-details,
.escrow-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.offer-details p,
.escrow-details p {
    margin: 6px 0;
}

.offer-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Escrow Timeline */
.escrow-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--border);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.completed::before {
    background: var(--accent);
}

.step-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
}

.timeline-step.completed .step-marker {
    background: var(--accent);
}

.step-content {
    font-size: 0.8rem;
}

.step-title {
    display: block;
    color: var(--text-secondary);
}

.step-date {
    display: block;
    color: var(--accent);
    font-weight: 500;
}

/* ============================================================================
   FORMS
   ============================================================================ */
.create-listing-section {
    padding: 40px 0;
}

.form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.form-card h1 {
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.listing-form .form-group {
    margin-bottom: 24px;
}

.listing-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.listing-form input,
.listing-form select,
.listing-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

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

.listing-form small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.delete-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* ============================================================================
   ALERTS
   ============================================================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.flash-success {
    background: var(--success);
    color: var(--bg-primary);
}

.flash-error {
    background: var(--error);
    color: var(--text-primary);
}

.flash-warning {
    background: var(--warning);
    color: var(--bg-primary);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
}

.flash-close:hover {
    opacity: 1;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* ============================================================================
   AGENCY HERO (Landing Pages)
   ============================================================================ */
.agency-hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.agency-icon {
    margin-bottom: 24px;
}

.agency-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

/* ============================================================================
   AD BLOCKS
   ============================================================================ */
.ad-block {
    margin: 20px 0;
}

.ad-placeholder {
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    min-height: 90px;
}

.ad-header-leaderboard,
.ad-footer-leaderboard {
    text-align: center;
    padding: 10px 0;
}

.ad-sidebar-rectangle {
    margin-bottom: 20px;
}

.ad-card {
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   ERROR PAGE
   ============================================================================ */
.error-section {
    padding: 100px 20px;
    text-align: center;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.commission-note {
    color: var(--accent) !important;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.75rem !important;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1200px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 992px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }

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

    .listing-detail-layout {
        grid-template-columns: 1fr;
    }

    .listing-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-section h1 {
        font-size: 2rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .listings-sidebar {
        grid-template-columns: 1fr;
    }

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

    .listing-detail-sidebar {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .dashboard-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .auth-card,
    .form-card {
        padding: 24px;
    }

    .price-display .amount {
        font-size: 2.5rem;
    }
}

/* ============================================================================
   REVIEWS SYSTEM
   ============================================================================ */

/* Reviews Page */
.reviews-page {
    padding: 60px 0;
}

.reviews-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-page .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Reviews Stats */
.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-box {
    text-align: center;
}

.stat-box .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-box .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Review Card */
.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.review-card:hover {
    border-color: var(--accent);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-role {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.reviewer-role.buyer {
    background: rgba(0, 128, 255, 0.2);
    color: #4da6ff;
}

.reviewer-role.seller {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent);
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Star Rating Display */
.star-rating {
    display: flex;
    gap: 2px;
}

.star-rating .star {
    width: 20px;
    height: 20px;
}

.star-rating .star.filled {
    fill: #FFD700;
}

/* Review Transaction Info */
.review-transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}

.listing-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transaction-amount {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
}

/* Review Comment */
.review-comment {
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.review-comment p {
    margin: 0;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Review Footer */
.review-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.reviewer-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* User Reviews Page */
.user-reviews-page {
    padding: 60px 0;
}

.user-rating-summary {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.rating-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
}

.average-rating {
    text-align: center;
    padding-right: 40px;
    border-right: 1px solid var(--border);
}

.rating-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.rating-count {
    display: block;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Rating Breakdown */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-label {
    width: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bar-container {
    flex: 1;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #FFD700);
    border-radius: 5px;
    transition: width 0.3s;
}

.bar-count {
    width: 30px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 30px;
}

/* Dashboard Reviews Tab */
.your-rating-summary {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.your-rating-summary h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-text {
    color: var(--text-secondary);
}

/* Pending Reviews */
.pending-reviews-section h3 {
    margin-bottom: 10px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pending-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pending-review-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
}

.pending-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pending-review-header h4 {
    margin: 0;
}

.pending-review-details {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.pending-review-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Review Form */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-form .form-group {
    margin-bottom: 0;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.review-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    resize: vertical;
}

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

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 5px;
}

.star-rating-input .star-label {
    cursor: pointer;
    width: auto;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input .star {
    width: 32px;
    height: 32px;
    transition: all 0.2s;
}

.star-rating-input .star-label:hover .star,
.star-rating-input .star-label:hover ~ .star-label .star {
    fill: #FFD700;
    transform: scale(1.1);
}

.star-rating-input input[type="radio"]:checked ~ .star {
    fill: #FFD700;
}

.star-rating-input .star-label:has(input:checked) .star,
.star-rating-input .star-label:has(input:checked) ~ .star-label .star {
    fill: none;
}

.star-rating-input .star-label:has(input:checked) ~ .star-label .star {
    fill: none !important;
}

.star-rating-input {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating-input .star-label:hover .star {
    fill: #FFD700;
}

.star-rating-input .star-label:hover ~ .star-label .star {
    fill: #FFD700;
}

.star-rating-input input[type="radio"]:checked + .star {
    fill: #FFD700;
}

/* No Pending Reviews */
.no-pending-reviews {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.all-reviews-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* Badge Count */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 6px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .average-rating {
        padding-right: 0;
        padding-bottom: 30px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .review-transaction {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pending-review-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================================
   DISCLAIMER BOX
   ============================================================================ */
.disclaimer-box {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 30px 0;
}

.disclaimer-box h5 {
    color: #ff9800;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-box h5::before {
    content: '!';
    display: inline-flex;
    width: 20px;
    height: 20px;
    background: #ff9800;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 12px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.disclaimer-box p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================================
   USER PROFILE
   ============================================================================ */
.profile-page {
    padding: 60px 0;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
    border: 3px solid var(--accent);
}

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

.profile-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 3rem;
}

.profile-info h1 {
    margin-bottom: 10px;
}

.profile-info .email {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.profile-bio {
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 600px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.profile-stat .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.profile-image-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-image-upload .current-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

.profile-image-upload .upload-btn {
    flex: 1;
}

.profile-image-upload input[type="file"] {
    display: none;
}

.profile-image-upload label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.profile-image-upload label:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================================
   RIGHTS SELECTION
   ============================================================================ */
.rights-selection {
    margin: 20px 0;
}

.rights-option {
    display: block;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.rights-option:hover {
    border-color: var(--accent);
}

.rights-option input[type="radio"] {
    display: none;
}

.rights-option input[type="radio"]:checked + .rights-content {
    color: var(--accent);
}

.rights-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
}

.rights-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.rights-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rights-text h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.rights-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-image-upload {
        flex-direction: column;
    }
}

/* ============================================================================
   AGENCY LANDING PAGES - SELL PAGES
   ============================================================================ */

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.hero-stat .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-subtitle strong {
    color: var(--accent);
}

/* Trust Banner */
.trust-banner {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-item svg {
    flex-shrink: 0;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.process-section h2,
.comparison-section h2,
.pricing-section h2,
.timeline-section h2,
.stats-section h2,
.faq-section h2,
.subscribe-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Process Flowchart */
.process-flowchart {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}

.flowchart-svg {
    width: 100%;
    min-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile Process Cards */
.process-cards {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.process-card .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.process-card .step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.process-card .step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.comparison-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table th.highlight {
    background: rgba(0, 255, 136, 0.1);
    border-bottom: 2px solid var(--accent);
}

.comparison-table td.highlight {
    background: rgba(0, 255, 136, 0.05);
}

.comparison-table .recommended {
    display: block;
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table svg {
    vertical-align: middle;
    margin-right: 8px;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.pricing-table-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.pricing-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table td {
    font-family: var(--font-mono);
    font-size: 1rem;
}

.pricing-table .highlight-cell {
    color: var(--accent);
    font-weight: 600;
}

.pricing-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.03);
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.timeline-wrapper {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}

.timeline-svg {
    width: 100%;
    min-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile Timeline */
.timeline-cards {
    display: none;
    flex-direction: column;
    gap: 0;
}

.timeline-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-card:last-child::before {
    display: none;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Agency Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.stats-table-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stats-table th,
.stats-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.stats-table th {
    color: var(--text-secondary);
    font-weight: 500;
    width: 60%;
}

.stats-table td {
    font-weight: 600;
    color: var(--accent);
    text-align: right;
}

.stats-table tbody tr:last-child th,
.stats-table tbody tr:last-child td {
    border-bottom: none;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Accordion style FAQ (when using JS toggle) */
.faq-item.accordion .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
}

.faq-item.accordion.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* FAQ with details/summary */
details.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

details.faq-item summary {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    list-style: none;
}

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

details.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.02);
}

details.faq-item summary svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

details.faq-item[open] summary svg {
    transform: rotate(180deg);
}

details.faq-item .faq-answer {
    padding: 0;
    max-height: none;
}

details.faq-item .faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
}

/* Subscribe Section */
.subscribe-section {
    padding: 80px 0;
    background: var(--bg-primary);
    text-align: center;
}

.subscribe-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.subscribe-icon {
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.subscribe-form input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
}

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

.subscribe-form button {
    padding: 14px 28px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.subscribe-form button:hover {
    background: var(--accent-hover);
}

.subscribe-note,
.form-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Subscribe Card Variant */
.subscribe-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.subscribe-card h2 {
    margin-bottom: 10px;
}

.subscribe-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.subscribe-card .form-row {
    display: flex;
    gap: 10px;
}

.subscribe-card .form-row input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
}

.subscribe-card .form-row input:focus {
    outline: none;
    border-color: var(--accent);
}

/* CTA Note */
.cta-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* Trust Icons Row */
.trust-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.trust-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.trust-icon-item svg {
    width: 40px;
    height: 40px;
}

.trust-icon-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Fraud Protection Callout */
.fraud-callout {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 30px 0;
    text-align: center;
}

.fraud-callout h4 {
    color: #ff4444;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.fraud-callout p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

/* Button Large */
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Earnings Chart Section */
.earnings-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.earnings-chart {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}

.chart-svg {
    width: 100%;
    min-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.chart-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 20px;
    font-style: italic;
}

/* Escrow Timeline Graphic */
.escrow-timeline-graphic {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}

/* Pricing Cards Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.03);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.pricing-card .price {
    margin-bottom: 15px;
}

.pricing-card .price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    display: block;
}

.pricing-card .price .period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li svg {
    flex-shrink: 0;
}

.pricing-card .calc-label {
    color: var(--text-secondary);
}

.pricing-card .calc-value {
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 600;
}

.pricing-card ul li.total {
    border-top: 2px solid var(--accent);
    margin-top: 10px;
    padding-top: 15px;
}

.pricing-card ul li.total .calc-label,
.pricing-card ul li.total .calc-value {
    color: var(--accent);
    font-weight: 700;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.trust-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

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

.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: border-color 0.2s;
}

.trust-card:hover {
    border-color: var(--accent);
}

.trust-card svg {
    margin-bottom: 20px;
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.trust-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Agency Landing Page Responsive */
@media (max-width: 992px) {
    .hero-stats {
        gap: 20px;
    }

    .hero-stat .stat-value {
        font-size: 1.5rem;
    }

    .trust-items {
        gap: 20px;
    }

    .process-section h2,
    .comparison-section h2,
    .pricing-section h2,
    .timeline-section h2,
    .stats-section h2,
    .faq-section h2,
    .subscribe-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .agency-hero {
        padding: 60px 0;
    }

    .agency-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-large {
        width: 100%;
    }

    .trust-items {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* Show mobile process cards, hide SVG */
    .process-flowchart {
        display: none;
    }

    .process-cards {
        display: flex;
    }

    .process-card {
        flex-direction: column;
        text-align: center;
    }

    /* Show mobile timeline, hide SVG */
    .timeline-wrapper {
        display: none;
    }

    .timeline-cards {
        display: flex;
    }

    .timeline-card {
        text-align: left;
    }

    .trust-icons {
        gap: 15px;
        padding: 20px;
    }

    .trust-icon-item {
        width: calc(50% - 15px);
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form button {
        width: 100%;
    }

    .subscribe-card {
        padding: 30px 20px;
    }

    .subscribe-card .form-row {
        flex-direction: column;
    }

    .subscribe-card .form-row button {
        width: 100%;
    }

    .fraud-callout {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-large {
        width: 100%;
    }

    .comparison-table,
    .pricing-table,
    .stats-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td,
    .pricing-table th,
    .pricing-table td {
        padding: 12px 15px;
    }

    /* Pricing Cards Mobile */
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card.featured {
        order: -1;
    }

    .pricing-card .price .amount {
        font-size: 2.5rem;
    }

    /* Trust Grid Mobile */
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-card {
        padding: 24px;
    }

    /* Earnings Chart Mobile */
    .earnings-chart {
        overflow-x: auto;
    }

    /* Timeline Mobile */
    .escrow-timeline-graphic {
        overflow-x: auto;
    }
}

@media (max-width: 992px) {
    .pricing-cards {
        grid-template-columns: 1fr 1fr;
    }

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

/* ============================================================================
   BUY PAGES - BUYER-FOCUSED LANDING PAGES
   ============================================================================ */

/* Hero Section - Buy Variant */
.hero.hero-buy {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero.hero-buy .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-badge svg {
    stroke: var(--accent);
}

.hero.hero-buy h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Hero Stats for Buy Pages */
.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.hero-stats .stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

/* What You Get Section */
.section {
    padding: 80px 0;
}

.section.what-you-get {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Benefits Grid - 4 columns */
.benefits-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.benefits-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Agency Stats Section */
.section.agency-stats {
    background: var(--bg-primary);
}

.stats-table-wrapper {
    max-width: 900px;
    margin: 40px auto 0;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stats-table th,
.stats-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.stats-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.stats-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stats-table td:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.stats-table td strong {
    color: var(--accent);
}

.stats-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.05);
}

/* Due Diligence Section */
.section.due-diligence {
    background: var(--bg-secondary);
}

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

.checklist-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.checklist-card:hover {
    border-color: var(--accent);
}

.checklist-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 12px;
}

.checklist-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.checklist-card h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.checklist-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.checklist-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checklist-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Pricing Guide Section */
.section.pricing-guide {
    background: var(--bg-primary);
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.section.cta-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.cta-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

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

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buy Pages Responsive */
@media (max-width: 1200px) {
    .benefits-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 992px) {
    .hero.hero-buy .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-illustration {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero.hero-buy {
        padding: 60px 0;
    }

    .hero.hero-buy h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stats .stat .stat-value {
        font-size: 1.25rem;
    }

    .benefits-grid-4,
    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* ============================================================================
   FIXED SIDEBAR WITH DISCLAIMER
   ============================================================================ */

/* Fixed Sidebar */
.fixed-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* Toggle Button */
.sidebar-toggle {
    width: 48px;
    height: 48px;
    background: rgba(255, 193, 7, 0.9);
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle:hover {
    background: #ffc107;
    width: 54px;
}

.sidebar-toggle svg {
    stroke: #0a0a0a;
}

/* Sidebar Content Panel */
.sidebar-content {
    width: 320px;
    max-height: 80vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.fixed-sidebar.open .sidebar-toggle {
    opacity: 0;
    pointer-events: none;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(255, 193, 7, 0.15);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    font-weight: 600;
}

.sidebar-header svg {
    stroke: #ffc107;
    flex-shrink: 0;
}

.sidebar-header span {
    flex: 1;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

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

/* Sidebar Body */
.sidebar-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.sidebar-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Trust Compact */
.sidebar-trust-compact h5 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.sidebar-trust-compact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-trust-compact li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sidebar-trust-compact .check {
    color: var(--accent);
    font-weight: bold;
}

/* Sidebar Contact */
.sidebar-contact {
    text-align: center;
}

.sidebar-contact p {
    margin-bottom: 12px !important;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
    display: inline-block;
}

/* Sidebar Responsive */
@media (max-width: 768px) {
    .fixed-sidebar {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
    }

    .sidebar-toggle {
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar-content {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 360px;
        max-height: 60vh;
        border-radius: 12px;
        border: 1px solid var(--border);
        transform: translateY(20px);
        opacity: 0;
        pointer-events: none;
    }

    .fixed-sidebar.open .sidebar-content {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .fixed-sidebar.open .sidebar-toggle {
        opacity: 1;
        pointer-events: auto;
        background: var(--accent);
    }

    .fixed-sidebar.open .sidebar-toggle svg {
        stroke: var(--bg-primary);
    }
}

/* ============================================================================
   PORTFOLIO SHOWCASE
   ============================================================================ */

.portfolios-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolios-page .page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.portfolios-page .page-header p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.portfolios-page .page-header .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filters-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filters-form select {
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 150px;
    cursor: pointer;
}

.filters-form select:hover {
    border-color: var(--accent);
}

.portfolios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.portfolio-cover {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

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

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.agency-tag {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.agency-tag.large {
    padding: 5px 12px;
    font-size: 0.85rem;
}

.portfolio-author {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.portfolio-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.portfolio-stats .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
}

/* Portfolio Detail Page */
.portfolio-detail {
    padding: 40px 0;
}

.portfolio-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.portfolio-title-section {
    flex: 1;
}

.portfolio-title-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.portfolio-owner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    overflow: hidden;
}

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

.owner-info {
    display: flex;
    flex-direction: column;
}

.owner-info a {
    color: var(--text-primary);
    font-weight: 500;
}

.portfolio-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Portfolio Gallery */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Portfolio Content Layout */
.portfolio-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.portfolio-main .content-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
}

.portfolio-main .content-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-count {
    color: var(--text-secondary);
    font-weight: normal;
    font-size: 0.9rem;
}

.description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.niche-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.niche-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Tips Section */
.tip-form {
    margin-bottom: 25px;
}

.tip-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 10px;
}

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

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
}

.tip-item.helpful {
    border-color: var(--accent);
}

.tip-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.tip-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: normal;
}

.helpful-badge {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tip-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.login-prompt {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

.login-prompt a {
    color: var(--accent);
}

.no-tips {
    color: var(--text-secondary);
    text-align: center;
    padding: 30px;
}

/* Portfolio Sidebar */
.portfolio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card, .rating-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.stats-card h3, .rating-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Star Rating */
.current-rating {
    text-align: center;
    margin-bottom: 20px;
}

.stars-display {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating label svg {
    fill: none;
}

.star-rating label:hover svg,
.star-rating label:hover ~ label svg,
.star-rating input:checked ~ label svg {
    fill: var(--accent);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Create/Edit Portfolio */
.create-portfolio-page, .edit-portfolio-page {
    padding: 40px 0;
}

.page-intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro-icon {
    margin-bottom: 20px;
}

.page-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.portfolio-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-section h2 svg {
    color: var(--accent);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.required {
    color: var(--accent);
}

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

.stat-input label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stat-input label svg {
    color: var(--accent);
}

.input-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-prefix input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    flex: 1;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.portfolio-form .form-actions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Image Upload */
.image-upload-form {
    margin-bottom: 30px;
}

.upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

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

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-area label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    cursor: pointer;
}

.upload-area label svg {
    color: var(--accent);
}

.upload-area label span {
    font-weight: 500;
    color: var(--text-primary);
}

.upload-area label small {
    font-size: 0.8rem;
}

.existing-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #ff0000;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 20px;
    color: var(--border);
}

.empty-state h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .portfolio-content {
        grid-template-columns: 1fr;
    }

    .portfolio-sidebar {
        order: -1;
    }

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

@media (max-width: 600px) {
    .portfolios-page .page-header h1 {
        font-size: 1.8rem;
    }

    .portfolio-title-section h1 {
        font-size: 1.5rem;
    }

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

    .portfolio-header {
        flex-direction: column;
    }
}
