/* ==========================================================================
   movingsale.ie — Brand Stylesheet
   Colors: Orange (hsl 30, 90%, 52%) + Black (hsl 0, 0%, 5%)
   ========================================================================== */

:root {
    --color-orange: hsl(30, 90%, 52%);
    --color-orange-dark: hsl(30, 90%, 42%);
    --color-orange-light: hsl(30, 90%, 95%);
    --color-black: hsl(0, 0%, 5%);
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-400: #a3a3a3;
    --color-gray-600: #525252;
    --color-gray-800: #262626;
    --color-success: #16a34a;
    --color-error: #dc2626;
    --color-info: #2563eb;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Courier New", Courier, monospace;

    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-orange);
    text-decoration: none;
}

a:hover {
    color: var(--color-orange-dark);
    text-decoration: underline;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: var(--color-black);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    width: 200px;
    height: 80px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-orange);
    text-decoration: none;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-black);
    color: var(--color-gray-400);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-gray-400);
}

.footer-links a:hover {
    color: var(--color-orange);
}

.footer-copy {
    font-size: 0.875rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s;
}

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

.btn-primary:hover {
    background: var(--color-orange-dark);
    border-color: var(--color-orange-dark);
    text-decoration: none;
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    color: var(--color-orange);
    border-color: var(--color-orange);
}

.btn-secondary:hover {
    background: var(--color-orange-light);
    text-decoration: none;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

.events-grid, .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.event-card, .item-card {
    display: block;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--color-black);
}

.event-card:hover, .item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.event-card-image, .item-card-image {
    height: 180px;
    overflow: hidden;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.event-card-placeholder, .item-card-placeholder {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.event-card-body, .item-card-body {
    padding: 1rem;
}

.event-card-body h3, .item-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.item-price, .item-price-large {
    color: var(--color-orange);
    font-weight: 700;
}

.item-price-large {
    font-size: 1.75rem;
    margin: 0.5rem 0;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background: var(--color-success);
    color: var(--color-white);
}

.badge-sold {
    background: var(--color-gray-600);
    color: var(--color-white);
}

.badge-expired {
    background: var(--color-error);
    color: var(--color-white);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 2px var(--color-orange-light);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input {
    width: auto;
}

.form-checkbox label {
    font-weight: 400;
    margin-bottom: 0;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--color-error);
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--color-success);
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--color-info);
}

/* ==========================================================================
   Auth & Static Pages
   ========================================================================== */

.auth-page, .profile-page {
    max-width: 600px;
    margin: 0 auto;
}

.auth-page h1, .profile-page h1 {
    margin-bottom: 1.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color-gray-600);
}

.static-page {
    max-width: 800px;
    margin: 0 auto;
}

.static-page h1 {
    margin-bottom: 1rem;
}

.static-page h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   How It Works — Steps
   ========================================================================== */

.steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-gray-100);
    border-radius: var(--radius);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--color-orange);
    color: var(--color-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.step h2 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Item Detail
   ========================================================================== */

.item-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.item-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-main {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-photo-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb-active {
    border-color: var(--color-orange);
    opacity: 1;
}

.gallery-placeholder {
    width: 100%;
    height: 300px;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--color-gray-400);
}

.item-photo {
    width: 100%;
    border-radius: var(--radius);
}

.item-info h1 {
    margin-bottom: 0.5rem;
}

.item-meta {
    margin: 1.5rem 0;
}

.item-meta p {
    margin-bottom: 0.5rem;
}

.item-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-form {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius);
}

.status-banner {
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
}

.status-sold {
    background: var(--color-gray-200);
    color: var(--color-gray-600);
}

.status-expired {
    background: #fef2f2;
    color: var(--color-error);
}

.auth-prompt {
    padding: 1.5rem;
    background: var(--color-orange-light);
    border-radius: var(--radius);
    text-align: center;
}

.auth-prompt p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--color-orange-light);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    color: var(--color-black);
}

