/**
 * File: public/assets/css/theme.css
 * Purpose: EPM brand theme - color palette, navbar/footer styling, and
 *          uniform layout rules shared by every page.
 * Version:  3.6 - 2026-11-06 (r151) - Menu bar on laptops (992-1399 px): labels on one line, smaller padding, no menu icons; less empty space between page sections (r151).
 *           3.5 - 2026-09-29 (Plans table) - "Plans & Pricing" table on
 *          /services.php (.epm-plans-*): gold-bordered card like the
 *          other cards, pastel-green header row, VIP row tinted gold,
 *          green/gold/grey state icons; on phones and tablets (<992px)
 *          every plan
 *          becomes a stacked card with the column name beside each
 *          value (td[data-label]).
 * Previous: 3.4 - 2026-09-29 (WhatsApp support) - Floating "Chat with
 *          us" button (.epm-wa-float): WhatsApp green #25D366 pill with
 *          dark-green text (7.8:1), icon-only on phones; the footer gets
 *          extra bottom padding while the button is shown so it never
 *          covers the copyright line.
 * Previous: 3.3 - 2026-09-29 (FAQ module) - Styles for the FAQ page
 *          accordion (.epm-faq): card-style surface, gold border and
 *          1rem radius like every other card, pastel-green open state,
 *          chevrons redrawn in the theme's pastel greens (Bootstrap's
 *          dark-mode default is blue), answer paragraphs spaced.
 * Previous: 3.2 - 2026-09-29 (UI) - Homepage category cards: label and
 *          icon green lightened to a much paler pastel per user ("kategori
 *          kartindaki yesil renk yazi tonu cok daha acik pastel
 *          olmali"): label #8ED9A8 -> #D6F0DE, icon -> #C3E8CF, hover
 *          #F2FAF4 / #E4F6EA. Scoped to a.epm-card (only used by the
 *          index.php category grid), other links unchanged.
 *          Also fixed a pre-existing horizontal page scroll at tablet
 *          widths: the footer email address overflowed its col-md-3
 *          (.epm-footer-text now overflow-wrap:anywhere).
 * Previous: 3.1 - 2026-09-29 (UI) - Text colors softened to a very
 *          light, low-saturation pastel green per user ("yazi fontlari
 *          goz yoruyor: cok acik yesil pastel ton olmali"). The v3.0
 *          mint #B8F5C8 was highly saturated and read as glaring on
 *          the dark background. New: text #DCEEDF, headings #EDF7EF,
 *          muted #A8C7B0, links #8ED9A8 / hover #B5EBC6 (links and
 *          green-as-text accents softened too, so no saturated neon
 *          green text remains), input placeholder #8DAF96. Background,
 *          cards, logo and fonts unchanged (user approved them).
 * Previous: 3.0 - 2026-09-29 (UI) - Site-wide DARK FOREST theme per
 *          user: "tum sayfalarda sitenin arka planini cok koyu yesil
 *          yapalim ve font renkleri de acik yesil olsun" (palette
 *          "Orman gecesi", scope "Hepsi koyu"). header.php sets
 *          <html data-bs-theme="dark">; the new block at the END of
 *          this file re-points Bootstrap 5.3 dark-mode variables and
 *          the --epm-* tokens: page #0B2A1A, cards #123A25, text
 *          #B8F5C8 (~12:1), headings #D8FBE0, muted #88C29D, links
 *          #5FE08F. Navbar/footer #071D11, forms/tables/badges/
 *          modals dark. Gold/green/PCB-blue brand fills unchanged;
 *          new text-only tokens --epm-green-text / --epm-pcb-blue-
 *          text brighten those hues when used as TEXT on dark (plain
 *          #00A650/#1668B3 text would be ~3:1/2.6:1). Inline hex
 *          colors in page templates now use these tokens.
 * Previous: 2.4 - 2026-09-29 (UI) - Mobile hamburger menu ("sandvic
 *          menu") stacked all 9 items (7 nav links + Login + Register)
 *          one-per-row, full width, pushing page content ~800px down -
 *          "dikey olarak asagi gitmesin cok yer kapliyor" per the user.
 *          Root cause: Bootstrap's default .navbar-nav is
 *          flex-direction:column below the lg breakpoint (this navbar
 *          uses navbar-expand-lg), and each .nav-link/.btn stretches
 *          to fill that column's full width. Fix: new media query
 *          (max-width: 991.98px, matching navbar-expand-lg's own
 *          collapse breakpoint) scoped to .epm-navbar .navbar-nav
 *          only, switching flex-direction to row + flex-wrap: wrap,
 *          so items flow horizontally as compact pill/chip links and
 *          wrap onto the next row only when they run out of
 *          horizontal space, per "yatayda ilerlesin yer yoksa alt
 *          satira gecsin". Scoped the Register button override to
 *          .epm-navbar .navbar-nav .btn.epm-btn-primary specifically
 *          (not the bare .btn.epm-btn-primary class), since that class
 *          is shared by 30+ buttons across the site (Search, Log in,
 *          Post RFQ, Save Name, etc.) that must stay untouched. Result:
 *          mobile menu height dropped from ~800px to ~380px for the
 *          same 9 items; desktop (>=992px) nav completely unaffected.
 * Previous: 2.3 - 2026-09-29 (UI) - Mobile viewport had zero left/right
 *          breathing room on every page ("cep telefonunda sagda da
 *          solda da hic bosluk yok"). Root cause: .container (Bootstrap)
 *          and .epm-section (custom) are combined on the same element
 *          site-wide (class="container epm-section"), both single-class
 *          selectors of equal specificity, and .epm-section's shorthand
 *          `padding: 3rem 0;` (loaded after Bootstrap) zeroed out
 *          Bootstrap's own responsive horizontal container gutter at
 *          every breakpoint. Fix: split the shorthand into
 *          padding-top/padding-bottom only, leaving left/right padding
 *          untouched so Bootstrap's container gutter applies normally
 *          again (12px+ on mobile, scaling up at wider breakpoints).
 *          Verified via getComputedStyle on .container.epm-section at
 *          375px (12px/12px, was 0/0) and 1280px (unchanged, 12px +
 *          auto-centering margins). Confirmed via grep that every page
 *          site-wide uses the same "container epm-section" pattern, so
 *          no page relied on the zeroed padding for a full-bleed look.
 * Previous: 2.2 - 2026-09-29 (UI) - Still not right per the user: the
 *          mark needed to be screen-width sized (95vw, capped at
 *          1400px) and much fainter (opacity: 0.03, i.e. exactly the
 *          3% the user asked for - applied as a plain CSS opacity on
 *          the pseudo-element itself now, not baked into the PNG, so
 *          the percentage is exact and not compounded with the
 *          asset-level baked opacity from v3). Swapped the image
 *          source from watermark-tile-v3.png (192px, ~15% baked) to
 *          favicon-512.png (256px, full opacity) - cleaner at this
 *          much larger render size. Also tried z-index:-1 (true
 *          behind-content) per "arka planda olacak" - confirmed via
 *          screenshot this reintroduces the ORIGINAL failure mode
 *          (completely invisible on the homepage, hidden behind the
 *          hero card's opaque fill, exactly like the very first
 *          background-attachment:fixed attempt documented below).
 *          Reverted to z-index:1 (overlay above content) - at 3%
 *          opacity this still reads visually as a background wash,
 *          not a solid sticker, while staying guaranteed-visible on
 *          every page regardless of what opaque cards sit under it.
 * Previous: 2.1 - 2026-09-29 (UI) - User clarified further: the mark
 *          should not sit in a corner - it should be large, centered,
 *          "siluet" (silhouette)-like, sized to the screen, and still
 *          fixed in place while the page scrolls. Kept the same
 *          overlay mechanism (body.epm-body::after, position:fixed,
 *          pointer-events:none - still necessary, see 2.0's notes
 *          below on why a background-image gets hidden behind opaque
 *          cards), but moved it to dead-center (top/left 50% +
 *          translate(-50%, -50%)) and sized it with vmin units
 *          (60vmin, both width and height) instead of a fixed pixel
 *          corner badge, so it scales with the viewport automatically
 *          - no separate mobile breakpoint override needed any more;
 *          vmin already handles it. Same asset, same ~15% baked
 *          opacity.
 * Previous: 2.0 - 2026-09-29 (UI) - User said the tiled/repeating
 *          watermark looked like "too many logos" crowding the bottom
 *          of long pages, and asked for exactly ONE logo that stays
 *          fixed in place (no sliding/scrolling, no repetition).
 *          First attempt: background-repeat:no-repeat +
 *          background-attachment:fixed + background-position:center on
 *          body.epm-body/.epm-section - rejected during this session's
 *          own testing, because a background-image sits BEHIND an
 *          element's own content, so on most pages the fixed mark
 *          landed right under an opaque Bootstrap card/section fill
 *          and simply disappeared (confirmed via computed-style +
 *          elementFromPoint checks in the browser: the homepage hero
 *          card alone hid it completely). Final approach: a single
 *          body.epm-body::after overlay, position:fixed to a bottom-
 *          right viewport corner, pointer-events:none, painted ABOVE
 *          normal page content instead of behind it (no explicit
 *          z-index needed - a positioned element with z-index:auto
 *          already paints above static-flow siblings per normal CSS
 *          stacking rules, and this project's own CSS has no
 *          conflicting z-index to worry about). Guaranteed visible on
 *          every page, in the same screen spot, never repeated.
 *          Removed the separate .epm-footer::after corner mark - it
 *          was a second, distinct watermark instance. No new asset
 *          generated; reused watermark-tile-v3.png (~15% baked
 *          opacity) unchanged.
 * Previous: 1.9 - 2026-09-29 (UI) - 4% (1.8) was STILL reported as
 *          completely invisible ("hicbir sey yok"). Server-side checks
 *          ruled out every deployment/caching explanation (no CDN in
 *          front of this origin - server responds directly as LiteSpeed,
 *          no cf-cache-status header; HTML is no-store/no-cache; the
 *          asset's own headers confirm the correct, current file and
 *          size is what's actually being served publicly). So this is a
 *          genuine perceptibility problem, not a bug: the tile's detail
 *          (small "EPM" text inside a 192px mark) needs far more than
 *          4% contrast to read as a recognizable shape on a real screen,
 *          even though 4% was clearly visible in this session's own
 *          screenshot-based checks (JPEG recompression in that pipeline
 *          exaggerates subtle contrast and is not a reliable proxy for
 *          what a real display shows). Bumped straight to the "strong
 *          (~15%)" option offered earlier rather than continuing to
 *          guess in small steps. New filename again (watermark-tile-v3.png)
 *          for the same cache-safety reason as 1.8.
 * Previous: 1.8 - 2026-09-29 (UI) - Watermark still read as imperceptible
 *          after 1.7's visibility fix, even though it was genuinely
 *          compositing. Root cause: the source image (favicon-192.png)
 *          is a fully OPAQUE square icon with no transparent background
 *          of its own, so baking "~2% of the source's own opacity" into
 *          every pixel produced a uniformly near-invisible tint with no
 *          shape contrast to speak of. Regenerated the tile at ~4%
 *          (watermark-tile-v2.png, same bake-alpha-into-the-PNG technique,
 *          see gen script in project history) per explicit user choice
 *          ("cok hafif ~%4") after being shown the 2%/4%/8%/15% options.
 *          New filename (not an in-place overwrite) so every viewer gets
 *          the new asset immediately regardless of the 7-day Cache-Control
 *          on /assets/img/*.
 * Previous: 1.7 - 2026-09-29 (UI) - Fixed the sitewide background
 *          watermark actually being invisible on almost every page:
 *          .epm-section (the pastel-green content wrapper used by the
 *          homepage, search, RFQ, login, register, contact, sell, vip,
 *          order/company/rfq views, etc.) paints a fully opaque
 *          background-color over nearly the entire page, so the single
 *          non-repeating watermark instance on <body> - positioned at a
 *          fixed "center 420px" - sat behind that opaque layer and was
 *          never actually visible except in one 48px gap above the
 *          footer. Switched both body.epm-body and .epm-section from a
 *          single positioned instance to a small repeating tile at its
 *          native 192x192 size, and added the same background-image to
 *          .epm-section directly (layered over its existing
 *          background-color) so the mark is now visible in the actual
 *          visible page background on every page, not just in
 *          theoretical transparent gaps. Cards (.epm-card), the navbar
 *          and the footer keep their own clean, unwatermarked fills -
 *          only the page/section background carries the mark.
 * Previous: 1.6 - 2026-09-29 (UI) - Homepage hero is now its own .epm-card
 *          (gold border, pastel-green fill - same look as every other
 *          card on the site) instead of a plain gradient band; added an
 *          "Electronic Parts Market" brand heading (.epm-hero-brand, chip
 *          green, uses the shared display font) above the existing
 *          tagline; .epm-hero's own background/border-bottom was removed
 *          now that the card supplies the visual weight (avoids a double
 *          pastel-green wash - card fill + section gradient).
 * Previous: 1.5 - 2026-09-29 (UI) - All-page text set to pure black
 *          (--epm-text-dark changed from #1F2A24 to #000000, used almost
 *          everywhere via the shared variable); nav/footer-link icons and
 *          two company-profile label icons (i.bi) now explicitly colored
 *          PCB blue (var(--epm-pcb-blue), previously just inherited the
 *          link's own text color); added a faint sitewide background
 *          watermark (watermark-tile.png, a single non-repeating brand
 *          mark with ~2% opacity BAKED into its own pixel alpha - see
 *          the comment above body.epm-body for why, and why it is NOT a
 *          position:fixed/absolute ::before pseudo-element).
 * Previous: 1.4 - 2026-09-29 (UI) - Added Alumni Sans Pinstripe as a
           display-only heading font, scoped to Bootstrap's .display-1..6
           utility classes only (currently just the homepage hero title).
           Not applied to body text, nav, forms or h1/h3/h4 page titles -
           those often carry dynamic data (order #, RFQ title, company
           name) that must stay readable; verified illegible at 16px.
 * Previous: 1.3 - 2026-09-29 (UI) - Site-wide font changed to Chakra Petch
           (self-hosted) for an electronics/digital-tech look; overrides both
           body font-family and Bootstrap's --bs-body-font-family/--bs-font-sans-serif
           variables so nav, buttons, forms and cards all inherit it.
 * Previous: 1.2 - 2026-09-28 (FAZ 9.2) - Added .epm-badge-icon for the
           company verification badge <img> tags.
 * Previous: 1.1 - 2026-09-28 (FAZ 9.1) - Replaced .epm-brand-mark text
 *          badge with .epm-logo-img for the new logo asset.
 * Previous: 1.0 - 2026-09-22 (FAZ 1.1)
 */
