/* SFC Marketplace - Premium Financial Editorial Design */
/* Design Direction: Luxury financial marketplace with editorial elegance */

/* ============ GOOGLE FONTS IMPORT ============ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    /* Primary Palette - Deep Navy & Gold */
    --primary: #0a1628;
    --primary-dark: #050d18;
    --primary-light: #162642;
    --secondary: #1e3a5f;

    /* Gold Accent */
    --accent: #c9a227;
    --accent-dark: #a68521;
    --accent-light: #dbb94d;
    --accent-glow: rgba(201, 162, 39, 0.15);

    /* Backgrounds */
    --bg-primary: #fafaf8;
    --bg-secondary: #ffffff;
    --bg-dark: #0a1628;
    --bg-cream: #f5f3ef;
    --bg-warm: #fdfcfa;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    --text-gold: #c9a227;

    /* Borders */
    --border: #e2e0dc;
    --border-light: #f0eeea;
    --border-gold: rgba(201, 162, 39, 0.3);

    /* Status Colors */
    --success: #0d6e4f;
    --error: #b91c1c;
    --warning: #d97706;
    --info: #1e3a5f;

    /* Action Colors - Buy/Sell/Wanted */
    --color-buy: #1e3a5f;
    --color-buy-dark: #152a45;
    --color-buy-light: #e8eef5;
    --color-sell: #8b1e1e;
    --color-sell-dark: #6b1515;
    --color-sell-light: #fdf2f2;
    --color-wanted: #0d7377;
    --color-wanted-dark: #0a5c5f;
    --color-wanted-light: #f0fdf4;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;

    /* Shadows - Refined */
    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 1px 3px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 6px rgba(10, 22, 40, 0.05), 0 2px 4px rgba(10, 22, 40, 0.04);
    --shadow-lg: 0 10px 25px rgba(10, 22, 40, 0.08), 0 6px 10px rgba(10, 22, 40, 0.05);
    --shadow-xl: 0 20px 40px rgba(10, 22, 40, 0.12), 0 8px 16px rgba(10, 22, 40, 0.06);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.2);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-width: 1200px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.015;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* Selection styling */
