/* =========================================================
   Impacto Locações – Theme CSS
   ========================================================= */

:root {
    --primary:        #FFB800;
    --primary-dark:   #D49A00;
    --primary-light:  #FFF5CC;
    --secondary:      #0F0F0F;
    --secondary-light:#1C1C1C;
    --accent:         #FFD55E;
    --whatsapp:       #25D366;
    --whatsapp-dark:  #1DAE55;
    --success:        #16A34A;
    --danger:         #DC2626;
    --warning:        #D97706;
    --info:           #0284C7;
    --light:          #F8F9FA;
    --dark:           #0F0F0F;
    --text:           #1E293B;
    --text-muted:     #64748B;
    --border:         #E2E8F0;
    --radius:         12px;
    --radius-sm:      8px;
    --shadow:         0 4px 24px rgba(0,0,0,.08);
    --shadow-lg:      0 12px 40px rgba(0,0,0,.14);
    --transition:     .2s ease;
    --font:           'Inter', system-ui, sans-serif;
    --font-display:   'Barlow Condensed', 'Inter', system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.mt-6 { margin-top: 5rem; }
.section-padded { padding: 5rem 0; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.01em; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    border: none;
    font-weight: 700;
}
.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
    font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--secondary);
    transform: translateY(-1px);
}
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: var(--secondary); }
.btn-xs {
    padding: .25rem .55rem;
    font-size: .75rem;
    border-radius: 6px;
    line-height: 1.4;
}
.btn-success-soft { background: #DCFCE7; color: #16A34A; border: none; }
.btn-success-soft:hover { background: #BBF7D0; }
.btn-danger-soft  { background: #FEE2E2; color: #DC2626; border: none; }
.btn-danger-soft:hover  { background: #FECACA; }
.btn-warning-soft { background: #FEF3C7; color: #D97706; border: none; }
.btn-warning-soft:hover { background: #FDE68A; }
.btn-login {
    padding: .75rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: var(--radius);
    transition: all var(--transition);
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--secondary);
    box-shadow: 0 2px 0 var(--primary);
}

.site-header .navbar { padding: .75rem 0; }

.navbar-brand { display: flex; align-items: center; gap: .7rem; }

/* Logo image (navbar, sidebar, login, footer) */
.brand-logo-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.sidebar-brand .brand-logo-img { width: 32px; height: 32px; }
.brand-logo-footer { width: 36px; height: 36px; }
.login-logo-img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto; }

/* Hexagonal logo */
.brand-hex {
    width: 40px;
    height: 40px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.brand-text span { color: var(--primary); }

/* Legacy icon class (admin sidebar uses brand-icon) */
.brand-icon { font-size: 1.8rem; color: var(--primary); }

.navbar-nav .nav-link {
    color: rgba(255,255,255,.8) !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .5rem .9rem !important;
    border-radius: 8px;
    transition: all var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(255,184,0,.1);
}

.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }

/* Search */
.search-wrapper { position: relative; }
.search-input {
    width: 220px;
    border-radius: 8px !important;
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: #fff;
}
.search-input::placeholder { color: rgba(255,255,255,.45); }
.search-input:focus {
    background: rgba(255,255,255,.14);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255,184,0,.2);
    color: #fff;
}
.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}
.search-results.show { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--light); }
.search-result-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Loading Bar */
.loading-bar {
    height: 3px;
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 0;
    transition: width .3s ease, opacity .3s ease;
    opacity: 0;
}
.loading-bar.active { opacity: 1; }

/* =========================================================
   PAGE CONTENT TRANSITION
   ========================================================= */
.page-content { min-height: 70vh; }
.page-content.transitioning { opacity: 0; transition: opacity .15s ease; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
    position: relative;
    background: #fff;
    overflow: hidden;
    color: var(--secondary);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 40%, rgba(255,184,0,.08) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(255,184,0,.05) 0%, transparent 50%);
    pointer-events: none;
}
/* Diagonal stripe accent */
.hero-bg::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 0;
    bottom: 0;
    width: 45%;
    background: repeating-linear-gradient(
        -55deg,
        rgba(255,184,0,.04),
        rgba(255,184,0,.04) 2px,
        transparent 2px,
        transparent 22px
    );
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding: 4rem 0; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,184,0,.15);
    color: var(--primary);
    border: 1px solid rgba(255,184,0,.3);
    border-radius: 4px;
    padding: .35rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--secondary);
    text-transform: uppercase;
    margin: .75rem 0 1.25rem;
}
.hero-title strong { color: var(--primary); }
.hero-subtitle {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    max-width: 500px;
}
.hero-verse {
    font-style: italic;
    color: #888;
    font-size: .85rem;
    margin-top: 1.5rem;
    padding-left: .9rem;
    border-left: 3px solid var(--primary);
    line-height: 1.5;
}
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-hex-bg {
    width: 320px;
    height: 320px;
    background: rgba(255,184,0,.08);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary);
    opacity: .9;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.hero-spin-icon {
    display: block;
    transform-style: preserve-3d;
    will-change: transform;
}

