/* Mobile-First CSS - Clean & Modern */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #e5e7eb;
    font-size: 16px;
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: 720px;
    padding: 0 16px;
    margin: 0 auto;
}

#listings .container {
    margin: 0;
}

/* Full width containers for header, hero, footer, listings */
.site-header .container,
.hero .container,
.site-footer .container {
    max-width: 100%;
}

.listings-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Header - Mobile First */
/* Announcement Bar */
.announcement-bar {
    background: #2d3748;
    color: #cbd5e0;
    font-size: 13px;
    text-align: center;
    padding: 8px 16px;
    line-height: 1.4;
}

.announcement-bar a {
    color: #90cdf4;
    font-weight: 600;
    text-decoration: none;
}

.announcement-bar a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-header {
    background: #4a5568;
    color: white;
    padding: 20px 0;
}

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

.site-header h1 {
    font-size: 22px;
    font-weight: 600;
}

.site-header h1 a {
    color: white;
    text-decoration: none;
}

.site-header h1 a:hover {
    color: white;
    opacity: 0.9;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #4a5568;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
}

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

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    display: block;
    text-align: center;
}

.main-nav .nav-contact,
.main-nav .nav-post {
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-nav .nav-contact {
    background: rgba(255,255,255,0.2);
}

.main-nav .nav-contact:hover {
    background: rgba(255,255,255,0.3);
}

.main-nav .nav-post {
    background: #16a34a;
}

.main-nav .nav-post:hover {
    background: #15803d;
}

/* Hero Section - Split Layout Style */
.hero {
    background: #f8f9fa;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.hero .container {
    max-width: 100%;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero-split {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-content {
    flex: 1;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f9fa;
}

.hero-image {
    flex: 1;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a202c;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #4a5568;
    max-width: 500px;
}

.hero-cta {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn.btn-hero {
    background: #5a67d8;
    color: white;
    font-weight: 600;
    padding: 16px 40px;
    display: block;
    font-size: 16px;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn.btn-hero:hover {
    background: #4c51bf;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 103, 216, 0.3);
}

.btn.btn-hero-secondary {
    background: #c2410c;
    color: white;
    font-weight: 600;
    padding: 16px 40px;
    display: block;
    font-size: 16px;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn.btn-hero-secondary:hover {
    background: #9a3412;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.3);
}

/* Footer */
.site-footer {
    background: #2d3748;
    color: #e2e8f0;
    text-align: center;
    padding: 32px 16px;
    margin-top: 64px;
    font-size: 14px;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.5);
    text-underline-offset: 2px;
}

.site-footer a:hover {
    text-decoration-color: #fff;
}

/* Back Link */
.back-link {
    color: inherit;
    text-decoration: none;
}

.back-link:hover {
    color: #2d3748;
    text-decoration: underline;
}

/* Buttons - Mobile First */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    line-height: 1.4;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

button.btn,
a.btn,
input.btn {
    min-height: 44px;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #5a67d8;
    color: white;
}

.btn-primary:hover {
    background: #4c51bf;
}

.btn-primary:active {
    background: #4c51bf;
}

.btn-cta {
    background: #16a34a;
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 6px;
    animation: ctaPulse 2s ease-in-out 1s 3;
}

.btn-cta:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-cta:active {
    background: #15803d;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
    50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.15); }
}

.btn-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-message svg {
    flex-shrink: 0;
}

.btn-secondary {
    background: #cbd5e0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #a0aec0;
}

.btn-secondary:active {
    background: #a0aec0;
}

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

.btn-row {
    display: flex;
    gap: 10px;
}

.btn-row .btn {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 0;
    font-size: 14px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid #3182ce;
}

.alert-warning {
    background: #fefcbf;
    color: #744210;
    border-left: 4px solid #d69e2e;
}

/* Empty State CTA */
.empty-state-cta {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-cta h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.empty-state-cta p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 32px;
}

.empty-state-cta .btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 16px;
}

/* Results Info */
.results-info {
    margin-bottom: 32px;
    margin-top: 32px;
    color: #4a5568;
    font-size: 16px;
    padding: 0 4px;
    font-weight: 700;
}

.results-info a,
.results-info a:visited,
.results-info a:hover,
.results-info a:active {
    color: #4a5568 !important;
    text-decoration: none !important;
}

/* Listings with Sidebar Layout */
.listings-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 100%;
}

.listings-main {
    flex: 1;
    width: 100%;
}

.listings-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 15px;
}

