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

/* ===================================
   DARK MODE (DEFAULT)
   =================================== */
:root {
    /* Primary Brand - Blue Scale */
    --sl-brand-50: #EFF6FF;
    --sl-brand-100: #DBEAFE;
    --sl-brand-200: #BFDBFE;
    --sl-brand-300: #93C5FD;
    --sl-brand-400: #60A5FA;
    --sl-brand-500: #2563EB;
    --sl-brand-600: #2563EB;
    --sl-brand-700: #1D4ED8;
    --sl-brand-800: #1E40AF;
    --sl-brand-900: #1E3A8A;
    --sl-brand-950: #172554;

    /* Success - Emerald Scale */
    --sl-success-400: #34D399;
    --sl-success-500: #10B981;
    --sl-success-600: #059669;

    /* Accent - Amber/Gold Scale */
    --sl-accent-400: #FBBF24;
    --sl-accent-500: #F59E0B;
    --sl-accent-600: #D97706;

    /* Error - Red Scale */
    --sl-error-400: #F87171;
    --sl-error-500: #EF4444;
    --sl-error-600: #DC2626;

    /* Info - Cyan Scale */
    --sl-info-400: #22D3EE;
    --sl-info-500: #06B6D4;
    --sl-info-600: #0891B2;

    /* Neutrals - Slate Scale */
    --sl-slate-50: #F8FAFC;
    --sl-slate-100: #F1F5F9;
    --sl-slate-200: #E2E8F0;
    --sl-slate-300: #CBD5E1;
    --sl-slate-400: #94A3B8;
    --sl-slate-500: #64748B;
    --sl-slate-600: #475569;
    --sl-slate-700: #334155;
    --sl-slate-800: #1E293B;
    --sl-slate-900: #0F172A;
    --sl-slate-950: #020617;

    /* PSA Grade Colors */
    --grade-10-color: #EAB308;
    --grade-10-bg: rgba(234, 179, 8, 0.2);
    --grade-9-color: #22C55E;
    --grade-9-bg: rgba(34, 197, 94, 0.2);
    --grade-8-color: #10B981;
    --grade-8-bg: rgba(16, 185, 129, 0.2);
    --grade-7-color: #14B8A6;
    --grade-7-bg: rgba(20, 184, 166, 0.2);
    --grade-6-color: #94A3B8;
    --grade-6-bg: rgba(148, 163, 184, 0.2);
    --grade-low-color: #64748B;
    --grade-low-bg: rgba(100, 116, 139, 0.2);

    /* Semantic Aliases - Dark Mode */
    --bg-primary: var(--sl-slate-900);
    --bg-secondary: var(--sl-slate-800);
    --bg-card: var(--sl-slate-800);
    --bg-input: rgba(15, 23, 42, 0.5);
    --text-primary: #F1F5F9;
    --text-secondary: var(--sl-slate-400);
    --text-muted: var(--sl-slate-500);
    --border: var(--sl-slate-700);
    --border-subtle: var(--sl-slate-600);

    /* Button Colors - Dark Mode */
    --btn-primary-bg: var(--sl-brand-500);
    --btn-primary-hover: var(--sl-brand-700);
    --btn-primary-text: #FFFFFF;
    --btn-secondary-bg: var(--sl-slate-700);
    --btn-secondary-hover: var(--sl-slate-600);
    --btn-secondary-text: var(--text-primary);

    /* Shadows - Dark Mode */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow-brand: 0 0 20px rgba(37, 99, 235, 0.3);
    --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.3);
    --shadow-glow-gold: 0 0 20px rgba(234, 179, 8, 0.3);
}

/* ===================================
   LIGHT MODE
   =================================== */
:root.light-mode {
    /* Semantic Aliases - Light Mode */
    --bg-primary: var(--sl-slate-50);
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-input: #FFFFFF;
    --text-primary: var(--sl-slate-900);
    --text-secondary: var(--sl-slate-600);
    --text-muted: var(--sl-slate-500);
    --border: var(--sl-slate-200);
    --border-subtle: var(--sl-slate-300);

    /* Button Colors - Light Mode */
    --btn-primary-bg: var(--sl-brand-500);
    --btn-primary-hover: var(--sl-brand-700);
    --btn-primary-text: #FFFFFF;
    --btn-secondary-bg: var(--sl-slate-200);
    --btn-secondary-hover: var(--sl-slate-300);
    --btn-secondary-text: var(--text-primary);

    /* Shadows - Light Mode */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow-brand: 0 0 20px rgba(37, 99, 235, 0.15);
    --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.15);
    --shadow-glow-gold: 0 0 20px rgba(234, 179, 8, 0.15);
}

/* ===================================
   BASE STYLES
   =================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===================================
   HEADER
   =================================== */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 100%;
    gap: 1rem;
}

.header-text {
    grid-column: 2;
    text-align: center;
}

.header-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}

.ebay-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ebay-link-btn {
    padding: 0.5rem 1rem;
    background: #3665F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ebay-link-btn:hover {
    background: #2952CC;
    transform: translateY(-1px);
}
.ebay-linked-badge {
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--sl-success-400);
    border: 1px solid var(--sl-success-600);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ebay-unlink-btn {
    padding: 0.25rem 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: var(--sl-error-400);
    border: 1px solid var(--sl-error-600);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.ebay-unlink-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Logo Container & Theme Switching */
.logo-container {
    display: inline-block;
    margin-bottom: 0.5rem;
    position: relative;
    height: 60px;
}

.logo {
    display: block;
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Dark mode (default): Show horizontal logo, hide light-bg logo */
.logo-dark {
    display: block;
    opacity: 1;
}

.logo-light {
    display: none;
    opacity: 0;
}

/* Light mode: Show light-bg logo, hide horizontal logo */
:root.light-mode .logo-dark {
    display: none;
    opacity: 0;
}

:root.light-mode .logo-light {
    display: block;
    opacity: 1;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.5rem;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    border-color: var(--sl-brand-500);
    box-shadow: var(--shadow-glow-brand);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
}

/* Dark mode (default) - show moon, hide sun */
.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light mode - show sun, hide moon */
:root.light-mode .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

:root.light-mode .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* ===================================
   SEARCH SECTION
   =================================== */
.search-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

#certInput {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s;
}

#certInput::placeholder {
    color: var(--text-muted);
}