/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
    background: var(--primary);
    padding: 0;
}
.stat-item {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--secondary);
    border-right: 1px solid rgba(0,0,0,.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
}
.stat-label {
    font-size: .78rem;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-top: .25rem;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.bg-light-section { background: #F1F5F9; }

.section-header { margin-bottom: 3rem; }
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: #7A5500;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .3rem .9rem;
    border-radius: 4px;
    margin-bottom: .75rem;
    border-left: 3px solid var(--primary);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--secondary);
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* =========================================================
   MACHINE CARDS
   ========================================================= */
.machine-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    background: #fff;
}
.machine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.machine-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #fff;
}
.machine-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform .4s ease;
}
.machine-card:hover .machine-card-img img { transform: scale(1.04); }

.machine-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #CBD5E1;
    background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
}
.machine-placeholder.large { height: 380px; font-size: 6rem; }

.machine-badge-featured {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--primary);
    color: var(--secondary);
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.machine-card-body {
    padding: 1.25rem;
}
.machine-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: .5rem;
    line-height: 1.3;
}
.machine-desc {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.machine-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* =========================================================
   CATEGORY CARDS
   ========================================================= */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.25rem .75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-bottom: 3px solid transparent;
    border-radius: var(--radius);
    text-align: center;
    color: var(--text);
    transition: all var(--transition);
    text-decoration: none;
}
.category-card:hover {
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-3px);
    color: var(--secondary);
}
.category-icon {
    width: 52px;
    height: 52px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--primary-light);
    color: #7A5500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all var(--transition);
}
.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--secondary);
}
.category-name { font-size: .85rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: .03em; }
.category-count { font-size: .75rem; color: var(--text-muted); }

/* =========================================================
   WHY US CARDS
   ========================================================= */
.why-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid transparent;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}
.why-card:hover {
    border-top-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.why-icon {
    width: 64px;
    height: 64px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--primary-light);
    color: #7A5500;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all var(--transition);
}
.why-card:hover .why-icon { background: var(--primary); color: var(--secondary); }
.why-card h5 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--secondary); margin-bottom: .5rem; }
.why-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
    background: var(--secondary);
    border-top: 4px solid var(--primary);
    padding: 5rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        rgba(255,184,0,.03),
        rgba(255,184,0,.03) 2px,
        transparent 2px,
        transparent 22px
    );
    pointer-events: none;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin-bottom: .75rem;
}
.cta-subtitle { color: rgba(255,255,255,.65); font-size: 1.05rem; }
.cta-banner .btn-light {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
    font-weight: 700;
}
.cta-banner .btn-light:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--secondary);
}
.cta-banner .btn-outline-light {
    border-color: rgba(255,255,255,.3);
    color: #fff;
    font-weight: 600;
}
.cta-banner .btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
}

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-header {
    background: var(--secondary);
    border-bottom: 3px solid var(--primary);
    color: #fff;
    padding: 3rem 0 2.5rem;
}
.page-header .breadcrumb { margin-bottom: .5rem; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: rgba(255,255,255,.55); font-size: .85rem; }
.page-header .breadcrumb-item a:hover { color: var(--primary); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }
.page-header-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-bottom: .25rem; }
.page-header-sub { color: rgba(255,255,255,.6); font-size: .95rem; margin: 0; }

/* =========================================================
   FILTER BAR (machines list)
   ========================================================= */
.category-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .85rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    background: #fff;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.category-pill:hover, .category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

/* =========================================================
   MACHINE DETAIL
   ========================================================= */
.machine-gallery { position: sticky; top: 90px; }
.gallery-main-img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius);
}
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition);
    background: none;
}
.gallery-thumb { background: #fff; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb:hover { border-color: var(--primary); }

.badge-category {
    background: var(--primary-light);
    color: #7A5500;
    border-radius: 4px;
    padding: .35rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.machine-detail-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: .01em;
    margin: .5rem 0 .75rem;
}
.machine-detail-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.whatsapp-cta-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius);
    padding: 1.5rem;
}
.cta-box-label { font-weight: 600; color: var(--secondary); margin-bottom: .75rem; font-size: .9rem; }
.cta-box-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .8rem;
    color: var(--text-muted);
}