.hero p {
    color: var(--color-gray-600);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray-600);
}

.empty-state h2 {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Error Page
   ========================================================================== */

.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--color-orange);
}

.error-page p {
    margin: 1rem 0 2rem;
    color: var(--color-gray-600);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-orange-light);
    border-radius: var(--radius);
}

.cta-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .item-detail {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   Field-level errors
   ========================================================================== */

.form-group-error input,
.form-group-error textarea,
.form-group-error select {
    border-color: var(--color-error);
}

.field-error {
    display: block;
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.field-note {
    color: var(--color-info);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   OTP / Verification page
   ========================================================================== */

.otp-input {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: var(--font-mono);
    padding: 0.75rem;
}

.resend-section {
    margin-top: 2rem;
    text-align: center;
    color: var(--color-gray-600);
}

.resend-section p {
    margin-bottom: 0.5rem;
}

.text-muted {
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

.inline-form {
    display: inline;
}

/* ==========================================================================
   Section headers and event card actions
   ========================================================================== */

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

.event-card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.main-section {
    max-width: 1000px;
    margin: 0 auto;
}

.badge-paused {
    background: #f59e0b;
    color: var(--color-white);
}

.item-card-wrapper {
    position: relative;
}

.item-delete-form {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: #9a3412;
    font-weight: 500;
    margin: 1rem 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Offers table
   ========================================================================== */

.item-offers {
    margin-top: 2rem;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.offers-table th,
.offers-table td {
    padding: 0.75rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
}

.offers-table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gray-600);
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-gray-400);
}

.offers-table tr:hover {
    background: var(--color-gray-100);
}

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

/* ==========================================================================
   Trust badge
   ========================================================================== */

.trust-badge {
    display: inline-block;
    background: var(--color-success);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.seller-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Captcha
   ========================================================================== */

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.captcha-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    background: var(--color-gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--color-gray-400);
    user-select: none;
    color: var(--color-black);
}

/* ==========================================================================
   Activity dashboard
   ========================================================================== */

.activity-section {
    margin-bottom: 3rem;
}

.activity-section h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gray-200);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    background: var(--color-white);
    transition: box-shadow 0.2s;
}

.activity-card:hover {
    box-shadow: var(--shadow);
}

.activity-card-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.activity-card-image .no-image {
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

.activity-card-body h3 {
    margin-bottom: 0.25rem;
}

.activity-card-body h3 a {
    color: var(--color-black);
}

.activity-card-body h3 a:hover {
    color: var(--color-orange);
}

.badge-pending {
    background: #f59e0b;
    color: var(--color-white);
}

/* ==========================================================================
   Activity table
   ========================================================================== */

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

.activity-table th,
.activity-table td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
    vertical-align: middle;
}

.activity-table th {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-gray-600);
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-gray-400);
}

.activity-table tr:hover {
    background: var(--color-gray-100);
}

.activity-table a {
    font-weight: 500;
}

.activity-thumb-cell {
    width: 50px;
    padding-right: 0.5rem;
}

.activity-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

.activity-thumb-empty {
    background: var(--color-gray-200);
}

/* ==========================================================================
   Hamburger menu toggle
   ========================================================================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 260px;
        background: var(--color-black);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        box-shadow: -4px 0 16px rgba(0,0,0,0.3);
        z-index: 100;
        overflow-y: auto;
    }

    .nav-links.nav-open {
        display: flex !important;
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }
}

/* ==========================================================================
   Price reduction
   ========================================================================== */

.item-price-original {
    font-size: 1.2rem;
    color: var(--color-gray-400);
    text-decoration: line-through;
    margin: 0.25rem 0 0;
}

.item-price-reduced {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-error);
    margin: 0 0 0.5rem;
}

/* ==========================================================================
   Picture preview (add item)
   ========================================================================== */

.picture-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.preview-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}

.preview-thumb:hover {
    opacity: 1;
}