:root {
    --epm-green: #00A650;
    --epm-green-dark: #00873F;
    --epm-gold: #D4AF37;
    --epm-bg-pastel-green: #F0F7F0;
    --epm-bg-cream: #FAF6EC;
    --epm-text-dark: #000000;
    --epm-border: #E3E0D4;
    --epm-font-primary: 'Chakra Petch', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --epm-font-display: 'Alumni Sans Pinstripe', var(--epm-font-primary);
    --bs-font-sans-serif: var(--epm-font-primary);
    --bs-body-font-family: var(--epm-font-primary);
}

/* Site-wide watermark - see the body.epm-body::after rule further
   below (right after this body.epm-body block) for the single,
   large, centered, fixed-position mark. body.epm-body/.epm-section
   themselves carry no watermark background any more - see the
   version-2.0/2.1 changelog above for why a background-image approach
   was rejected in favor of a fixed overlay. */
body.epm-body {
    background-color: var(--epm-bg-cream);
    color: var(--epm-text-dark);
    font-family: var(--epm-font-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* The one and only site-wide watermark mark: fixed to the viewport's
   bottom-right corner, painted as an overlay ABOVE normal page
   content (pointer-events:none, so it never intercepts clicks) so it
   stays visible on every page regardless of what cards/sections sit
   underneath. ~15% opacity is baked into watermark-tile-v3.png itself. */
body.epm-body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    height: 95vw;
    max-width: 1400px;
    max-height: 1400px;
    background: url('/assets/img/favicon-512.png') no-repeat center / contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Decorative display font - scoped ONLY to Bootstrap .display-1..6 utility
   classes (large marketing/hero headings). Never applied to body text, nav,
   forms, or plain h1/h3/h4 page titles, which often show dynamic data. */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--epm-font-display);
}