#certInput:focus {
    outline: none;
    border-color: var(--sl-brand-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary .btn-loading {
    display: none;
}

.btn-primary.loading .btn-loading {
    display: inline;
}

.hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
}

/* ===================================
   ERROR MESSAGE
   =================================== */
.error-message {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--sl-error-500);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--sl-error-500);
    border: 1px solid var(--sl-error-500);
    transition: all 0.3s ease;
}

.error-message.show {
    display: block;
}

:root.light-mode .error-message {
    background: #FEE2E2;
    color: #991B1B;
}

/* ===================================
   LOADING
   =================================== */
.loading {
    display: none;
    text-align: center;
    padding: 3rem;
}

.loading.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--sl-brand-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   RESULTS SECTION
   =================================== */
.results-section {
    display: none;
}

.results-section.show {
    display: block;
}

/* ===================================
   IMAGES CONTAINER
   =================================== */
.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-wrapper {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.image-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.card-image-placeholder {
    aspect-ratio: 2/3;
    background: var(--bg-primary);
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* ===================================
   DETAILS CONTAINER
   =================================== */
.details-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.details-container h2 {
    margin-bottom: 1.5rem;
    color: var(--sl-brand-500);
    font-size: 1.75rem;
}

.cert-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
}

.detail-value.grade {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sl-accent-500);
}

.detail-value.population {
    font-weight: 600;
    color: var(--sl-success-500);
}

/* ===================================
   ACTION BUTTONS
   =================================== */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ebay:hover {
    background: #E53238;
    color: white;
    border-color: #E53238;
}

.btn-share:hover {
    background: var(--sl-brand-500);
    color: white;
    border-color: var(--sl-brand-500);
}

.btn-print:hover {
    background: var(--sl-slate-700);
    color: white;
    border-color: var(--sl-slate-700);
}

.btn-compare:hover {
    background: var(--sl-success-500);
    color: white;
    border-color: var(--sl-success-500);
}

/* ===================================
   PSA LINK
   =================================== */
.psa-link {
    text-align: center;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.psa-link a {
    color: var(--sl-brand-500);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.psa-link a:hover {
    color: var(--sl-brand-700);
    text-decoration: underline;
}

/* ===================================
   GRADIENTS & SPECIAL EFFECTS
   =================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.05) 0%,
        transparent 50%,
        rgba(245, 158, 11, 0.03) 100%
    );
    pointer-events: none;
    z-index: -1;
}

:root.light-mode body::before {
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.03) 0%,
        transparent 50%,
        rgba(245, 158, 11, 0.02) 100%
    );
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    /* Scale down logo on mobile */
    .logo-container {
        height: 45px;
    }

    .logo {
        height: 45px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-text {
        text-align: center;
    }

    .theme-toggle {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .images-container {
        grid-template-columns: 1fr;
    }

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

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   MODAL STYLES
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

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

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    text-align: center;
}

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

.modal-content h2 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.modal-content p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.price-input-container {
    position: relative;
    margin: 1.5rem 0;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.price-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-weight: 600;
    transition: border-color 0.2s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--sl-brand-500);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.modal-buttons .btn-primary,
.modal-buttons .btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.modal-buttons .btn-primary {
    background: var(--sl-brand-500);
    color: white;
}

.modal-buttons .btn-primary:hover {
    background: var(--sl-brand-600);
    transform: translateY(-1px);
}

.modal-buttons .btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--text-primary);
}

.modal-buttons .btn-secondary:hover {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

/* Loading modal */
.loading-spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--sl-brand-500);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem !important;
}

/* Success modal */
.success-modal .success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-modal .listing-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 1rem 0 !important;
}

/* Error modal */
.error-modal .error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.error-modal .error-message {
    background: rgba(239, 68, 68, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    color: var(--text-primary);
    margin: 1rem 0 !important;
    text-align: left;
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

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

    .price-input {
        font-size: 1.25rem;
    }
}

/* ===================================
   LISTING PAGE STYLES
   =================================== */

/* Certificate Summary Card */
.cert-summary-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
}

.cert-summary-images {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cert-summary-images img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.cert-summary-details h3 {
    margin-bottom: 0.5rem;
    color: var(--sl-brand-500);
    font-size: 1.25rem;
}

.cert-summary-details p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cert-summary-details a {
    color: var(--sl-brand-500);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cert-summary-details a:hover {
    color: var(--sl-brand-700);
    text-decoration: underline;
}

/* Listing Form Section */
.listing-form-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.listing-form-section h2 {
    margin-bottom: 2rem;
    color: var(--sl-brand-500);
    font-size: 1.75rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* Form Fields */
.form-field {
    margin-bottom: 1.5rem;
}

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

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--sl-brand-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-field textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.form-field .hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Price Input Wrapper (already exists but ensuring consistency) */
.price-input-wrapper {
    position: relative;
}

.price-input-wrapper .currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

.price-input-wrapper input[type="number"] {
    padding-left: 2.5rem !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Responsive - Listing Page */
@media (max-width: 768px) {
    .cert-summary-card {
        grid-template-columns: 1fr;
    }

    .cert-summary-images {
        justify-content: center;
    }

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

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

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--sl-brand-500);
    outline-offset: 2px;
}