/* Sidebar Text Ads (Google-style) */
.sidebar-text-ad {
    display: block;
    background: white;
    padding: 16px 18px;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s;
}

.sidebar-text-ad:first-child {
    border-top: 1px solid #e5e7eb;
}

.sidebar-text-ad:hover {
    background: #f8f9fa;
}

.ad-title {
    display: block;
    color: #1a0dab;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}

.ad-desc {
    display: block;
    color: #4d5156;
    font-size: 14px;
    line-height: 1.5;
}

/* Listings - Full Width Two Column Layout */
.listings-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    width: 100%;
}

.listing-card {
    width: 100%;
    padding: 30px 0;
    transition: all 0.2s;
}

.listing-card:nth-child(odd) {
    background: #ffffff;
}

.listing-card:nth-child(even) {
    background: #f0f1f3;
}

.listing-two-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
}

/* Column Image Section */
.column-image {
    width: 100%;
    flex: 0 0 auto;
}

.listing-image-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listing-main-image {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 8px;
}

.listing-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.listing-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.listing-thumbnail {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    background: white;
}

.listing-thumbnail:hover,
.listing-thumbnail.active {
    border-color: #3498db;
}

.listing-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-image-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 600;
}

/* Column Content Section */
.column-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.listing-content {
    padding: 0;
}

.listing-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a202c;
    font-weight: 700;
    line-height: 1.3;
}

.listing-sku {
    color: #4c51bf;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-copy-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #3730a3;
    background: #e0e7ff;
    border: 1px solid #a5b4fc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
}

.btn-copy-link:hover {
    background: #c7d2fe;
    border-color: #818cf8;
}

.btn-copy-link.copied {
    color: #059669;
    background: #d1fae5;
    border-color: #6ee7b7;
}

.btn-copy-link .copy-icon {
    font-size: 12px;
}

.btn-copy-link .copy-text {
    font-size: 11px;
}

.listing-details {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.listing-description {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
    white-space: pre-wrap;
}

.listing-content .btn {
    margin-top: 8px;
    align-self: flex-start;
}

/* Modal - Mobile First */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.2s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: white;
    border-radius: 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-body {
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Pagination - Mobile First */
.pagination {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
    padding: 0 20px;
    align-items: flex-start;
}

.pagination .btn {
    width: 100%;
}

.page-info {
    text-align: center;
    color: #4a5568;
    padding: 8px 0;
    font-weight: 600;
}

/* Forms - Mobile First */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #a0aec0;
    box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.1);
}

.verification-step {
    animation: fadeIn 0.3s ease-in-out;
}

/* Privacy/Shipping Pages */
.page-content {
    background: white;
    padding: 40px 20px;
    max-width: 800px;
    margin: 40px auto;
}

.page-content h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #1a202c;
}