.machine-specs { margin-top: 1.5rem; }
.specs-title { font-weight: 700; color: var(--secondary); font-size: .95rem; margin-bottom: .75rem; }
.specs-table { border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.spec-key { padding: .5rem .75rem .5rem 0; font-weight: 600; font-size: .85rem; color: var(--text-muted); white-space: nowrap; width: 40%; }
.spec-value { padding: .5rem 0; font-size: .9rem; color: var(--text); }

.prose { font-size: .97rem; line-height: 1.8; color: var(--text); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.75); border-top: 4px solid var(--primary); }
.footer-top { padding: 4rem 0 3rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand .brand-hex { width: 36px; height: 36px; font-size: 1rem; }
.footer-brand .brand-text { font-size: 1.15rem; font-weight: 800; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-verse { font-style: italic; color: rgba(255,255,255,.35); font-size: .8rem; line-height: 1.6; margin-top: 1rem; padding-left: .75rem; border-left: 2px solid var(--primary); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1rem;
}
.social-link:hover { background: var(--primary); color: var(--secondary); }
.footer-title { font-family: var(--font-display); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-contact i { color: var(--primary); flex-shrink: 0; margin-top: .1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; }

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state { padding: 4rem 0; }
.empty-icon { font-size: 4rem; color: #CBD5E1; margin-bottom: 1rem; }

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-custom {
    min-width: 280px;
    border-radius: var(--radius-sm);
    padding: .9rem 1.25rem;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s ease;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.toast-custom.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #DCFCE7; color: #15803D; }
.toast-error   { background: #FEE2E2; color: #B91C1C; }
.toast-info    { background: #DBEAFE; color: #1D4ED8; }

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    background-image: repeating-linear-gradient(
        -55deg,
        rgba(255,184,0,.04),
        rgba(255,184,0,.04) 2px,
        transparent 2px,
        transparent 22px
    );
    padding: 2rem 1rem;
}
.login-container { width: 100%; max-width: 420px; }
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.4);
    border-top: 4px solid var(--primary);
}
.login-header { text-align: center; margin-bottom: 2rem; }
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.login-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; color: var(--secondary); margin-bottom: .25rem; }
.login-subtitle { color: var(--text-muted); font-size: .9rem; }

/* =========================================================
   ADMIN AREA
   ========================================================= */
.admin-body { background: #F1F5F9; }

.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--secondary);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    overflow-y: auto;
    transition: transform var(--transition);
    border-right: 2px solid rgba(255,184,0,.15);
}
.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}
.brand-icon-sm { font-size: 1.5rem; color: var(--primary); }
.sidebar-brand span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: #fff; }
.sidebar-close { background: none; border: none; color: rgba(255,255,255,.4); font-size: 1.1rem; cursor: pointer; padding: .25rem; }

.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav ul { list-style: none; padding: 0 .75rem; margin: 0; }
.sidebar-nav li { margin-bottom: .15rem; }
.nav-section {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.25);
    padding: 1rem .75rem .35rem;
    margin-bottom: 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .65rem .9rem;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.sidebar-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); }
.sidebar-link.active { background: var(--primary); color: var(--secondary); font-weight: 700; }
.sidebar-link-danger:hover { background: rgba(220,38,38,.2); color: #FCA5A5; }

/* Main */
.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Top bar */
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-topbar .breadcrumb { font-size: .85rem; }
.admin-topbar .breadcrumb-item a { color: var(--primary); }

.sidebar-toggle { display: none; }

/* Content */
.admin-content { padding: 1.75rem; flex: 1; }

/* Cards */
.admin-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 0;
}
.admin-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #FAFAFA;
}
.admin-card-header h5 { font-size: .97rem; font-weight: 700; color: var(--secondary); }
.admin-card-body { padding: 1.5rem; }