.epm-main {
    flex: 1 0 auto;
}

.epm-navbar {
    background-color: #ffffff;
    border-bottom: 3px solid var(--epm-green);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.epm-brand {
    font-weight: 700;
    color: var(--epm-text-dark) !important;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.epm-logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.epm-navbar .nav-link {
    color: var(--epm-text-dark);
    font-weight: 500;
}

.epm-navbar .nav-link.active,
.epm-navbar .nav-link:hover {
    color: var(--epm-green);
}

/* Mobile menu (below lg): items flow horizontally as pill/chip links
   and wrap to the next row instead of stacking one-per-row full width,
   which pushed page content far down the screen. */
@media (max-width: 991.98px) {
    .epm-navbar .navbar-collapse {
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
    }

    .epm-navbar .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 0.4rem;
    }

    .epm-navbar .navbar-nav .nav-link {
        padding: 0.4rem 0.75rem;
        border-radius: 999px;
        background-color: var(--epm-bg-pastel-green);
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .epm-navbar .navbar-nav .nav-link.active,
    .epm-navbar .navbar-nav .nav-link:hover {
        background-color: var(--epm-green);
        color: #fff;
    }

    .epm-navbar .navbar-nav .btn.epm-btn-primary {
        border-radius: 999px;
        font-size: 0.9rem;
    }
}

.btn.epm-btn-primary {
    background-color: var(--epm-green);
    border-color: var(--epm-green);
    color: #fff;
    font-weight: 600;
}

.btn.epm-btn-primary:hover {
    background-color: var(--epm-green-dark);
    border-color: var(--epm-green-dark);
    color: #fff;
}

.btn.epm-btn-gold {
    background-color: var(--epm-gold);
    border-color: var(--epm-gold);
    color: var(--epm-text-dark);
    font-weight: 600;
}

.epm-section {
    background-color: var(--epm-bg-pastel-green);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.epm-card {
    background: #fff;
    border: 1px solid var(--epm-border);
    border-radius: .5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.epm-footer {
    background-color: #17301F;
    color: #E7ECE8;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
    flex-shrink: 0;
}

.epm-footer h5,
.epm-footer h6 {
    color: #fff;
}

.epm-footer-text {
    color: #C7D2C9;
    /* v3.2: long unbreakable strings (support@electronicpartsmarket.com)
       overflowed the narrow col-md-3 at tablet widths (~768-990px)
       and caused horizontal page scroll. */
    overflow-wrap: anywhere;
}

.epm-footer-links li {
    margin-bottom: .4rem;
}

.epm-footer-links a {
    color: #C7D2C9;
    text-decoration: none;
}

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

/* FAZ 3.1 additions - hero section + accent badge
   FAZ 9.10 update: the hero is now its own .epm-card (see index.php)
   with an "Electronic Parts Market" brand heading above the tagline,
   so the old gradient+border-bottom wrapper background was dropped here
   to avoid a double pastel-green wash (card fill + section gradient).
   .epm-section still supplies the outer vertical spacing; .epm-hero is
   kept as an empty hook in case a page-specific tweak needs it later. */
.epm-hero {
}

.epm-hero-card {
    max-width: 760px;
}

.epm-hero-brand {
    color: var(--epm-green);
}

.epm-badge-accent {
    background-color: var(--epm-gold, #D4AF37);
    color: #3a2f06;
    font-weight: 600;
}

/* FAZ 7.1 - admin panel: sub-nav tabs + KPI stat cards, reusing the
   same brand tokens as the rest of the site for a uniform look. */
.epm-admin-nav {
    border-bottom: 2px solid var(--epm-border);
    gap: 0.25rem;
}

.epm-admin-nav .nav-link {
    color: var(--epm-text-dark);
    font-weight: 600;
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.5rem 1rem;
}

.epm-admin-nav .nav-link.active {
    color: #ffffff;
    background-color: var(--epm-green);
}

.epm-admin-nav .nav-link:not(.active):hover {
    background-color: var(--epm-bg-pastel-green);
}

.epm-stat-card {
    background-color: #ffffff;
    border: 1px solid var(--epm-border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    height: 100%;
}

.epm-stat-card .epm-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--epm-green-dark);
}

.epm-stat-card .epm-stat-label {
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.epm-stat-card.epm-stat-gold .epm-stat-value {
    color: var(--epm-gold);
}

/* FAZ 9.2: supplier/buyer verification badge icons (admin list + order view). */
.epm-badge-icon {
    height: 22px;
    width: auto;
    vertical-align: text-bottom;
}

/* ================================================================
   UI/UX Overhaul (site-wide brand refresh) - unified card system,
   PCB-blue primary buttons, nav-link icon spacing, footer logo
   watermark. Extends the existing chip-green/gold tokens above
   (:root, line 11) rather than replacing them - green stays the
   accent/hover/link color, gold stays the card border + secondary
   button color, blue becomes the primary call-to-action color.
   New tokens:
     --epm-card-bg    : soft pastel-green card interior fill
     --epm-pcb-blue   : new "circuit board blue" primary CTA color
     --epm-pcb-blue-dark : hover/active shade of the above
     --epm-neon-green : hover glow accent, kept low-opacity so it
                        reads as a soft highlight, not a strobe
                        (site must stay easy on the eyes).
   .card is re-skinned via Bootstrap 5.3's own --bs-card-* CSS
   variables (not flat property overrides) so card-header/footer/
   img children keep correct rounded-corner clipping for free.
   .epm-card (this project's own simpler card class, used where a
   plain Bootstrap .card is not) is re-skinned directly with the
   same look, so every card-shaped block site-wide matches without
   any per-page markup changes.
   Version: 1.0 - 2026-09-29
   ================================================================ */
:root {
    --epm-card-bg: #EAF7EE;
    --epm-pcb-blue: #1668B3;
    --epm-pcb-blue-dark: #0F4C87;
    --epm-neon-green: #39FF8C;
    /* Text-only variants (v3.0): same hue as the fill tokens in light
       mode, brightened in dark mode for readable contrast. */
    --epm-green-text: #00A650;
    --epm-pcb-blue-text: #1668B3;
}

.card {
    --bs-card-border-color: var(--epm-gold);
    --bs-card-border-width: 2px;
    --bs-card-border-radius: 1rem;
    --bs-card-bg: var(--epm-card-bg);
    background-color: var(--epm-card-bg) !important;
    border: 2px solid var(--epm-gold) !important;
    border-radius: 1rem !important;
    box-shadow: 0 2px 6px rgba(31, 42, 36, .06) !important;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover {
    box-shadow: 0 10px 22px -6px rgba(57, 255, 140, .5), 0 2px 6px rgba(31, 42, 36, .06) !important;
    transform: translateY(-2px);
}

.epm-card {
    background: var(--epm-card-bg) !important;
    border: 2px solid var(--epm-gold) !important;
    border-radius: 1rem !important;
    box-shadow: 0 2px 6px rgba(31, 42, 36, .06) !important;
    transition: box-shadow .2s ease, transform .2s ease;
}
.epm-card:hover {
    box-shadow: 0 10px 22px -6px rgba(57, 255, 140, .5), 0 2px 6px rgba(31, 42, 36, .06) !important;
    transform: translateY(-2px);
}

/* Primary CTA buttons -> PCB blue (brand update). Overrides the
   earlier .btn.epm-btn-primary rule above via normal CSS cascade
   (same selector specificity, later in file wins) - every
   Register/Save/primary button site-wide picks this up from this
   one file, no per-page edits. Bootstrap's own .btn-primary is
   also retargeted via its CSS variables in case a page ever uses
   the plain Bootstrap class instead of .epm-btn-primary. */
.btn.epm-btn-primary {
    background-color: var(--epm-pcb-blue);
    border-color: var(--epm-pcb-blue);
    color: #fff;
}
.btn.epm-btn-primary:hover,
.btn.epm-btn-primary:focus {
    background-color: var(--epm-pcb-blue-dark);
    border-color: var(--epm-pcb-blue-dark);
    color: #fff;
}
.btn-primary {
    --bs-btn-bg: var(--epm-pcb-blue);
    --bs-btn-border-color: var(--epm-pcb-blue);
    --bs-btn-hover-bg: var(--epm-pcb-blue-dark);
    --bs-btn-hover-border-color: var(--epm-pcb-blue-dark);
    --bs-btn-active-bg: var(--epm-pcb-blue-dark);
    --bs-btn-active-border-color: var(--epm-pcb-blue-dark);
}

/* Nav-link / footer-link icon spacing (icons added directly in
   header.php and footer.php markup). */
.epm-navbar .nav-link i.bi,
.epm-footer-links a i.bi {
    margin-right: .35rem;
    color: var(--epm-pcb-blue-text);
}

/* Footer logo corner-mark removed in v2.0 (FAZ 9.13) - it was a
   second, distinct watermark instance, conflicting with the "exactly
   one logo" requirement. The single fixed mark (body.epm-body::after,
   declared right after the body.epm-body rule near the top of this
   file) is now the only watermark on the page, footer included - it
   is a fixed-viewport overlay centered on screen (see the version-2.1
   changelog above), so it still shows over the footer when scrolled
   to the bottom. */

/* ================================================================
   DARK FOREST THEME (v3.0, 2026-09-29) - site-wide very dark green
   background + light green text ("Orman gecesi" palette, "Hepsi
   koyu" scope: navbar, footer, cards, forms, tables, badges, modals
   all dark). header.php sets <html data-bs-theme="dark">, which turns
   on Bootstrap 5.3's built-in dark mode; this block re-points its
   variables and the project's --epm-* tokens at the brand greens, so
   every page follows from here with no per-page styling.
   Contrast (WCAG, v3.1 pastel text): text #DCEEDF on page #0B2A1A
   ~12.7:1, on cards #123A25 ~10:1; muted #A8C7B0 >= 5.5:1 (also on
   tinted boxes); links #8ED9A8 >= 6:1.
   ================================================================ */
:root[data-bs-theme="dark"] {
    --epm-dk-bg: #0B2A1A;
    --epm-dk-surface: #123A25;
    --epm-dk-surface-2: #0F3321;
    --epm-dk-tint: #1A4A30;
    --epm-dk-chrome: #071D11;
    --epm-dk-border: #24583A;
    --epm-dk-input-border: #2F6E4A;
    --epm-dk-text: #DCEEDF;
    --epm-dk-heading: #EDF7EF;
    --epm-dk-muted: #A8C7B0;
    --epm-dk-link: #8ED9A8;
    --epm-dk-link-hover: #B5EBC6;

    /* project tokens -> dark values */
    --epm-text-dark: var(--epm-dk-text);
    --epm-bg-pastel-green: var(--epm-dk-tint);
    --epm-bg-cream: var(--epm-dk-surface-2);
    --epm-card-bg: var(--epm-dk-surface);
    --epm-border: var(--epm-dk-border);
    --epm-green-text: var(--epm-dk-link);
    --epm-pcb-blue-text: #6CB4F5;

    /* Bootstrap 5.3 dark-mode variables */
    color-scheme: dark;
    --bs-body-bg: var(--epm-dk-bg);
    --bs-body-bg-rgb: 11, 42, 26;
    --bs-body-color: var(--epm-dk-text);
    --bs-body-color-rgb: 220, 238, 223;
    --bs-emphasis-color: var(--epm-dk-heading);
    --bs-emphasis-color-rgb: 237, 247, 239;
    --bs-heading-color: var(--epm-dk-heading);
    --bs-secondary-color: var(--epm-dk-muted);
    --bs-secondary-color-rgb: 168, 199, 176;
    --bs-secondary-bg: var(--epm-dk-surface);
    --bs-secondary-bg-rgb: 18, 58, 37;
    --bs-tertiary-color: rgba(220, 238, 223, 0.6);
    --bs-tertiary-bg: var(--epm-dk-surface-2);
    --bs-tertiary-bg-rgb: 15, 51, 33;
    --bs-border-color: var(--epm-dk-border);
    --bs-border-color-translucent: rgba(220, 238, 223, 0.15);
    --bs-link-color: var(--epm-dk-link);
    --bs-link-color-rgb: 142, 217, 168;
    --bs-link-hover-color: var(--epm-dk-link-hover);
    --bs-link-hover-color-rgb: 181, 235, 198;
    --bs-code-color: #F2C94C;
}

[data-bs-theme="dark"] body.epm-body {
    background-color: var(--epm-dk-bg);
    color: var(--epm-dk-text);
}

[data-bs-theme="dark"] .epm-section {
    background-color: var(--epm-dk-bg);
}

/* Navbar */
[data-bs-theme="dark"] .epm-navbar {
    background-color: var(--epm-dk-chrome);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
[data-bs-theme="dark"] .epm-navbar .nav-link {
    color: var(--epm-dk-text);
}
@media (min-width: 992px) {
    [data-bs-theme="dark"] .epm-navbar .nav-link.active,
    [data-bs-theme="dark"] .epm-navbar .nav-link:hover {
        color: var(--epm-dk-link-hover);
    }
}

/* Brand accents used as text */
[data-bs-theme="dark"] .epm-hero-brand {
    color: var(--epm-green-text);
}

/* v3.2: homepage category cards (the only clickable a.epm-card on the
   site, index.php) - label + icon in a much lighter pastel green than
   the link color. The icon's inline style reads var(--epm-green-text),
   so re-scoping that variable here recolors it without !important. */
[data-bs-theme="dark"] a.epm-card {
    --epm-green-text: #C3E8CF;
    color: #D6F0DE;
}
[data-bs-theme="dark"] a.epm-card:hover,
[data-bs-theme="dark"] a.epm-card:focus-visible {
    --epm-green-text: #E4F6EA;
    color: #F2FAF4;
}

/* Buttons: gold button keeps dark text (light green on gold would be
   unreadable); outline variants re-tuned for a dark background. */
[data-bs-theme="dark"] .btn.epm-btn-gold {
    color: #1A1405;
}
[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: var(--epm-dk-muted);
    --bs-btn-border-color: var(--epm-dk-input-border);
    --bs-btn-hover-color: var(--epm-dk-heading);
    --bs-btn-hover-bg: var(--epm-dk-tint);
    --bs-btn-hover-border-color: var(--epm-dk-muted);
    --bs-btn-active-color: var(--epm-dk-heading);
    --bs-btn-active-bg: var(--epm-dk-tint);
    --bs-btn-active-border-color: var(--epm-dk-muted);
    --bs-btn-disabled-color: var(--epm-dk-muted);
    --bs-btn-disabled-border-color: var(--epm-dk-input-border);
}
[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-color: #6CB4F5;
    --bs-btn-border-color: #6CB4F5;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--epm-pcb-blue);
    --bs-btn-hover-border-color: var(--epm-pcb-blue);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--epm-pcb-blue-dark);
    --bs-btn-active-border-color: var(--epm-pcb-blue-dark);
}
[data-bs-theme="dark"] .btn-outline-success {
    --bs-btn-color: var(--epm-dk-link);
    --bs-btn-border-color: var(--epm-dk-link);
    --bs-btn-hover-color: #06180E;
    --bs-btn-hover-bg: var(--epm-dk-link);
    --bs-btn-hover-border-color: var(--epm-dk-link);
    --bs-btn-active-color: #06180E;
    --bs-btn-active-bg: var(--epm-dk-link);
    --bs-btn-active-border-color: var(--epm-dk-link);
}
[data-bs-theme="dark"] .btn-outline-dark {
    --bs-btn-color: var(--epm-dk-text);
    --bs-btn-border-color: var(--epm-dk-text);
    --bs-btn-hover-color: #06180E;
    --bs-btn-hover-bg: var(--epm-dk-text);
    --bs-btn-hover-border-color: var(--epm-dk-text);
    --bs-btn-disabled-color: var(--epm-dk-muted);
    --bs-btn-disabled-border-color: var(--epm-dk-input-border);
}

/* Cards */
[data-bs-theme="dark"] .card {
    --bs-card-color: var(--epm-dk-text);
    --bs-card-cap-bg: rgba(0, 0, 0, 0.18);
    --bs-card-cap-color: var(--epm-dk-heading);
}
[data-bs-theme="dark"] .modal-content {
    --bs-modal-bg: var(--epm-dk-surface);
}

/* Admin KPI cards */
[data-bs-theme="dark"] .epm-stat-card {
    background-color: var(--epm-dk-surface);
}
[data-bs-theme="dark"] .epm-stat-card .epm-stat-value {
    color: var(--epm-dk-link);
}
[data-bs-theme="dark"] .epm-stat-card .epm-stat-label {
    color: var(--epm-dk-muted);
}

/* Footer */
[data-bs-theme="dark"] .epm-footer {
    background-color: var(--epm-dk-chrome);
    color: var(--epm-dk-text);
    border-top: 1px solid var(--epm-dk-border);
}
[data-bs-theme="dark"] .epm-footer h5,
[data-bs-theme="dark"] .epm-footer h6 {
    color: var(--epm-dk-heading);
}
[data-bs-theme="dark"] .epm-footer-text,
[data-bs-theme="dark"] .epm-footer-links a {
    color: var(--epm-dk-muted);
}
[data-bs-theme="dark"] .epm-footer-links a:hover {
    color: var(--epm-gold);
}

/* Forms */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--epm-dk-surface-2);
    border-color: var(--epm-dk-input-border);
    color: var(--epm-dk-heading);
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: var(--epm-dk-surface-2);
    border-color: var(--epm-green);
    color: var(--epm-dk-heading);
    box-shadow: 0 0 0 0.25rem rgba(0, 166, 80, 0.3);
}
[data-bs-theme="dark"] .form-control::placeholder {
    color: #8DAF96;
    opacity: 1;
}
[data-bs-theme="dark"] .form-check-input {
    background-color: var(--epm-dk-surface-2);
    border-color: var(--epm-dk-input-border);
}
[data-bs-theme="dark"] .form-check-input:checked {
    background-color: var(--epm-green);
    border-color: var(--epm-green);
}

/* Tables */
[data-bs-theme="dark"] .table {
    --bs-table-color: var(--epm-dk-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--epm-dk-border);
    --bs-table-striped-color: var(--epm-dk-text);
    --bs-table-striped-bg: rgba(220, 238, 223, 0.04);
    --bs-table-hover-color: var(--epm-dk-heading);
    --bs-table-hover-bg: rgba(220, 238, 223, 0.07);
}
[data-bs-theme="dark"] .table > thead {
    --bs-table-color: var(--epm-dk-heading);
}
[data-bs-theme="dark"] .table-light {
    --bs-table-color: var(--epm-dk-heading);
    --bs-table-bg: var(--epm-dk-surface-2);
    --bs-table-border-color: var(--epm-dk-border);
}

/* Light utility classes used in a few templates (rfq, rfq_view) */
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white {
    background-color: var(--epm-dk-surface-2) !important;
}
[data-bs-theme="dark"] .text-bg-light {
    background-color: var(--epm-dk-tint) !important;
    color: var(--epm-dk-heading) !important;
}

[data-bs-theme="dark"] ::selection {
    background-color: rgba(0, 166, 80, 0.45);
    color: #ffffff;
}

/* ================================================================
   FAQ page accordion (v3.3) - public/faq.php
   ================================================================ */
.epm-faq {
    --bs-accordion-bg: var(--epm-card-bg);
    --bs-accordion-border-color: var(--epm-gold);
    --bs-accordion-border-radius: 1rem;
    --bs-accordion-inner-border-radius: calc(1rem - 1px);
    --bs-accordion-btn-color: var(--bs-emphasis-color);
    --bs-accordion-active-color: var(--bs-emphasis-color);
    --bs-accordion-active-bg: var(--epm-bg-pastel-green);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(0, 166, 80, 0.3);
}
.epm-faq .accordion-button {
    font-weight: 600;
}
.epm-faq .accordion-body p:last-child {
    margin-bottom: 0;
}
/* Bootstrap 5.3 sets these two variables directly on
   [data-bs-theme=dark] .accordion-button::after, so they must be
   overridden on that same pseudo-element (not inherited from .epm-faq). */
[data-bs-theme="dark"] .epm-faq .accordion-button::after {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23DCEEDF' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B5EBC6' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

/* ================================================================
   WhatsApp live support button (v3.4) - footer.php, public pages
   ================================================================ */
.epm-wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background-color: #25D366;
    color: #0B2A1A;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.epm-wa-float i {
    font-size: 1.45rem;
    line-height: 1;
}
.epm-wa-float:hover,
.epm-wa-float:focus-visible {
    color: #0B2A1A;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.epm-footer:has(~ .epm-wa-float) {
    padding-bottom: 5.5rem;
}
@media (max-width: 575.98px) {
    .epm-wa-float {
        right: 1rem;
        bottom: 1rem;
        padding: 0.8rem;
    }
    .epm-wa-label {
        display: none;
    }
}

/* ================================================================
   Plans & Pricing table (v3.5) - public/services.php
   ================================================================ */
.epm-plans-card {
    border: 1px solid var(--epm-gold);
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--epm-card-bg);
}
.epm-plans-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
}
.epm-plans-table th,
.epm-plans-table td {
    padding: 0.9rem 1rem;
    min-width: 8.5rem;
    vertical-align: top;
}
.epm-plans-table thead th {
    --bs-table-bg: var(--epm-bg-pastel-green);
    color: var(--bs-emphasis-color);
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--epm-gold);
}
.epm-plans-table tbody th {
    min-width: 10rem;
    color: var(--bs-emphasis-color);
}
@media (min-width: 992px) {
    .epm-plans-table tbody tr:last-child > * {
        border-bottom: 0;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .epm-plans-table th,
    .epm-plans-table td {
        padding: 0.75rem 0.6rem;
    }
}
.epm-plans-table .epm-plan-vip > * {
    --bs-table-bg-type: rgba(212, 175, 55, 0.10);
}
.epm-plan-cell {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}
.epm-plan-state {
    flex: 0 0 auto;
    font-size: 1.1rem;
    line-height: 1.3;
}
.epm-plan-yes {
    color: var(--epm-green-text);
}
.epm-plan-partial {
    color: var(--epm-gold);
}
.epm-plan-no {
    color: var(--bs-secondary-color);
}
.epm-plan-price {
    font-size: 1.1rem;
    white-space: nowrap;
    color: var(--bs-emphasis-color);
}
.epm-plan-badge {
    background-color: var(--epm-gold);
    color: #0B2A1A;
}
@media (max-width: 991.98px) {
    .epm-plans-card {
        border: 0 !important;
        border-radius: 0;
        overflow: visible;
        background: transparent !important;
        box-shadow: none !important;
    }
    .epm-plans-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .epm-plans-table,
    .epm-plans-table tbody,
    .epm-plans-table tr,
    .epm-plans-table th,
    .epm-plans-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }
    .epm-plans-table tbody tr {
        margin-bottom: 1rem;
        border: 1px solid var(--epm-gold);
        border-radius: 1rem;
        overflow: hidden;
        background-color: var(--epm-card-bg);
    }
    .epm-plans-table tbody th {
        --bs-table-bg: var(--epm-bg-pastel-green);
        min-width: 0;
        border-bottom: 1px solid var(--epm-gold);
    }
    .epm-plans-table tbody td {
        display: grid;
        grid-template-columns: 7.5rem 1fr;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .epm-plans-table tbody td::before {
        content: attr(data-label);
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--bs-emphasis-color);
    }
    .epm-plans-table tbody tr > *:last-child {
        border-bottom: 0;
    }
}

/* r87 2026-10-29 - member reports: readable dropdown lists and light badges in dark mode.
   The open list of a <select> showed the highlighted option as light text on light blue. */
[data-bs-theme="dark"] .form-select { color-scheme: light; }
[data-bs-theme="dark"] .form-select option,
[data-bs-theme="dark"] .form-select optgroup { color: #13261a; background-color: #ffffff; }
[data-bs-theme="dark"] .form-select option:checked { color: #ffffff; background-color: #00A650; }
[data-bs-theme="dark"] .form-select option:disabled { color: #6c7a70; }
/* "Not verified" and other text-bg-light badges were dark-on-dark in some cards */
[data-bs-theme="dark"] .badge.text-bg-light {
    color: var(--epm-dk-heading, #eaf5ee) !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* r92 (2026-10-29): home page while the market has no listings - hide the 0 RFQ / 0 Offer counters */
.epm-market-empty .epm-cat-card .badge.rounded-pill { display: none !important; }
.epm-how .epm-how-step { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .85rem; }
.epm-how .epm-how-no { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: #00a650; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
/* r133: rows / list lines that open an RFQ or an offer */
[data-href] { cursor: pointer; }
tr[data-href]:hover > td, li[data-href]:hover { background-color: rgba(0, 166, 80, .10) !important; }
tr[data-href] a:not(.btn), li[data-href] a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
/* r138: phones - stock offers and RFQ market as cards instead of a squeezed table */
@media (max-width: 575.98px) {
    table.epm-offer-list thead, table.epm-rfq-market thead { display: none; }
    table.epm-offer-list tbody tr, table.epm-rfq-market tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding: .8rem .75rem; border-bottom: 1px solid rgba(127, 127, 127, .25); }
    table.epm-offer-list tbody td, table.epm-rfq-market tbody td { border: 0 !important; padding: 0 !important; text-align: left !important; background: transparent !important; }
    table.epm-offer-list tbody td:first-child, table.epm-rfq-market tbody td:first-child { flex: 1 0 100%; font-size: 1.05rem; }
    table.epm-offer-list td[data-label]::before, table.epm-rfq-market td[data-label]::before { content: attr(data-label) " "; opacity: .7; font-weight: 400; }
    table.epm-offer-list td.epm-m-act, table.epm-rfq-market td.epm-m-act { flex: 1 0 100%; }
    table.epm-offer-list td.epm-m-act .btn { width: 100%; padding: .55rem; }
    table.epm-rfq-market td.epm-m-act form { width: 100%; }
    table.epm-rfq-market td.epm-m-act input[name="price"] { flex: 1 1 auto; width: auto !important; }
}

/* r151 2026-11-06 - menu bar on laptops: the menu items no longer break into two or three lines ("About us",
   "Companies", "Login", "Register" were 2-3 lines high between 992 px and 1199 px, for members up to 1399 px,
   and the admin menu ran out of the page). Labels stay on one line; between 992 px and 1399 px the padding and
   font are a little smaller and the menu icons are hidden. */
@media (min-width: 992px) {
    .epm-navbar .navbar-nav .nav-link,
    .epm-navbar .navbar-nav .btn { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .epm-navbar .navbar-nav .nav-link > i.bi,
    .epm-navbar .navbar-nav .btn > i.bi { display: none; }
    .epm-navbar .navbar-nav .nav-link { padding-left: .42rem; padding-right: .42rem; font-size: .93rem; }
    .epm-navbar .navbar-nav .btn { font-size: .93rem; padding-left: .7rem; padding-right: .7rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .epm-navbar .navbar-nav .nav-link { padding-left: .34rem; padding-right: .34rem; font-size: .88rem; }
    .epm-navbar .epm-logo-img { height: 36px; }
}

/* r151 2026-11-06 - less empty space between the page sections: two sections in a row no longer add up their
   padding (6rem gap on the home page), and on phones a section has 1.75rem above and below instead of 3rem. */
.epm-section + .epm-section { padding-top: 0; }
@media (max-width: 767.98px) {
    .epm-section { padding-top: 1.75rem; padding-bottom: 1.75rem; }
    .epm-section + .epm-section { padding-top: 0; }
}