.page-content h2 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: #2d3748;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Desktop Styles - Min-width Media Queries */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }

    .site-header h1 {
        font-size: 28px;
    }

    /* Desktop Navigation */
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
        gap: 8px;
        border-top: none;
        background: transparent;
    }

    .main-nav .nav-contact,
    .main-nav .nav-post {
        width: auto;
    }

    .btn {
        width: auto;
    }

    .listing-content .btn {
        width: auto;
    }

    /* Listings - Desktop Two Column Layout */
    .listing-two-column {
        flex-direction: row;
        gap: 80px;
        align-items: center;
        padding: 0 60px;
    }

    .column-image {
        width: 45%;
        flex: 0 0 45%;
    }

    .column-content {
        flex: 1;
    }

    .listing-main-image {
        max-height: 450px;
    }

    .listing-content h3 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .listing-description {
        font-size: 15px;
        line-height: 1.8;
    }

    /* Hero Section - Desktop Split Layout */
    .hero-split {
        flex-direction: row;
    }

    .hero-content {
        padding: 80px 60px;
        max-width: 50%;
    }

    .hero-image {
        max-width: 50%;
    }

    .hero-title {
        font-size: 48px;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 20px;
        max-width: 600px;
    }

    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn.btn-hero,
    .btn.btn-hero-secondary {
        padding: 18px 50px;
        font-size: 18px;
        width: auto;
        display: inline-block;
    }

    .pagination {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
    }

    .pagination .btn {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 820px;
    }

    /* Full width containers for header, hero, footer on desktop */
    .site-header .container,
    .site-footer .container {
        max-width: 100%;
        padding: 0 32px;
    }

    .hero .container {
        max-width: 100%;
        padding: 0;
    }

    /* Sidebar Layout on Desktop */
    .listings-with-sidebar {
        flex-direction: row;
        gap: 40px;
        padding: 0 32px;
        align-items: flex-start;
    }

    .listings-main {
        flex: 1;
        min-width: 0;
    }

    .listings-sidebar {
        width: 320px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
        padding: 0;
    }
}

/* ==========================================================================
   POST AD FORM (.pa namespace)
   ========================================================================== */

.pa {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.pa-header {
    margin-bottom: 16px;
}

.pa-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.pa-header p {
    color: #718096;
    font-size: 14px;
}

.pa-intro {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #92400e;
}
.pa-intro p { margin: 0 0 5px 0; }

/* Single form card */
.pa-card {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.pa-card + .pa-card {
    border-top: none;
}

.pa-section {
    padding: 16px;
}

.pa-section + .pa-section {
    border-top: 1px solid #edf2f7;
}

/* Step indicator bar */
.pa-steps {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.pa-steps-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #a0aec0;
    white-space: nowrap;
}

.pa-steps-item.active {
    color: #1a202c;
}

.pa-steps-item.done {
    color: #16a34a;
}

.pa-steps-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: #a0aebf;
    color: #fff;
    flex-shrink: 0;
}

.pa-steps-item.active .pa-steps-num {
    background: #5a67d8;
    color: #fff;
}

.pa-steps-item.done .pa-steps-num {
    background: #16a34a;
    color: #fff;
}

.pa-steps-line {
    flex: 1;
    height: 2px;
    background: #a0aebf;
    margin: 0 8px;
    min-width: 20px;
}

.pa-steps-line.done {
    background: #16a34a;
}

/* Step headers */
.pa-step-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.pa-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #5a67d8;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
}

.pa-step-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
}

.pa-step-desc {
    font-size: 13px;
    color: #718096;
    margin-top: 2px;
}

/* Continue / action buttons */
.pa-btn-continue {
    width: 100%;
    padding: 11px 24px;
    background: #5a67d8;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.pa-btn-continue:hover { background: #4c51bf; }
.pa-btn-continue:disabled { opacity: 0.5; cursor: not-allowed; }

.pa-step-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.pa-step-actions .pa-btn-continue {
    margin-top: 0;
    width: auto;
    flex: 1;
}

.pa-btn-link {
    background: none;
    border: none;
    color: #718096;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.pa-btn-link:hover { color: #4a5568; }

.pa-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0aec0;
    margin-bottom: 12px;
}

/* Fields */
.pa-field {
    margin-bottom: 14px;
}

.pa-field:last-child {
    margin-bottom: 0;
}

.pa-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.pa-field input[type="text"],
.pa-field input[type="email"],
.pa-field input[type="tel"],
.pa-field input[type="number"],
.pa-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: #1a202c;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.pa-field input:focus,
.pa-field textarea:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 2px rgba(90, 103, 216, 0.1);
}