/* Stat Cards */
.stat-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.stat-card-primary  { background: linear-gradient(135deg, #1A1A1A, #2D2D2D); border-left: 4px solid var(--primary); color: var(--primary); }
.stat-card-success  { background: linear-gradient(135deg, #16A34A, #22C55E); }
.stat-card-warning  { background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--secondary); }
.stat-card-info     { background: linear-gradient(135deg, #0284C7, #38BDF8); }
.stat-card-icon { font-size: 2.5rem; opacity: .85; }
.stat-card-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat-card-label { font-size: .78rem; opacity: .75; text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }

/* Tables */
.admin-table thead th {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    background: #FAFAFA;
    border-bottom: 1px solid var(--border);
    padding: .75rem 1rem;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: .75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #FAFAFA; }

.table-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.table-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #CBD5E1;
    flex-shrink: 0;
}

/* Forms */
input[type="text"],
input[type="search"] { text-transform: uppercase; }
input[type="text"]::placeholder,
input[type="search"]::placeholder { text-transform: none; }

.form-section { background: #FAFAFA; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.5rem; }
.form-section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1.25rem; }
.form-label.required::after { content: ' *'; color: var(--danger); }

.gallery-manage-item { text-align: center; }
.gallery-manage-item img { width: 100%; height: 60px; object-fit: cover; border-radius: 6px; }

/* Summary List */
.summary-list { }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.summary-item:last-child { border-bottom: none; }
.summary-item span { color: var(--text-muted); }

/* Badges */
.bg-success-soft { background: #DCFCE7 !important; }
.bg-danger-soft  { background: #FEE2E2 !important; }

/* Category icon (admin table) */
.category-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-light);
    color: #7A5500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 199;
    display: none;
}
.sidebar-overlay.show { display: block; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* =========================================================
   RESPONSIVE — ADMIN
   ========================================================= */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
    .admin-content { padding: 1rem; }
    .login-card { padding: 2rem 1.5rem; }
}

/* =========================================================
   RESPONSIVE — PUBLIC SITE
   ========================================================= */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; }

/* Bootstrap missing utility */
@media (min-width: 576px) { .w-sm-auto { width: auto !important; } }

/* ---- Tablet (≤992px) ---- */
@media (max-width: 992px) {
    .section-padded { padding: 3.5rem 0; }

    /* Search bar full width when nav is open */
    .search-wrapper { width: 100%; margin-top: .5rem; }
    .search-input   { width: 100% !important; }

    /* Hero: hide illustration column, center content */
    .hero-content { padding: 3rem 0 2rem; text-align: center; }
    .hero-subtitle { max-width: 100%; margin: 0 auto; }
    .hero-verse    { text-align: left; display: inline-block; }
    .hero-illustration { display: none; }

    /* Stats: 2 columns */
    .stats-bar .row > [class*="col"] { flex: 0 0 50%; max-width: 50%; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,.1); }
    .stat-item:last-child { border-bottom: none; }

    /* Machine detail: gallery unsticky */
    .machine-gallery { position: static; }
    .gallery-main-img { height: 300px; }

    /* CTA banner */
    .cta-banner { padding: 3rem 0; text-align: center; }
    .cta-banner .d-flex { justify-content: center !important; }
}

/* ---- Mobile (≤576px) ---- */
@media (max-width: 576px) {
    .section-padded { padding: 2.5rem 0; }
    .section-header { margin-bottom: 1.75rem; }

    /* Hero */
    .hero-content { padding: 2rem 0 1.5rem; }
    .hero-title   { font-size: clamp(1.7rem, 9vw, 2.5rem); margin: .5rem 0 1rem; }
    .hero-subtitle { font-size: .95rem; }
    .hero-badge   { font-size: .72rem; }


    /* Stats: 1 column */
    .stats-bar .row > [class*="col"] { flex: 0 0 100%; max-width: 100%; }

    /* Section title */
    .section-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }

    /* Machine cards: full width */
    .machine-card-img { height: 190px; }

    /* Machine detail */
    .gallery-main-img  { height: 240px; padding: 8px; }
    .gallery-thumb     { width: 58px; height: 58px; }
    .machine-detail-name { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    .whatsapp-cta-box  { padding: 1rem; }

    /* Page header */
    .page-header { padding: 1.75rem 0 1.5rem; }
    .page-header-title { font-size: clamp(1.2rem, 6vw, 1.8rem); }

    /* CTA banner */
    .cta-banner { padding: 2.5rem 0; }
    .cta-title  { font-size: clamp(1.5rem, 7vw, 2.2rem); }
    .cta-banner .btn { width: 100%; justify-content: center; }
    .cta-banner .d-flex.gap-3 { flex-direction: column !important; align-items: stretch !important; gap: .75rem !important; }

    /* Footer */
    .footer-top { padding: 2.5rem 0 2rem; }
    .footer-brand { justify-content: center; margin-bottom: .5rem; }
    .footer-desc, .footer-verse { text-align: center; }
    .footer-social { justify-content: center; }
    .footer-top .col-lg-4,
    .footer-top .col-lg-2 { text-align: center; }
    .footer-contact li { justify-content: center; }

    /* Filter bar wraps properly */
    .category-pills { gap: .35rem; }
    .category-pill  { font-size: .73rem; padding: .3rem .65rem; }

    /* Why cards padding */
    .why-card { padding: 1.5rem 1.25rem; }

    /* Category cards: 2 per row already via Bootstrap, just reduce padding */
    .category-card { padding: 1rem .5rem; }
    .category-icon { width: 44px; height: 44px; font-size: 1.2rem; }
    .category-name { font-size: .78rem; }
}