::selection {
    background: var(--accent);
    color: var(--text-white);
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ============ UTILITIES ============ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
.required { color: var(--error); }

/* ============ NAVBAR ============ */
.navbar {
    background: var(--primary);
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.brand-icon {
    background: var(--accent);
    color: var(--primary);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-switch {
    display: flex;
    gap: 0.25rem;
    background: rgba(255,255,255,0.05);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.lang-switch button {
    padding: 0.4rem 0.75rem;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.lang-switch button.active,
.lang-switch button:hover {
    background: var(--accent);
    color: var(--primary);
}

.user-greeting {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(165deg, var(--primary) 0%, var(--primary-dark) 50%, #0d1f35 100%);
    color: var(--text-white);
    padding: 6rem 2rem 7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative grid pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Gradient orb */
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-style: italic;
    letter-spacing: 0.02em;
}

.hero-tagline {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.hero-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
    transition: opacity var(--transition);
}

.hero-links a:hover::after {
    opacity: 1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: var(--text-white);
    color: var(--primary);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--bg-cream);
    border-color: var(--bg-cream);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: var(--text-white);
    color: var(--primary);
    border-color: var(--text-white);
}

.btn-danger {
    background: var(--error);
    color: var(--text-white);
    border-color: var(--error);
}

.btn-danger:hover {
    background: #991b1b;
    border-color: #991b1b;
}

/* Buy Button - Navy */
.btn-buy {
    background: var(--color-buy);
    color: var(--text-white);
    border-color: var(--color-buy);
}

.btn-buy:hover {
    background: var(--color-buy-dark);
    border-color: var(--color-buy-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Sell Button - Deep Red */
.btn-sell {
    background: var(--color-sell);
    color: var(--text-white);
    border-color: var(--color-sell);
}

.btn-sell:hover {
    background: var(--color-sell-dark);
    border-color: var(--color-sell-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 30, 30, 0.3);
}

/* Wanted Button - Teal */
.btn-wanted {
    background: var(--color-wanted);
    color: var(--text-white);
    border-color: var(--color-wanted);
}

.btn-wanted:hover {
    background: var(--color-wanted-dark);
    border-color: var(--color-wanted-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
}

/* Outline variants */
.btn-outline-buy {
    background: transparent;
    color: var(--color-buy);
    border-color: var(--color-buy);
}

.btn-outline-buy:hover {
    background: var(--color-buy);
    color: var(--text-white);
}

.btn-outline-sell {
    background: transparent;
    color: var(--color-sell);
    border-color: var(--color-sell);
}

.btn-outline-sell:hover {
    background: var(--color-sell);
    color: var(--text-white);
}

.btn-outline-wanted {
    background: transparent;
    color: var(--color-wanted);
    border-color: var(--color-wanted);
}

.btn-outline-wanted:hover {
    background: var(--color-wanted);
    color: var(--text-white);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============ STATS SECTION ============ */
.stats-section {
    background: var(--bg-secondary);
    padding: 3.5rem 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: var(--border);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* ============ SECTIONS ============ */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.license-section {
    padding: 5rem 2rem;
    background: var(--bg-cream);
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.license-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.license-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.license-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: var(--accent);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.license-info {
    flex: 1;
    min-width: 0;
}

.license-zh {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.license-en {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
    background: var(--bg-primary);
    padding: 5rem 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.steps-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Themed How It Works Sections */
.how-it-works-sell {
    background: linear-gradient(180deg, var(--color-sell-light) 0%, var(--bg-warm) 100%);
}

.how-it-works-sell .step-number {
    background: var(--color-sell);
    color: var(--text-white);
}

.how-it-works-sell .section-title {
    color: var(--color-sell-dark);
}

.how-it-works-buy {
    background: linear-gradient(180deg, var(--color-buy-light) 0%, var(--bg-warm) 100%);
}

.how-it-works-buy .step-number {
    background: var(--color-buy);
    color: var(--text-white);
}

.how-it-works-buy .section-title {
    color: var(--color-buy-dark);
}

.how-it-works-wanted {
    background: linear-gradient(180deg, var(--color-wanted-light) 0%, var(--bg-warm) 100%);
}

.how-it-works-wanted .step-number {
    background: var(--color-wanted);
    color: var(--text-white);
}

.how-it-works-wanted .section-title {
    color: var(--color-wanted-dark);
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: var(--primary);
    color: var(--text-white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(201, 162, 39, 0.05) 100%);
    pointer-events: none;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-weight: 600;
}

.cta-section p {
    opacity: 0.85;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    position: relative;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-company {
    font-size: 0.85rem;
    margin-top: 1.25rem;
    color: var(--accent);
    font-weight: 500;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(4px);
}

.footer-contact p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact a {
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom a {
    color: var(--accent);
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

.footer-licence {
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 0.5rem 0;
}

.footer-disclaimer {
    font-size: 0.75rem;
    opacity: 0.5;
    margin: 1.5rem auto 0;
    line-height: 1.7;
    max-width: 800px;
}

/* Disclaimer Banner - Premium */
.disclaimer-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: #92400e;
    text-align: center;
    line-height: 1.7;
}

.disclaimer-banner strong {
    color: #78350f;
    font-weight: 700;
}

.disclaimer-banner.disclaimer-banner-dark {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.08) 0%, rgba(254, 243, 199, 0.05) 100%);
    border-color: rgba(252, 211, 77, 0.2);
    color: rgba(255, 255, 255, 0.75);
}

.disclaimer-banner.disclaimer-banner-dark strong {
    color: #fcd34d;
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-primary) 100%);
}

.form-container {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-light);
}

.form-container-wide {
    max-width: 720px;
}

.form-container h2 {
    text-align: center;
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section h3 {
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition);
    background: var(--bg-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input {
    width: auto;
    accent-color: var(--accent);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.checkbox-grid .checkbox-label {
    padding: 0.625rem;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.checkbox-grid .checkbox-label:hover {
    background: var(--bg-secondary);
}

.form-group-small {
    max-width: 200px;
}

.form-error {
    background: #fef2f2;
    color: var(--error);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border-left: 3px solid var(--error);
}

.form-success {
    background: #f0fdf4;
    color: var(--success);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border-left: 3px solid var(--success);
}

.form-link-right {
    text-align: right;
    margin-top: 0.5rem;
}

.form-link-right a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-link-right a:hover {
    color: var(--accent);
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ============ LISTINGS PAGE ============ */
.listings-page {
    padding: 3rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Themed page headers */
.page-header-buy h1 {
    color: var(--color-buy);
}

.page-header-sell h1 {
    color: var(--color-sell);
}

.page-header-wanted h1 {
    color: var(--color-wanted);
}

.listings-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.listings-filters-advanced {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.listings-filters-advanced .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.listings-filters-advanced .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.listings-filters-advanced .filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.listings-filters-advanced .price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listings-filters-advanced .price-range input {
    width: 130px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.listings-filters-advanced .price-range span {
    color: var(--text-light);
}

.listings-filters-advanced .filter-checkboxes {
    display: flex;
    gap: 1.25rem;
}

.listings-filters-advanced .filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.listings-filters-advanced .filter-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

.listings-filters-advanced select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    min-width: 150px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--accent);
}

.search-box {
    flex: 1;
    min-width: 280px;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition);
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-box select {
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    min-width: 220px;
}

.results-info {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.listing-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.listing-card-header {
    background: var(--color-sell);
    color: var(--text-white);
    padding: 0.875rem 1.25rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.license-badge {
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.featured-badge {
    background: var(--accent);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.listing-featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-gold);
}

.listing-featured:hover {
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.25);
}

.listing-card-body {
    padding: 1.5rem;
}

.listing-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.listing-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
}

.listing-license-type {
    color: var(--accent-dark);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.listing-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.listing-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
}

.listing-role .role-label {
    color: var(--text-light);
}

.listing-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-cream);
}

.listing-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.page-ellipsis {
    padding: 0.625rem;
    color: var(--text-light);
}

/* ============ LISTING DETAIL PAGE ============ */
.listing-detail-page {
    padding: 3rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--accent);
}

.loading-state,
.error-state {
    text-align: center;
    padding: 5rem 2rem;
}

.spinner-large {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.listing-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.company-name {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.listing-header-actions .btn.saved {
    color: var(--error);
    border-color: var(--error);
}

.listing-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
}

.price-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.price-label {
    display: block;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
}

.price-negotiable {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
    color: var(--accent);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-section {
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-light);
}

.info-section h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    padding: 1rem;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.description-content {
    line-height: 1.9;
    color: var(--text-secondary);
}

.contact-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 90px;
    border: 1px solid var(--border-light);
}

.contact-card h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.seller-name {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

/* ============ CREATE PAGE ============ */
.create-page {
    padding: 3rem 0;
}

/* ============ DASHBOARD PAGE ============ */
.dashboard-page {
    padding: 3rem 0;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.tab-count {
    background: var(--bg-cream);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-count-highlight {
    background: var(--error);
    color: var(--text-white);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.panel-header h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.listing-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.listing-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.listing-item-info {
    flex: 1;
    min-width: 0;
}

.listing-item-info h4 {
    font-family: var(--font-display);
    margin-top: 0.5rem;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.listing-item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.license-badge-sm {
    display: inline-block;
    background: var(--primary);
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.listing-item-status {
    padding: 0 1.25rem;
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: #dcfce7;
    color: var(--success);
}

.status-pending {
    background: #fef3c7;
    color: var(--warning);
}

.status-sold {
    background: var(--bg-cream);
    color: var(--text-secondary);
}

.listing-item-actions {
    display: flex;
    gap: 0.5rem;
}

.inquiry-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.inquiry-item.unread {
    border-left-color: var(--accent);
    background: #fffef5;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.inquiry-from {
    font-weight: 600;
    color: var(--text-primary);
}

.inquiry-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.inquiry-listing {
    font-size: 0.85rem;
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.inquiry-message {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.inquiry-contact {
    font-size: 0.85rem;
}

.inquiry-contact a {
    color: var(--primary);
    font-weight: 500;
}

.inquiry-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.inquiry-item.hidden-item {
    opacity: 0.5;
    background: var(--bg-cream);
    border-left-color: var(--text-light);
}

.hidden-badge {
    font-size: 0.7rem;
    background: var(--text-light);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toggle-hidden {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.toggle-hidden input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

/* ============ LOADING & SPINNER ============ */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ NO RESULTS ============ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

/* ============ RESPONSIVE ============ */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Tablets and small laptops */
@media (max-width: 900px) {
    .listing-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: static;
    }

    .license-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.75rem;
        z-index: 1000;
        border-top: 1px solid rgba(201, 162, 39, 0.1);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a {
        padding: 0.875rem;
        border-radius: var(--radius-md);
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.05);
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-brand span:not(.brand-icon) {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 4rem 1.5rem 5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Stats */
    .stats-section {
        padding: 2.5rem 1.5rem;
        margin-top: -1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* License Grid */
    .license-section {
        padding: 3rem 1.5rem;
    }

    .license-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .license-card {
        padding: 1.25rem;
    }

    .license-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Steps */
    .how-it-works {
        padding: 3rem 1.5rem;
    }

    .steps-grid,
    .steps-grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card {
        padding: 1.75rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* CTA */
    .cta-section {
        padding: 3.5rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* Forms */
    .form-container {
        padding: 2rem;
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Listings page */
    .listings-page {
        padding: 2rem 0;
    }

    .page-header {
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .listings-filters {
        flex-direction: column;
    }

    .search-box,
    .filter-box,
    .filter-box select {
        width: 100%;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Dashboard */
    .dashboard-page {
        padding: 2rem 0;
    }

    .dashboard-tabs {
        gap: 0;
        padding-bottom: 0;
    }

    .tab-btn {
        flex: 1;
        padding: 0.875rem 0.5rem;
        font-size: 0.85rem;
        justify-content: center;
    }

    .tab-btn span:first-child {
        display: none;
    }

    .tab-btn::before {
        content: attr(data-tab);
        text-transform: capitalize;
    }

    .listing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .listing-item-status {
        padding: 0;
    }

    .listing-item-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .listing-item-actions .btn {
        flex: 1;
    }

    /* Listing detail */
    .listing-page {
        padding: 2rem 0;
    }

    .listing-header {
        flex-direction: column;
    }

    .listing-header h1 {
        font-size: 1.625rem;
    }

    .listing-header-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .listing-header-actions .btn {
        flex: 1;
    }

    .price-card {
        padding: 1.5rem;
    }

    .price-value {
        font-size: 1.75rem;
    }

    .info-section {
        padding: 1.25rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Wanted cards */
    .wanted-card-body {
        padding: 1.25rem;
    }

    .wanted-card-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.875rem;
        align-items: stretch;
    }

    .wanted-card-footer .btn {
        width: 100%;
        text-align: center;
    }

    /* Admin page */
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }

    /* Modal */
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .inquiry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .btn,
    .mobile-menu-btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    body::before {
        display: none;
    }

    .container {
        max-width: 100%;
    }
}