.pa-field input[readonly] {
    background: #f7fafc;
    color: #4a5568;
}

.pa-field textarea {
    resize: vertical;
    min-height: 80px;
}

.pa-req { color: #e53e3e; }
.pa-opt { color: #a0aec0; font-weight: 400; font-size: 12px; }

.pa-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #a0aec0;
}

/* Two-column row */
.pa-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pa-row > .pa-field { flex: 1; }

/* Price toggle */
.pa-price-toggle {
    display: inline-flex;
}

.pa-toggle-opt {
    cursor: pointer;
    margin: 0;
}

.pa-toggle-opt input { display: none; }

.pa-toggle-opt span {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    background: #fff;
    border: 1px solid #d1d5db;
    margin-right: -1px;
    transition: background 0.15s, color 0.15s;
}

.pa-toggle-opt input:checked + span {
    background: #5a67d8;
    color: #fff;
    border-color: #5a67d8;
    position: relative;
    z-index: 1;
}

/* Price input with $ prefix */
.pa-price-wrap {
    display: flex;
    max-width: 180px;
}

.pa-price-symbol {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f7fafc;
    border: 1px solid #d1d5db;
    border-right: none;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.pa-price-wrap input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    font-family: inherit;
    color: #1a202c;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.pa-price-wrap input:focus {
    outline: none;
    border-color: #4a5568;
    box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.06);
}

.pa-price-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.pa-select {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: #1a202c;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.pa-select:focus {
    outline: none;
    border-color: #4a5568;
    box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.06);
}

.pa-qty { max-width: 100px; }

/* Email verification */
.pa-email-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.pa-email-row input { flex: 1; }

.pa-btn-verify {
    padding: 9px 16px;
    background: #5a67d8;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.pa-btn-verify:hover { background: #4c51bf; }
.pa-btn-verify:disabled { opacity: 0.5; cursor: not-allowed; }

.pa-otp-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: stretch;
}

.pa-otp {
    width: 120px;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    font-family: inherit;
    letter-spacing: 3px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.pa-otp:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 2px rgba(90, 103, 216, 0.1);
}

.pa-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pa-badge-ok {
    background: #dcfce7;
    color: #166534;
}

.pa-inline-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
}

/* Image upload */
.pa-upload {
    border: 2px dashed #d1d5db;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fafafa;
}

.pa-upload:hover,
.pa-upload.dragover {
    border-color: #5a67d8;
    background: #f1f5f9;
}

.pa-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pa-upload-icon { color: #a0aec0; }

.pa-upload-inner p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.pa-upload-inner small {
    color: #a0aec0;
    font-size: 12px;
}

.pa-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pa-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.pa-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pa-thumb-rm {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.pa-thumb-rm:hover { background: rgba(0,0,0,0.85); }

/* Submit */
.pa-submit {
    margin-top: 12px;
    text-align: center;
}

.pa-btn-submit {
    width: 100%;
    padding: 12px 32px;
    background: #16a34a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.pa-btn-submit:hover { background: #15803d; }
.pa-btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.pa-submit-section {
    border-top: none;
}

.pa-submit .pa-hint {
    margin-top: 6px;
    text-align: center;
}

/* Success */
.pa-success {
    text-align: center;
    padding: 40px 20px;
}

.pa-success-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    margin: 0 auto 16px;
}

.pa-success h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.pa-success p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.pa-success-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Desktop */
@media (min-width: 640px) {
    .pa { padding: 28px 24px 48px; }
    .pa-section { padding: 20px 24px; }
    .pa-row { flex-direction: row; gap: 16px; }
    .pa-btn-submit { max-width: 320px; margin: 0 auto; display: block; }
}