.preview-thumb-main {
    border-color: var(--color-orange);
    opacity: 1;
}

/* ==========================================================================
   Edit pictures
   ========================================================================== */

.edit-pictures {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.edit-picture-option {
    position: relative;
    cursor: pointer;
}

.edit-picture-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.edit-picture-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 3px solid transparent;
    transition: border-color 0.2s;
}

.edit-picture-option input[type="radio"]:checked + .edit-picture-thumb {
    border-color: var(--color-orange);
}

.edit-picture-label {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: var(--color-orange);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 700;
}

/* ==========================================================================
   Edit item gallery
   ========================================================================== */

.edit-gallery {
    margin-top: 0.5rem;
}

.edit-gallery-main {
    width: 100%;
    height: 250px;
    background: var(--color-gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.edit-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.edit-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.edit-thumb-option {
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.edit-thumb-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.edit-thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 3px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.edit-thumb-option input[type="radio"]:checked + .edit-thumb-img {
    border-color: var(--color-orange);
    opacity: 1;
}

.edit-thumb-img:hover {
    opacity: 1;
}

/* ==========================================================================
   Specs table
   ========================================================================== */

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.specs-table tr {
    border-bottom: 1px solid var(--color-gray-200);
}

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

.specs-key {
    font-weight: 700;
    padding: 0.5rem 1rem 0.5rem 0;
    white-space: nowrap;
    width: 1%;
}

.specs-value {
    padding: 0.5rem 0;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.breadcrumb a {
    color: var(--color-orange);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--color-black);
    font-weight: 500;
}

/* ==========================================================================
   Video in gallery
   ========================================================================== */

.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumb-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb-wrapper:hover {
    opacity: 1;
}

.gallery-thumb-wrapper.gallery-thumb-active {
    border-color: var(--color-orange);
    opacity: 1;
}

.gallery-thumb-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    pointer-events: none;
}

/* ==========================================================================
   Admin dashboard
   ========================================================================== */

.admin-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-role-form {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.admin-role-select {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
}

.badge-root {
    background: #7c3aed;
    color: var(--color-white);
}

.badge-guardian {
    background: #2563eb;
    color: var(--color-white);
}

.badge-user {
    background: var(--color-gray-600);
    color: var(--color-white);
}

.badge-disabled {
    background: var(--color-error);
    color: var(--color-white);
}

.admin-disable-form {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.admin-reason-input {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    width: 160px;
}

/* ==========================================================================
   Filters bar and pagination
   ========================================================================== */

.filters-bar {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius);
}

.filters-form {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex-direction: row;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
}

.filter-group select {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.filter-note {
    font-size: 0.85rem;
    color: var(--color-success);
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.inline-verify-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.otp-input-sm {
    width: 120px;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.2rem;
    text-align: center;
    padding: 0.4rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Sales / Promoted
   ========================================================================== */

.promoted-row {
    background: #fff7ed;
}

.badge-promoted {
    background: var(--color-orange);
    color: var(--color-white);
}

.badge-sales {
    background: #f59e0b;
    color: var(--color-white);
}

/* ==========================================================================
   Admin table controls
   ========================================================================== */

.table-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.table-search-input {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    width: 280px;
}

.table-per-page {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

/* ==========================================================================
   Phone input with country prefix
   ========================================================================== */

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.phone-prefix {
    background: var(--color-gray-100);
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    color: var(--color-gray-600);
    border-right: 1px solid var(--color-gray-200);
    white-space: nowrap;
}

.phone-input-wrapper input {
    border: none;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    flex: 1;
    outline: none;
}

.phone-input-wrapper input:focus {
    box-shadow: none;
}

.phone-input-wrapper:focus-within {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 2px var(--color-orange-light);
}

/* ==========================================================================
   Seller activity cards
   ========================================================================== */

.seller-activity-card {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--color-white);
}

.seller-activity-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-activity-header img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
