/* =====================================================================
   style.css  —  All the styling for Matts 3D Printing
   ---------------------------------------------------------------------
   THEME:  dark "maker lab" look
   COLORS: black background  +  green & blue accents
   FONTS:  Fredoka (fun headings)  +  DM Sans (clean body text)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1) COLOR VARIABLES  ("paint cans")
   Define a color once here, then reuse it with var(--name).
   Change it here and it updates across the WHOLE site. Magic! ✨
--------------------------------------------------------------------- */
:root {
    --black:  #0d1117;   /* deep, almost-black page background     */
    --panel:  #161b22;   /* cards & bars (a little lighter)         */
    --line:   #232a33;   /* thin border lines                      */
    --green:  #2ee6a6;   /* bright "filament" green  (main accent)  */
    --blue:   #3da9fc;   /* electric blue            (2nd accent)   */
    --white:  #e6edf3;   /* soft white for text                    */
    --gray:   #8b949e;   /* muted gray for less-important text      */
    --radius: 14px;      /* roundness of corners                   */
    --maxw:   1100px;    /* how wide the content can stretch        */
}

/* 🌞 LIGHT MODE — same variable NAMES (so nothing else has to change),
   just different VALUES. Toggled by the sun/moon button in the header
   which sets data-theme="light" on the <html> element. */
:root[data-theme="light"] {
    --black:  #f6f8fa;
    --panel:  #ffffff;
    --line:   #d0d7de;
    --green:  #1aab7a;
    --blue:   #1f7ad8;
    --white:  #1f2328;       /* primary text color (NOT actually white anymore!) */
    --gray:   #6e7781;
}
/* In light mode, the frosted header needs a light tint instead of dark */
:root[data-theme="light"] .site-header {
    background: rgba(246, 248, 250, 0.85);
}
/* The dotted-line "free shipping unlocked" panel needs a touch more contrast */
:root[data-theme="light"] .free-ship-bar.unlocked {
    background: rgba(46, 230, 166, 0.08);
}

/* ---------------------------------------------------------------------
   2) RESET  —  make every browser start from the same place
--------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--white);
    background-color: var(--black);
    line-height: 1.6;

    /* Faint horizontal lines, like the layers of a 3D print 🧵 */
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.018) 0,
        rgba(255, 255, 255, 0.018) 1px,
        transparent 1px,
        transparent 30px
    );
}

h1, h2, h3, .logo-text { font-family: 'Fredoka', sans-serif; font-weight: 600; }
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* A reusable centered, width-limited container */
.header-inner,
.footer-inner,
.page-content {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

/* ---------------------------------------------------------------------
   3) HEADER + NAVIGATION  (the bar at the top of every page)
--------------------------------------------------------------------- */
.site-header {
    position: sticky;            /* stays stuck to the top as you scroll */
    top: 0;
    z-index: 50;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(8px);  /* frosted-glass blur behind the bar */
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;   /* logo left, menu right */
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---- Logo (top left) ---- */
.logo { display: flex; align-items: center; gap: 10px; }

.logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    /* green-to-blue gradient = our two brand colors blended */
    background: linear-gradient(135deg, var(--green), var(--blue));
    box-shadow:
        0 0 22px rgba(46, 230, 166, 0.35),  /* soft green outer glow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);   /* subtle edge highlight */
}

.logo-text { font-size: 1.15rem; letter-spacing: 0.3px; color: var(--white); }
.logo-text strong { color: var(--green); }   /* make the "3D" pop */

/* ---- Menu links ---- */
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.main-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--white); background: var(--panel); }

/* The page you're on gets a green highlight */
.main-nav a.active { color: var(--green); background: rgba(46, 230, 166, 0.12); }

/* ---------------------------------------------------------------------
   4) PAGE CONTENT spacing
--------------------------------------------------------------------- */
.page-content {
    padding-top: 56px;
    padding-bottom: 80px;
    min-height: 62vh;   /* keeps the footer near the bottom on short pages */
}

/* ---------------------------------------------------------------------
   5) HERO  (the big welcome area on the homepage)
--------------------------------------------------------------------- */
.hero { text-align: center; padding-top: 20px; }

.hero .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);  /* grows/shrinks with screen size */
    line-height: 1.05;
    margin-bottom: 18px;
}
.hero h1 .pop {
    /* gradient-colored text for the exciting words */
    background: linear-gradient(135deg, var(--green), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--gray);
    font-size: 1.1rem;
}

/* ✨ Trust strip under the hero CTAs — quick credibility badges that say
   "this is a real person, in a real place, who'll take care of you". */
.trust-strip {
    list-style: none;
    padding: 0;
    margin: 28px auto 0;
    max-width: 720px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}
.trust-strip li {
    color: var(--white);
    background: rgba(46, 230, 166, 0.08);
    border: 1px solid rgba(46, 230, 166, 0.25);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.92rem;
    font-weight: 500;
}

/* ✨ Buy reassurance — three quick check-marks under the "Add to Cart"
   button. Removes the last bit of hesitation right at the decision point. */
.buy-reassurance {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--gray);
    font-size: 0.92rem;
}
.buy-reassurance li { line-height: 1.4; }

/* ---------------------------------------------------------------------
   6) BUTTONS
--------------------------------------------------------------------- */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }   /* gentle lift on hover */

.btn-primary {                                  /* green = main action */
    background: var(--green);
    color: #06231a;
    box-shadow: 0 6px 20px rgba(46, 230, 166, 0.30);
}
.btn-secondary {                                /* blue outline = 2nd action */
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn-secondary:hover { background: rgba(61, 169, 252, 0.12); }

/* ---------------------------------------------------------------------
   7) "WHAT I DO" feature cards
--------------------------------------------------------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* three columns side by side */
    gap: 18px;
    margin-top: 64px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--green); }

.card .icon { font-size: 1.9rem; margin-bottom: 12px; }
.card h3    { font-size: 1.2rem; margin-bottom: 8px; }
.card p     { color: var(--gray); font-size: 0.96rem; }

/* ---------------------------------------------------------------------
   8) FOOTER
--------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--panel);
    padding: 30px 0;
    text-align: center;
}
.footer-brand  { font-family: 'Fredoka', sans-serif; color: var(--white); font-size: 1.05rem; }
.footer-credit { color: var(--green); margin: 6px 0; font-weight: 500; }
.footer-copy   { color: var(--gray); font-size: 0.85rem; }

/* ---------------------------------------------------------------------
   9) PHONE-SIZE TWEAKS  (anything under 720px wide)
--------------------------------------------------------------------- */
@media (max-width: 720px) {
    .features    { grid-template-columns: 1fr; }   /* stack cards */
    .header-inner { justify-content: center; }     /* center logo + menu */
}

/* =====================================================================
   ============================  PART 2  ===============================
   Styles for the Shop, Product page, Cart, Forms, and Admin area.
   ===================================================================== */

/* ---- Header right side: menu + cart together ---- */
.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-link {
    position: relative;
    font-size: 1.25rem;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.cart-link:hover { border-color: var(--green); background: var(--panel); }

.cart-count {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--green);
    color: #06231a;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 4px;
}

/* ---- Account menu: the ☰ three-line dropdown in the header ---- */
.account-menu { position: relative; display: flex; align-items: center; }

/* hide the real checkbox, but it still does the on/off work */
.acct-toggle { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

/* the three-line (☰) button */
.acct-button {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
    width: 42px; height: 38px;
    border: 1px solid var(--line); border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.acct-button:hover { border-color: var(--green); background: var(--panel); }
.acct-button span {
    display: block; width: 20px; height: 2px; border-radius: 2px;
    background: var(--white);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* when the menu is open, the three lines morph into an ✕ */
.acct-toggle:checked ~ .acct-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.acct-toggle:checked ~ .acct-button span:nth-child(2) { opacity: 0; }
.acct-toggle:checked ~ .acct-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* the dropdown panel (hidden until the checkbox is checked) */
.acct-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 175px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 8px;
    display: none; flex-direction: column; gap: 2px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    z-index: 60;
}
.acct-toggle:checked ~ .acct-dropdown { display: flex; }   /* open it! */

.acct-dropdown a {
    padding: 10px 14px; border-radius: 8px;
    color: var(--white); font-weight: 500;
}
.acct-dropdown a:hover { background: var(--black); color: var(--green); }
.acct-dropdown .acct-signup { color: var(--green); }
.acct-divider { height: 1px; background: var(--line); margin: 4px 6px; }
.acct-hi {
    padding: 8px 14px 10px; color: var(--gray); font-size: 0.85rem;
    border-bottom: 1px solid var(--line); margin-bottom: 4px;
}

/* ---- About page ---- */
.about-wrap { max-width: 720px; margin: 0 auto; }
.about-text { color: var(--gray); font-size: 1.12rem; line-height: 1.85; }
.about-text strong { color: var(--white); }

/* ---- Sign Up / Log In page cards ---- */
.auth-wrap { display: grid; place-items: center; padding: 10px 0 30px; }
.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 34px;
    max-width: 420px;
    width: 100%;
}
.auth-card h1 { text-align: center; margin-bottom: 6px; font-size: 1.8rem; }
.auth-card > .muted { text-align: center; display: block; margin-bottom: 20px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--gray); }
.auth-switch a { color: var(--green); font-weight: 500; }

/* Profile card: little stats row at the top */
.profile-card { max-width: 480px; }
.profile-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    background: var(--black); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px; margin-bottom: 20px;
}
.profile-stats div { text-align: center; }
.profile-stats .stat-label { display: block; color: var(--gray); font-size: 0.78rem; margin-bottom: 2px; }
.profile-stats strong { color: var(--white); font-size: 1.15rem; }
.profile-stats a { color: var(--green); }

/* ---- Verification code box + input ---- */
.code-box {
    background: var(--black);
    border: 2px dashed var(--blue);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
}
.code-box .code-digits {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.1rem;
    letter-spacing: 8px;
    color: var(--green);
    margin: 4px 0;
}
.code-box .code-label { color: var(--gray); font-size: 0.8rem; }
.code-input {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 10px;
}
.linklike {
    background: none; border: none; padding: 0;
    color: var(--green); font: inherit; text-decoration: underline; cursor: pointer;
}

/* ---- 🎁 First-time visitor welcome popup ---- */
.welcome-popup {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: grid; place-items: center;
    padding: 20px;
    animation: welcome-fade-in 0.25s ease;
}
.welcome-popup[hidden] { display: none; }
.welcome-popup-inner {
    background: var(--panel);
    border: 1px solid var(--green);
    border-radius: 18px;
    padding: 30px 30px 26px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 60px rgba(46, 230, 166, 0.25);
    animation: welcome-pop-in 0.3s cubic-bezier(.2,1.2,.3,1);
}
.welcome-emoji { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.welcome-popup-inner h2 { margin-bottom: 10px; font-size: 1.5rem; }
.welcome-popup-inner .muted { margin-bottom: 8px; }
.welcome-close {
    position: absolute; top: 8px; right: 14px;
    background: none; border: none;
    color: var(--gray); font-size: 1.8rem; cursor: pointer;
    line-height: 1; padding: 4px 8px;
}
.welcome-close:hover { color: var(--white); }
.welcome-code-box {
    background: var(--black);
    border: 2px dashed var(--green);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0 18px;
    display: flex; align-items: center; gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.welcome-code-box code {
    font-family: 'Fredoka', monospace;
    font-size: 1.5rem; font-weight: 600;
    color: var(--green);
    letter-spacing: 2px;
}
@keyframes welcome-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcome-pop-in {
    from { transform: scale(0.92) translateY(8px); opacity: 0; }
    to   { transform: scale(1) translateY(0);     opacity: 1; }
}

/* ---- 💰 Admin quote form (on requests page) ---- */
.quote-form {
    background: rgba(46, 230, 166, 0.06);
    border: 1px solid var(--green);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0;
    display: flex; flex-direction: column; gap: 8px;
}
.quote-form .quote-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quote-form label {
    color: var(--white); font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.quote-form .quote-prefix {
    color: var(--green); font-weight: 700; font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
}
.quote-form input[type="number"] {
    width: 100px; padding: 8px 12px;
    background: #0b0e13; border: 1px solid var(--line); border-radius: 8px;
    color: var(--white); font-family: 'Fredoka', sans-serif; font-size: 1.05rem;
    text-align: right;
}
.quote-form input[type="number"]:focus { outline: none; border-color: var(--green); }
.quote-form textarea {
    width: 100%; padding: 8px 12px;
    background: #0b0e13; border: 1px solid var(--line); border-radius: 8px;
    color: var(--white); font-family: inherit; font-size: 0.92rem;
    resize: vertical;
}
.quote-form textarea:focus { outline: none; border-color: var(--green); }
.quote-form button { align-self: flex-start; }

/* ---- 🔎 Shop search bar ---- */
.shop-search {
    display: flex; gap: 10px; max-width: 480px; margin: 0 auto 22px;
    align-items: center;
    position: relative;
}
.shop-search input {
    flex: 1; padding: 12px 16px;
    background: #0b0e13; border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--white); font-family: inherit; font-size: 1rem;
}
.shop-search input:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.18);
}
.search-clear {
    color: var(--gray); padding: 4px 12px; font-size: 1rem;
    border: 1px solid var(--line); border-radius: 999px;
    text-decoration: none;
}
.search-clear:hover { color: var(--white); border-color: var(--gray); }
.search-info {
    text-align: center; color: var(--gray);
    margin: 0 auto 24px; max-width: 600px;
}
.search-info a { color: var(--green); }

/* ---- "Welcome back, Name!" greeting on the homepage ---- */
.welcome-back {
    display: inline-block;
    background: rgba(46, 230, 166, 0.12);
    border: 1px solid var(--green);
    color: var(--green);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
}

/* ---- Simple page heading block ---- */
.page-head { text-align: center; margin-bottom: 36px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 8px; }

.empty-note { text-align: center; color: var(--gray); font-size: 1.1rem; margin: 30px 0; }

/* =====================  SHOP: product grid  ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--green); }

.product-thumb {
    aspect-ratio: 4 / 3;
    background: #0b0e13;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { font-size: 3rem; opacity: 0.5; }
.thumb-placeholder.big { font-size: 6rem; }

.product-info { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-info h3 { font-size: 1.2rem; }
.price { color: var(--green); font-weight: 700; font-size: 1.15rem; font-family: 'Fredoka', sans-serif; }

.swatch-block { margin: 8px 0 12px; }
.swatch-label {
    font-size: 0.82rem; color: var(--gray); margin-bottom: 6px;
}
.swatch-label strong { color: var(--white); }
.swatch-row { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
    transition: transform 0.12s ease;
}
.swatch:hover { transform: scale(1.18); }
.btn-block { display: block; text-align: center; width: 100%; margin-top: auto; }

/* =====================  PRODUCT detail page  ===================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}
.product-photo {
    background: #0b0e13;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }

.back-link { color: var(--gray); font-size: 0.9rem; display: inline-block; margin-bottom: 12px; }
.back-link:hover { color: var(--green); }

.product-buy h1 { font-size: 2rem; margin-bottom: 6px; }
.detail-price { color: var(--green); font-size: 1.6rem; font-family: 'Fredoka', sans-serif; margin-bottom: 14px; }
.detail-desc { color: var(--gray); margin-bottom: 24px; }

/* ---- Forms (shared everywhere) ---- */
.field { margin-bottom: 18px; }
.field > label, fieldset legend {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--white);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field textarea,
.styled-form input[type="text"],
.styled-form input[type="email"],
.styled-form input[type="password"],
.styled-form input[type="number"],
.styled-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: #0b0e13;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}
.field input:focus, .field textarea:focus,
.styled-form input:focus, .styled-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.18);
}
fieldset { border: none; }
.qty-field input { max-width: 110px; }

/* ---- Color picker (radio buttons that look like swatches) ---- */
.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
/* hide the real radio circle, keep it usable by keyboard */
.color-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.color-option .dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}
.color-option:hover { border-color: var(--gray); }
/* the chosen color lights up green */
.color-option:has(input:checked) {
    border-color: var(--green);
    background: rgba(46, 230, 166, 0.12);
}

/* ---- Size/tier option picker ---- */
.option-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-choice {
    cursor: pointer;
    border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.option-choice input { accent-color: var(--green); }
.option-choice:hover { border-color: var(--gray); }
.option-choice:has(input:checked) {
    border-color: var(--green);
    background: rgba(46, 230, 166, 0.10);
}
.option-choice strong { color: var(--white); display: block; }
.option-choice .opt-price { color: var(--green); font-weight: 600; font-family: 'Fredoka', sans-serif; }
@media (max-width: 540px) { .option-list { grid-template-columns: 1fr; } }

/* Tiny "from" prefix on prices that have multiple tiers */
.from-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75em; color: var(--gray); font-weight: 400;
    text-transform: lowercase;
    margin-right: 2px;
}
/* Small tag showing the chosen option next to the cart item name */
.option-tag {
    background: rgba(46, 230, 166, 0.18);
    color: var(--green);
    font-size: 0.7rem; font-weight: 600;
    padding: 2px 8px; border-radius: 999px;
    margin-left: 6px; vertical-align: middle;
    font-family: 'DM Sans', sans-serif;
}

/* ---- Font picker (each option shown in its own font) ---- */
.font-options { display: flex; flex-wrap: wrap; gap: 10px; }
.font-option { cursor: pointer; }
.font-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.font-sample {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1.3rem;
    color: var(--white);
    line-height: 1.2;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.font-option:hover .font-sample { border-color: var(--gray); }
.font-option:has(input:checked) .font-sample {
    border-color: var(--green);
    background: rgba(46, 230, 166, 0.12);
    color: var(--green);
}

/* ---- Buttons (extra sizes) ---- */
.btn-big   { font-size: 1.05rem; padding: 15px 28px; }
.btn-small { padding: 7px 14px; font-size: 0.85rem; }
.btn-ghost {
    background: transparent; color: var(--gray); border-color: var(--line);
}
.btn-ghost:hover { color: var(--white); border-color: var(--gray); }
.btn-danger { background: #ff5c5c; color: #2a0808; }
.btn-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* =====================  CART  ===================== */
.cart-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row {
    display: grid;
    grid-template-columns: 2fr 80px 90px 90px 40px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}
.cart-row:last-child { border-bottom: none; }
.cart-main { display: flex; gap: 12px; align-items: center; }
.cart-main .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.cart-main h3 { font-size: 1.05rem; }
.cart-meta { color: var(--gray); font-size: 0.88rem; }
.cart-price, .cart-line-total { font-family: 'Fredoka', sans-serif; }
.cart-line-total { color: var(--green); }
.cart-qty input { width: 64px; padding: 8px; text-align: center;
    background: #0b0e13; border: 1px solid var(--line); border-radius: 8px; color: var(--white); }
.cart-remove button {
    background: none; border: none; color: var(--gray); cursor: pointer; font-size: 1.1rem;
}
.cart-remove button:hover { color: #ff5c5c; }

.cart-footer { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 20px; gap: 20px; }
.cart-actions { justify-content: flex-end; margin-top: 24px; }

/* ---- Promo code box on the cart ---- */
.promo-box { margin-top: 18px; max-width: 420px; }
.promo-form { display: flex; gap: 8px; }
.promo-form input[type="text"] {
    flex: 1; padding: 10px 12px; background: #0b0e13; border: 1px solid var(--line);
    border-radius: 10px; color: var(--white); font-family: inherit; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.promo-form input:focus { outline: none; border-color: var(--green); }
.promo-applied {
    background: rgba(46, 230, 166, 0.10);
    border: 1px dashed var(--green);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 10px;
}
.promo-applied strong { color: var(--green); }

/* admin: promo add row */
.promo-add-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .promo-add-row { grid-template-columns: 1fr; } }

/* "Buy 5, get 1 free" deal banner */
.deal-banner {
    background: linear-gradient(90deg, rgba(46, 230, 166, 0.14), rgba(61, 169, 252, 0.14));
    border: 1px solid var(--green);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 18px;
    text-align: center;
    color: var(--white);
    font-weight: 500;
}
.deal-banner strong { color: var(--green); }

/* Cart totals box (subtotal / discount / total) */
.cart-totals { min-width: 250px; }
.cart-totals .t-line { display: flex; justify-content: space-between; gap: 30px; padding: 4px 0; color: var(--gray); }
.cart-totals .t-total {
    border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px;
    font-size: 1.25rem; color: var(--white);
}
.cart-totals .t-total strong { color: var(--green); font-family: 'Fredoka', sans-serif; }
.t-free, .summary-sub.t-free { color: var(--green); }
.summary-sub { color: var(--gray); }

/* =====================  CHECKOUT  ===================== */
.checkout-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.order-summary {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
}
.order-summary h3 { margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; color: var(--gray); margin-bottom: 8px; }
.summary-total {
    display: flex; justify-content: space-between;
    border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px;
    font-size: 1.15rem;
}
.summary-total strong { color: var(--green); font-family: 'Fredoka', sans-serif; }
.pickup-note { color: var(--gray); font-size: 0.85rem; margin-top: 16px; }

.styled-form.narrow { max-width: 560px; margin: 0 auto; }

/* The two-path landing on /custom.php (MakerWorld vs Tinkercad) */
.custom-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.custom-path-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.custom-path-card:hover {
    transform: translateY(-5px);
    border-color: var(--green);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.path-icon { font-size: 3.4rem; margin-bottom: 12px; }
.custom-path-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.custom-path-card p { color: var(--gray); margin-bottom: 18px; }
.path-perks { list-style: none; padding: 0; margin: 0 0 22px; color: var(--white); text-align: left; }
.path-perks li { padding: 4px 0; }
.custom-path-card .btn { width: 100%; margin-top: auto; }
@media (max-width: 720px) { .custom-paths { grid-template-columns: 1fr; } }

/* "How it works" numbered steps (Custom Requests page) */
.steps-list {
    list-style: none; counter-reset: step;
    margin: 0 auto 24px; padding: 0;
    max-width: 620px;
}
.steps-list li {
    counter-increment: step;
    position: relative;
    padding: 14px 16px 14px 60px;
    margin-bottom: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--white);
}
.steps-list li::before {
    content: counter(step);
    position: absolute; left: 14px; top: 12px;
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #06231a;
    font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.05rem;
    display: grid; place-items: center;
    border-radius: 50%;
}

/* Design link line in admin Requests */
.design-line { color: var(--gray); margin: 8px 0; }
.design-line strong { color: var(--white); }
.design-line a { color: var(--blue); text-decoration: underline; }

/* Shipping picker on checkout + material picker on product page (same look) */
.shipping-options,
.material-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shipping-option,
.material-option {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.shipping-option input,
.material-option input { accent-color: var(--green); }
.shipping-option:hover,
.material-option:hover { border-color: var(--gray); }
.shipping-option:has(input:checked),
.material-option:has(input:checked) {
    border-color: var(--green);
    background: rgba(46, 230, 166, 0.10);
}
.shipping-option strong,
.material-option strong { color: var(--white); display: block; }
.shipping-option .small,
.material-option .small { display: block; }
@media (max-width: 540px) {
    .shipping-options,
    .material-options { grid-template-columns: 1fr; }
}

/* =====================  CONTACT  ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.contact-info p { margin-bottom: 12px; }
.muted { color: var(--gray); }
.notice-success {
    background: rgba(46, 230, 166, 0.14); border: 1px solid var(--green);
    color: var(--green); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px;
}
.notice-error {
    background: rgba(255, 92, 92, 0.14); border: 1px solid #ff5c5c;
    color: #ff8c8c; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px;
}
.notice-info {
    background: rgba(61, 169, 252, 0.14); border: 1px solid var(--blue);
    color: var(--white); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px;
}
.notice-info {
    background: rgba(61, 169, 252, 0.12); border: 1px solid var(--blue);
    color: var(--white); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px;
}
.notice-info strong { color: var(--blue); }
.notice-info a { color: var(--green); font-weight: 600; }

/* small "Admin" link in the footer */
.admin-tiny-link { color: var(--gray); text-decoration: underline; }
.admin-tiny-link:hover { color: var(--green); }

/* =====================================================================
   ORDER TRACKER  (the 4-step progress bar)
   ===================================================================== */
.track-lookup {
    display: flex; gap: 10px; max-width: 520px; margin: 0 auto 26px;
}
.track-lookup input[type="text"] {
    flex: 1; padding: 12px 14px; background: #0b0e13; border: 1px solid var(--line);
    border-radius: 10px; color: var(--white); font-family: inherit; font-size: 1rem;
}
.track-lookup input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,230,166,0.18); }

.tracker-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px; margin-bottom: 18px;
}
.tracker-head {
    display: flex; justify-content: space-between; align-items: baseline;
    flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.tracker-head strong { font-family: 'Fredoka', sans-serif; font-size: 1.15rem; color: var(--white); }

/* The stepper itself */
.tracker { display: flex; padding: 6px 8px 4px; }
.tracker-step {
    flex: 1; text-align: center; position: relative; padding-top: 4px;
}
/* line connecting to the PREVIOUS step */
.tracker-step::before {
    content: ""; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px;
    background: var(--line); z-index: 0;
}
.tracker-step:first-child::before { display: none; }
.tracker-step.done::before,
.tracker-step.current::before { background: var(--green); }

.tracker-dot {
    position: relative; z-index: 1;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--panel); border: 3px solid var(--line); color: var(--gray);
    display: grid; place-items: center; margin: 0 auto 8px;
    font-family: 'Fredoka', sans-serif; font-weight: 700;
    transition: all 0.2s ease;
}
.tracker-step.done .tracker-dot {
    background: var(--green); border-color: var(--green); color: #06231a;
}
.tracker-step.current .tracker-dot {
    border-color: var(--green); color: var(--green);
    box-shadow: 0 0 0 5px rgba(46, 230, 166, 0.18);
}
.tracker-label { font-size: 0.84rem; color: var(--gray); }
.tracker-step.done .tracker-label,
.tracker-step.current .tracker-label { color: var(--white); font-weight: 500; }

.your-orders-title { font-size: 1.3rem; margin: 30px 0 14px; }

/* ---- Tracker card additions: payment badge + order details ---- */
.tracker-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.pay-badge {
    padding: 4px 12px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap;
}
.pay-paid   { background: rgba(46, 230, 166, 0.18); color: var(--green); }
.pay-unpaid { background: rgba(255, 210, 63, 0.18); color: #ffd23f; }
.pay-pickup { background: rgba(61, 169, 252, 0.14); color: var(--blue); }

.tracker-items { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.tracker-section {
    font-size: 0.78rem; color: var(--gray); margin: 0 0 12px;
    text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600;
}
.tracker-line {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 12px 0; border-bottom: 1px dashed var(--line);
    align-items: flex-start;
}
.tracker-line:last-of-type { border-bottom: none; }
.tracker-line-main { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 0; }
.tracker-line-main strong { color: var(--white); }
.tracker-line-main .dot {
    width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 6px;
    border: 2px solid rgba(255, 255, 255, 0.18);
}
.tracker-line-price {
    color: var(--green); font-family: 'Fredoka', sans-serif;
    font-weight: 600; white-space: nowrap;
}

.tracker-totals {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--line);
    max-width: 340px; margin-left: auto;
}
.tracker-totals .t-line { display: flex; justify-content: space-between; gap: 30px; padding: 4px 0; color: var(--gray); }
.tracker-totals .t-total {
    border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px;
    font-size: 1.15rem; color: var(--white);
}
.tracker-totals .t-total strong { color: var(--green); font-family: 'Fredoka', sans-serif; }
.tracker-totals .t-free { color: var(--green); }

/* Estimated-delivery card on the order-placed page */
.delivery-est {
    display: inline-block;
    background: rgba(61, 169, 252, 0.12);
    border: 1px solid var(--blue);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 1.05rem;
    margin: 18px 0 24px;
}
.delivery-est strong { color: var(--blue); }

/* admin: little stage <select> next to each order */
.stage-form { display: flex; gap: 6px; align-items: center; }
.stage-form select {
    background: #0b0e13; color: var(--white); border: 1px solid var(--line);
    border-radius: 8px; padding: 6px 10px; font-family: inherit; font-size: 0.9rem;
}
.stage-form select:focus { outline: none; border-color: var(--green); }

@media (max-width: 540px) {
    .tracker-label { font-size: 0.72rem; }
}

/* =====================================================================
   REVIEWS  ⭐
   ===================================================================== */

/* 5-star picker — pure CSS, no JavaScript!
   Stars are written 5..1 in the HTML but direction:rtl flips them visually
   to 1..5. The CSS trick: when star N is checked, the sibling selector
   ~ lights up that star AND every star *after* it in the source, which
   thanks to RTL means every star to the LEFT visually. */
.star-label { display: block; margin-bottom: 8px; }
.star-picker {
    direction: rtl;
    display: inline-flex; flex-direction: row;
    unicode-bidi: bidi-override;
}
.star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-picker label {
    font-size: 2.6rem;
    color: #3a4048;   /* dim until hovered/selected */
    cursor: pointer; padding: 0 4px;
    line-height: 1;
    transition: color 0.12s ease, transform 0.12s ease;
}
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label {
    color: #ffd23f;   /* gold! */
}
.star-picker label:hover { transform: scale(1.18); }

/* Inline display of finished stars (e.g. ★★★★☆) */
.stars { color: #ffd23f; letter-spacing: 2px; font-size: 1.1rem; }

/* Reviews section on the homepage */
.reviews-section { margin-top: 64px; text-align: center; }
.section-title { font-size: 1.6rem; margin-bottom: 22px; }
.review-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    text-align: left;
}
.review-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.review-card:hover { transform: translateY(-3px); border-color: var(--green); }
.review-stars { font-size: 1.2rem; margin-bottom: 10px; color: #ffd23f; }
.review-comment { color: var(--white); line-height: 1.6; margin-bottom: 10px; }
.review-author,
.review-name   { color: var(--gray); font-size: 0.9rem; font-style: italic; }

.admin-review-card { margin-bottom: 14px; }
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   CHAT (customer <-> shop)
   ===================================================================== */
.chat-box { max-width: 680px; margin: 0 auto; }
.chat-thread {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; min-height: 280px; max-height: 460px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
}
.chat-empty { text-align: center; margin: auto; }
.chat-bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; }
.bubble-them {
    align-self: flex-start; background: var(--black);
    border: 1px solid var(--line); border-bottom-left-radius: 4px;
}
.bubble-me {
    align-self: flex-end; background: rgba(46, 230, 166, 0.16);
    border: 1px solid var(--green); border-bottom-right-radius: 4px;
}
.bubble-text { color: var(--white); }
.bubble-time { color: var(--gray); font-size: 0.72rem; margin-top: 4px; }

.chat-form { display: flex; gap: 10px; }
.chat-form input[type="text"] {
    flex: 1; padding: 12px 14px; background: #0b0e13; border: 1px solid var(--line);
    border-radius: 10px; color: var(--white); font-family: inherit; font-size: 1rem;
}
.chat-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,230,166,0.18); }

/* Admin chat layout: list of people on the left, conversation on the right */
.chat-admin { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.chat-list { display: flex; flex-direction: column; gap: 6px; }
.chat-list-item {
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; display: block;
}
.chat-list-item:hover { border-color: var(--gray); }
.chat-list-item.active { border-color: var(--green); background: rgba(46, 230, 166, 0.1); }
.chat-list-item strong { color: var(--white); display: block; }
.chat-list-email { color: var(--gray); font-size: 0.8rem; }

.chat-badge {
    background: var(--green); color: #06231a; font-size: 0.72rem; font-weight: 700;
    border-radius: 999px; padding: 1px 7px; margin-left: 4px;
}
.nav-badge {
    background: #ff5c5c; color: #2a0808; font-size: 0.7rem; font-weight: 700;
    border-radius: 999px; padding: 1px 6px; margin-left: 2px;
}
@media (max-width: 720px) { .chat-admin { grid-template-columns: 1fr; } }

/* =====================================================================
   ADMIN AREA
   ===================================================================== */
.admin-body { background: var(--black); }

.admin-topbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-topbar-inner {
    max-width: 1100px; margin: 0 auto; padding: 12px 22px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.admin-logo { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; color: var(--white); }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.admin-nav a { padding: 7px 12px; border-radius: 8px; color: var(--gray); font-weight: 500; }
.admin-nav a:hover { color: var(--white); background: var(--black); }
.admin-nav a.active { color: var(--green); background: rgba(46, 230, 166, 0.12); }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.admin-link { color: var(--gray); font-size: 0.9rem; }
.admin-link:hover { color: var(--white); }
.admin-link.logout:hover { color: #ff8c8c; }

/* the little 🏠 button that sends you back to the public website */
.admin-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.admin-home-btn:hover {
    border-color: var(--green);
    background: rgba(46, 230, 166, 0.12);
    transform: translateY(-1px);
}

.admin-main { max-width: 1100px; margin: 0 auto; padding: 34px 22px 70px; min-height: 70vh; }
.admin-h1 { font-size: 1.9rem; margin-bottom: 6px; }
.admin-footer { text-align: center; color: var(--gray); padding: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; }

.admin-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }

/* Dashboard stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.stat-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; text-align: center; transition: transform 0.15s ease, border-color 0.15s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--green); }
.stat-num { display: block; font-family: 'Fredoka', sans-serif; font-size: 2.4rem; color: var(--green); }
.stat-label { color: var(--gray); }
.stat-label em { color: var(--blue); font-style: normal; }
.admin-quick { display: flex; gap: 12px; flex-wrap: wrap; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--gray); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.admin-thumb span { font-size: 1.6rem; }
.admin-row-actions { display: flex; gap: 8px; align-items: center; }
.admin-row-actions form { margin: 0; }

/* Admin forms */
.admin-form { max-width: 620px; }
.field-check label { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.field-check input { width: auto; }
.form-preview { width: 120px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--line); }

/* photo editor: preview on the left, controls on the right */
.photo-edit { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.photo-edit .form-preview { width: 130px; height: 130px; object-fit: cover; margin: 0; }
.photo-edit-controls { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.small { font-size: 0.85rem; }
.form-section { margin: 26px 0 14px; color: var(--blue); border-bottom: 1px solid var(--line); padding-bottom: 6px; }

/* Reply form on admin Requests + thread of past replies */
.reply-form {
    margin-top: 14px;
    display: flex; flex-direction: column; gap: 8px;
}
.reply-form textarea {
    width: 100%; min-height: 70px;
    background: var(--black); border: 1px solid var(--line); border-radius: 10px;
    color: var(--white); padding: 10px 12px; font-family: inherit; font-size: 0.95rem;
    resize: vertical;
}
.reply-form textarea:focus { outline: none; border-color: var(--green); }
.reply-form .btn { align-self: flex-end; }

.reply-thread {
    margin-top: 14px; padding-top: 10px;
    border-top: 1px dashed var(--line);
    display: flex; flex-direction: column; gap: 8px;
}
.reply-bubble {
    background: rgba(46, 230, 166, 0.10);
    border-left: 3px solid var(--green);
    border-radius: 8px;
    padding: 10px 12px;
}
.reply-bubble.reply-failed {
    background: rgba(255, 92, 92, 0.10);
    border-left-color: #ff5c5c;
}
.reply-meta { color: var(--gray); font-size: 0.78rem; margin-bottom: 4px; }
.reply-text { color: var(--white); line-height: 1.5; }

/* Order & request cards */
.order-card, .request-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; margin-bottom: 16px;
}
.order-card.is-done { opacity: 0.6; }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.order-id { color: var(--gray); font-size: 0.85rem; margin-left: 8px; }
.order-date { color: var(--gray); font-size: 0.85rem; margin-left: 8px; }
.status-pill { background: rgba(61,169,252,0.15); color: var(--blue); padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; white-space: nowrap; }
.order-contact { color: var(--gray); font-size: 0.9rem; margin-bottom: 10px; }
.order-items { list-style: none; margin: 10px 0; }
.order-items li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.order-line-price { margin-left: auto; color: var(--green); }
.order-message { background: var(--black); padding: 10px 14px; border-radius: 10px; color: var(--gray); margin: 10px 0; }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.order-total { color: var(--green); font-family: 'Fredoka', sans-serif; font-size: 1.1rem; }

/* Login page */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
    padding: 40px; max-width: 380px; width: 100%; text-align: center;
}
.login-badge {
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
    display: grid; place-items: center; font-size: 1.8rem;
    background: linear-gradient(135deg, var(--green), var(--blue));
}
.login-card h1 { margin-bottom: 6px; }
.login-card .styled-form { margin-top: 22px; text-align: left; }
.login-card .back-link { margin-top: 16px; }

/* "Step 2" — show the email the user just typed, with a 'change' link */
.login-email-line {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--black); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; margin-top: 18px;
    color: var(--gray); font-size: 0.95rem;
}
.login-email-line strong { color: var(--white); font-weight: 500; margin-left: 4px; }
.login-email-line .back-link { margin: 0; color: var(--green); font-size: 0.85rem; }

/* =====================  PHONE TWEAKS for Part 2  ===================== */
@media (max-width: 760px) {
    .product-grid   { grid-template-columns: 1fr 1fr; }
    .product-detail,
    .checkout-grid,
    .contact-grid,
    .stat-grid      { grid-template-columns: 1fr; }
    .cart-row       { grid-template-columns: 1fr 1fr; row-gap: 8px; }
}
@media (max-width: 460px) {
    .product-grid   { grid-template-columns: 1fr; }
}

/* Mobile-only items inside the ☰ dropdown — hidden on desktop where the
   regular top nav is showing the same links. Revealed on phones below. */
.acct-mobile-nav { display: none; }

/* 🎁 Refer-a-friend box on the profile page */
.referral-box {
    margin: 20px 0;
    padding: 22px;
    background: linear-gradient(135deg, rgba(46, 230, 166, 0.10), rgba(100, 168, 255, 0.10));
    border: 1px solid var(--green);
    border-radius: var(--radius);
}
.referral-box h3 { margin-bottom: 6px; }
.referral-link-row {
    display: flex; gap: 8px; margin-top: 12px;
}
.referral-link-row input {
    flex: 1; padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--line); border-radius: 10px;
    color: var(--white); font-family: monospace; font-size: 0.9rem;
}
.referral-link-row input:focus { outline: none; border-color: var(--green); }

/* Welcome banner shown to visitors who arrived via a /?ref= link */
.referral-welcome {
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #06231a;
    padding: 14px 18px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.referral-welcome a { color: #06231a; text-decoration: underline; }

/* 📋 Queue position indicator on the order tracker */
.queue-pos {
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(100, 168, 255, 0.10);
    border: 1px dashed var(--blue);
    border-radius: var(--radius);
    text-align: center;
    color: var(--white);
}
.queue-pos.queue-printing {
    background: rgba(46, 230, 166, 0.10);
    border-color: var(--green);
}
.queue-pos.queue-shipping {
    background: rgba(255, 210, 63, 0.10);
    border-color: #ffd23f;
}

/* ☕ Post-payment "Want to leave a tip?" prompt */
.tip-prompt {
    margin: 36px auto 0;
    max-width: 520px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.tip-prompt-emoji   { font-size: 2.2rem; margin-bottom: 8px; }
.tip-prompt h3      { margin-bottom: 8px; font-size: 1.3rem; }
.tip-prompt p       { margin-bottom: 18px; }

/* ☕ Tip jar — preset amount chips and custom amount input */
.tip-form .big-label { font-weight: 600; margin-bottom: 12px; display: block; }
.tip-amounts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.tip-amount { position: relative; cursor: pointer; }
.tip-amount input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tip-amount span {
    display: block; text-align: center;
    padding: 14px 6px;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    color: var(--white);
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.tip-amount:hover span { transform: translateY(-2px); border-color: var(--green); }
.tip-amount input:checked + span {
    border-color: var(--green);
    background: rgba(46, 230, 166, 0.10);
    color: var(--green);
}
.custom-amount-wrap { position: relative; }
.dollar-prefix {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--gray); font-weight: 600;
}
.custom-amount { padding-left: 28px !important; }
@media (max-width: 540px) {
    .tip-amounts { grid-template-columns: repeat(3, 1fr); }
}

/* 🎥 Print timelapse video on product pages */
.product-video        { margin-top: 18px; }
.video-heading        { font-size: 1.1rem; margin-bottom: 10px; color: var(--white); }
.video-frame {
    position: relative;
    padding-top: 56.25%;   /* 16:9 aspect ratio */
    background: #0b0e13;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.video-frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.video-native {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0e13;
    display: block;
}

/* 🌗 Dark/light mode toggle — styled to look like a row inside the dropdown */
.theme-toggle-row {
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.theme-toggle-row:hover { background: rgba(255, 255, 255, 0.06); }
/* Show "Light mode" label in dark theme, "Dark mode" label in light theme */
.theme-toggle-row .icon-light,
:root[data-theme="light"] .theme-toggle-row .icon-dark { display: none; }
:root[data-theme="light"] .theme-toggle-row .icon-light { display: inline; }

/* "Spend $X more for FREE shipping!" progress bar at the top of the cart.
   Fill turns green and the message changes when the threshold is hit. */
.free-ship-bar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
}
.free-ship-msg     { margin-bottom: 10px; color: var(--white); }
.free-ship-msg strong { color: var(--green); }
.free-ship-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}
.free-ship-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 999px;
    transition: width 0.4s ease;
}
.free-ship-bar.unlocked {
    background: rgba(46, 230, 166, 0.10);
    border-color: var(--green);
    box-shadow: 0 4px 18px rgba(46, 230, 166, 0.15);
}
.free-ship-bar.unlocked .free-ship-fill { background: var(--green); }

/* "Checkout disabled" banner — shows on cart + checkout while Stripe is
   in sandbox mode. Bright red so customers can't miss it. */
.maintenance-banner {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #fff;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.25);
}
.maintenance-banner .banner-emoji { font-size: 1.4rem; }
.maintenance-banner .banner-text  { line-height: 1.4; }
.maintenance-banner .banner-text small {
    display: block; font-weight: 400; opacity: 0.92; margin-top: 2px;
}

/* =====================================================================
   ============================  PART 3  ===============================
   FULL MOBILE RESPONSIVE PASS
   Phones are tiny. Computers are big. These rules make every page look
   great on a 360px-wide phone screen all the way up to a giant monitor.
   ===================================================================== */

/* iOS zooms into form inputs whose font is under 16px. Stop that. */
@media (max-width: 720px) {
    .field input[type="text"],
    .field input[type="email"],
    .field input[type="password"],
    .field input[type="number"],
    .field input[type="tel"],
    .field input[type="url"],
    .field textarea,
    .field select,
    .styled-form input,
    .styled-form textarea,
    .styled-form select { font-size: 16px; }
}

/* ---------- TABLET / SMALL LAPTOP ---------- */
@media (max-width: 900px) {
    .checkout-grid,
    .contact-grid       { grid-template-columns: 1fr; gap: 22px; }
    .header-inner       { gap: 8px; }
    .main-nav           { gap: 2px; }
    .main-nav a         { padding: 6px 10px; font-size: 0.92rem; }
}

/* ---------- PHONES (most important breakpoint) ---------- */
@media (max-width: 640px) {
    /* Tighter page padding so content gets the most width */
    .header-inner,
    .footer-inner,
    .page-content       { padding-left: 14px; padding-right: 14px; }
    .page-content       { padding-top: 32px; padding-bottom: 48px; }

    /* Header: hide the inline top-bar nav links. The ☰ dropdown takes over
       and shows them (plus the account links) on phones. */
    .main-nav           { display: none; }
    .acct-mobile-nav    { display: block; }   /* show inside the dropdown */
    .header-inner       { padding-top: 10px; padding-bottom: 10px; }
    .header-actions     { gap: 8px; }
    .logo-text          { font-size: 1rem; }
    .acct-button        { width: 38px; height: 36px; }

    /* Hero / page heads: scale down giant headings */
    .hero h1            { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .hero .lead         { font-size: 1rem; }
    .page-head h1       { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .path-icon          { font-size: 2.6rem; }

    /* Buttons stack and stretch full-width — easier to tap with a thumb */
    .btn-row            { gap: 10px; }
    .btn-row .btn       { flex: 1 1 100%; }
    .btn                { min-height: 44px; padding: 12px 18px; }
    .btn-big            { width: 100%; }

    /* CART — the 5-column grid is impossible on a phone. Stack as a card. */
    .cart-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "main   remove"
            "price  qty"
            "total  total";
        row-gap: 10px;
        padding: 14px;
    }
    .cart-row .cart-main   { grid-area: main; }
    .cart-row .cart-remove { grid-area: remove; justify-self: end; }
    .cart-row .cart-price  { grid-area: price; color: var(--gray); }
    .cart-row .cart-qty    { grid-area: qty; justify-self: end; }
    .cart-row .cart-line-total {
        grid-area: total; font-size: 1.2rem; text-align: right;
        border-top: 1px dashed var(--line); padding-top: 8px;
    }
    .cart-footer    { flex-direction: column; align-items: stretch; }
    .promo-box      { max-width: none; }

    /* Tables in admin (orders, requests) — let them scroll sideways
       instead of breaking the page layout */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Login / signup cards: less padding, full-width */
    .login-card     { padding: 28px 20px; }

    /* Product cards: a touch more compact */
    .product-card h3 { font-size: 1.05rem; }
    .detail-price    { font-size: 1.4rem; }
    .product-buy h1  { font-size: 1.6rem; }

    /* Welcome popup: don't let it overflow the screen */
    .welcome-modal,
    .modal-card     { max-width: calc(100vw - 28px); margin: 0 14px; }
}

/* ---------- VERY SMALL PHONES (iPhone SE etc) ---------- */
@media (max-width: 400px) {
    .logo-text       { display: none; }   /* just the badge icon, no text */
    .acct-button     { width: 36px; height: 34px; }
    .cart-link       { padding: 5px 8px; font-size: 1.1rem; }
    .hero h1         { font-size: 1.7rem; }
    .page-head h1    { font-size: 1.5rem; }
    .btn             { padding: 11px 14px; font-size: 0.95rem; }
}

/* =====================================================================
   🛍 Related products section at the bottom of each product page
   ===================================================================== */
.related-products            { margin-top: 56px; }
.related-products .section-title { text-align: center; margin-bottom: 24px; }

/* =====================================================================
   ✨ ANIMATED HERO
   The homepage hero gets:
     - staggered "fade-up" entry on every line of text
     - an animated gradient on the highlighted (.pop) word
     - 6 floating shapes drifting behind the text
   Everything respects (prefers-reduced-motion: reduce) at the bottom.
   ===================================================================== */

/* The hero is now a positioning context so we can stack the bg behind it. */
.hero-animated         { position: relative; overflow: hidden; }
.hero-animated .hero-content { position: relative; z-index: 1; }

/* ---- staggered text entry ----
   Each .reveal element sets --i (0,1,2,...). The animation-delay
   uses that to fire one after the other for a smooth cascade. */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal-up 0.7s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i, 0) * 0.12s + 0.1s);
}
@keyframes reveal-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- animated gradient on the .pop word ----
   The original .pop is a static green→blue gradient. We make the
   gradient larger and pan its position so the colors slowly shift. */
.pop-animated {
    background: linear-gradient(135deg, var(--green), var(--blue), var(--green));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pop-gradient 6s ease-in-out infinite;
}
@keyframes pop-gradient {
    0%, 100% { background-position:   0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ---- floating background shapes ----
   The .hero-bg fills the hero. pointer-events:none so it never
   blocks a click on the buttons. */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.hero-bg .shape {
    position: absolute;
    display: block;
    opacity: 0.55;
    will-change: transform;
}

/* 1) Wireframe cube (top-left) — drifts up and rotates slowly. */
.shape-cube {
    top: 8%; left: 6%;
    width: 70px; height: 70px;
    border: 2px solid var(--green);
    border-radius: 6px;
    transform: rotate(20deg);
    animation: float-y 9s ease-in-out infinite, spin-slow 22s linear infinite;
}
.shape-cube::before {
    /* second face for that "3D cube" feel */
    content: ""; position: absolute;
    inset: 8px;
    border: 2px solid var(--blue);
    border-radius: 4px;
    opacity: 0.7;
}

/* 2) Filament-spool ring (top-right). */
.shape-ring {
    top: 14%; right: 8%;
    width: 90px; height: 90px;
    border: 3px solid var(--blue);
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px rgba(46, 230, 166, 0.18);
    animation: float-y 11s ease-in-out infinite reverse, spin-slow 30s linear infinite;
}

/* 3) Hexagon (mid-left, like a 3D-print infill cell). */
.shape-hex {
    top: 55%; left: 12%;
    width: 56px; height: 32px;
    background: rgba(46, 230, 166, 0.10);
    border: 2px solid var(--green);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: float-y 8s ease-in-out infinite;
    animation-delay: -2s;
}

/* 4) Triangle (bottom-right). */
.shape-tri {
    bottom: 14%; right: 14%;
    width: 0; height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(61, 169, 252, 0.35);
    animation: float-y 12s ease-in-out infinite, spin-slow 40s linear infinite reverse;
}

/* 5) Tiny solid dot (bottom-left, like a layer line marker). */
.shape-dot {
    bottom: 22%; left: 22%;
    width: 12px; height: 12px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 18px var(--green);
    animation: float-y 6s ease-in-out infinite;
    animation-delay: -1s;
}

/* 6) Soft glow blob behind the headline — adds depth without distracting.
      It pulses gently in size + opacity. */
.shape-glow {
    top: 30%; left: 50%;
    width: 380px; height: 380px;
    margin-left: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 230, 166, 0.22), transparent 65%);
    filter: blur(20px);
    opacity: 0.6;
    animation: glow-pulse 7s ease-in-out infinite;
}

/* In light mode, dial the shapes down a touch — they read stronger on white. */
:root[data-theme="light"] .hero-bg .shape { opacity: 0.35; }
:root[data-theme="light"] .shape-glow     { opacity: 0.45; }

/* ---- keyframes used by the shapes ---- */
@keyframes float-y {
    0%, 100% { transform: translateY(0)    rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(0deg); }
}
@keyframes spin-slow {
    to { transform: rotate(360deg); }
}
@keyframes glow-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.55; }
    50%      { transform: scale(1.15); opacity: 0.85; }
}

/* On small screens, hide the bulkier shapes so the text stays the star. */
@media (max-width: 720px) {
    .shape-ring, .shape-tri { display: none; }
    .shape-glow             { width: 260px; height: 260px; margin-left: -130px; }
}

/* =====================================================================
   🎞 HERO SLIDESHOW
   Two .hero-slide sections stacked in the same grid cell. Only the
   one with .is-active is visible; others fade out. JavaScript toggles
   .is-active on a 6.5s timer (pauses on hover/focus).
   ===================================================================== */
.hero-slideshow {
    position: relative;
    display: grid;          /* all slides share grid-area: 1/1 → stacked */
}
.hero-slideshow .hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, transform 0.9s ease;
    transform: scale(0.99);
    pointer-events: none;
}
.hero-slideshow .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

/* Dot navigation — small, unobtrusive, keyboard-friendly. */
.hero-dots {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot:hover         { transform: scale(1.2); }
.hero-dot.is-active     {
    background: var(--green);
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(46, 230, 166, 0.6);
}
.hero-dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ◀ ▶ Prev/next arrows — circular, on the sides of the hero. */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(22, 27, 34, 0.7);   /* matches --panel with translucency */
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(4px);          /* frosted glass over the shapes */
    -webkit-backdrop-filter: blur(4px);
}
.hero-arrow:hover {
    background: rgba(46, 230, 166, 0.18);
    border-color: var(--green);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}
.hero-arrow-prev { left: 8px; }
.hero-arrow-next { right: 8px; }

/* Light-mode tint for the arrow background. */
:root[data-theme="light"] .hero-arrow {
    background: rgba(255, 255, 255, 0.75);
}
:root[data-theme="light"] .hero-arrow:hover {
    background: rgba(26, 171, 122, 0.15);
}

/* On phones, shrink the arrows and pull them closer to the edge. */
@media (max-width: 720px) {
    .hero-arrow      { width: 36px; height: 36px; font-size: 0.95rem; }
    .hero-arrow-prev { left: 4px; }
    .hero-arrow-next { right: 4px; }
}

/* ✨ Eyebrow shimmer — soft highlight sweeps across the chip every few sec. */
.hero .eyebrow {
    position: relative;
    overflow: hidden;
}
.hero .eyebrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(46, 230, 166, 0.35),
        transparent
    );
    transform: skewX(-20deg);
    animation: eyebrow-shimmer 4.5s ease-in-out infinite;
}
@keyframes eyebrow-shimmer {
    0%, 70%, 100% { left: -60%; }
    85%           { left: 120%; }
}

/* =====================================================================
   🎨 SLIDE 2 — its own shape set, so each slide feels distinct.
   Same float/spin/glow keyframes; different positions, colors, shapes.
   ===================================================================== */

/* Smaller wireframe cube, top-right corner (mirror of slide 1's). */
.shape-cube2 {
    position: absolute;
    top: 12%; right: 10%;
    width: 55px; height: 55px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    transform: rotate(-15deg);
    animation: float-y 10s ease-in-out infinite, spin-slow 26s linear infinite reverse;
}
.shape-cube2::before {
    content: ""; position: absolute;
    inset: 7px;
    border: 2px solid var(--green);
    border-radius: 4px;
    opacity: 0.7;
}

/* A bigger ring (top-left) with a green stroke instead of blue. */
.shape-ring2 {
    position: absolute;
    top: 10%; left: 7%;
    width: 100px; height: 100px;
    border: 3px solid var(--green);
    border-radius: 50%;
    box-shadow: inset 0 0 0 10px rgba(61, 169, 252, 0.15);
    animation: float-y 13s ease-in-out infinite, spin-slow 35s linear infinite;
}

/* Hexagon on the right side. */
.shape-hex2 {
    position: absolute;
    top: 55%; right: 12%;
    width: 50px; height: 28px;
    background: rgba(61, 169, 252, 0.10);
    border: 2px solid var(--blue);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: float-y 9s ease-in-out infinite;
    animation-delay: -3s;
}

/* Plus sign (bottom-left) — feels like a "+ create" stamp. */
.shape-plus {
    position: absolute;
    bottom: 18%; left: 14%;
    width: 30px; height: 30px;
    animation: float-y 7s ease-in-out infinite, spin-slow 18s linear infinite;
}
.shape-plus::before,
.shape-plus::after {
    content: "";
    position: absolute;
    background: var(--green);
    border-radius: 2px;
}
.shape-plus::before { left: 13px; top: 0;  width: 4px;  height: 100%; }
.shape-plus::after  { top: 13px;  left: 0; width: 100%; height: 4px;  }

/* Sparkle (bottom-right) — small star-like accent. */
.shape-spark {
    position: absolute;
    bottom: 24%; right: 22%;
    width: 16px; height: 16px;
    background:
        radial-gradient(circle at 50% 50%, var(--blue) 0 30%, transparent 31%);
    animation: spark-twinkle 2.4s ease-in-out infinite;
}
.shape-spark::before,
.shape-spark::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(var(--blue), var(--blue)) center/2px 100% no-repeat,
        linear-gradient(var(--blue), var(--blue)) center/100% 2px no-repeat;
}
.shape-spark::after {
    transform: rotate(45deg);
    opacity: 0.7;
}

/* Slide 2's glow blob — blue-tinted to feel different from slide 1's green. */
.shape-glow2 {
    position: absolute;
    top: 30%; left: 50%;
    width: 380px; height: 380px;
    margin-left: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 169, 252, 0.22), transparent 65%);
    filter: blur(20px);
    opacity: 0.6;
    animation: glow-pulse 7s ease-in-out infinite;
}

@keyframes spark-twinkle {
    0%, 100% { transform: scale(1)   rotate(0deg);   opacity: 0.9; }
    50%      { transform: scale(1.3) rotate(90deg);  opacity: 0.4; }
}

/* Light-mode + small-screen tweaks for the slide-2 shapes. */
:root[data-theme="light"] .hero-bg .shape-cube2,
:root[data-theme="light"] .hero-bg .shape-ring2,
:root[data-theme="light"] .hero-bg .shape-hex2,
:root[data-theme="light"] .hero-bg .shape-plus,
:root[data-theme="light"] .hero-bg .shape-spark { opacity: 0.4; }
:root[data-theme="light"] .shape-glow2          { opacity: 0.45; }

@media (max-width: 720px) {
    .shape-ring2, .shape-spark { display: none; }
    .shape-glow2               { width: 260px; height: 260px; margin-left: -130px; }
}

/* ♿ Reduced motion — anyone who prefers less movement gets a still hero. */
@media (prefers-reduced-motion: reduce) {
    .reveal       { opacity: 1; transform: none; animation: none; }
    .pop-animated { animation: none; }
    .hero-bg .shape { animation: none !important; }
    .hero .eyebrow::after { animation: none; }
    .hero-slideshow .hero-slide { transition: none; }
}

/* =====================================================================
   🎨 BRAND KIT PAGE  (/branding)
   ===================================================================== */
.brand-section          { margin-top: 56px; }
.brand-section:first-of-type { margin-top: 40px; }
.brand-section-title    {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Logo showcase row --- */
.brand-logo-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: center;
    margin-top: 18px;
}
.brand-logo-card {
    background: linear-gradient(135deg, rgba(46,230,166,0.08), rgba(61,169,252,0.08));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.brand-logo-card img {
    display: block;
    margin: 0 auto 12px;
    max-width: 100%;
    height: auto;
}
.brand-logo-info h3 { margin-bottom: 8px; }
.brand-logo-info p  { margin-bottom: 14px; }

/* --- Color grid --- */
.brand-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.brand-color-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    text-align: left;
    cursor: pointer;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.18s ease, border-color 0.18s ease;
    font-family: inherit;
}
.brand-color-card:hover {
    transform: translateY(-2px);
    border-color: var(--green);
}
.brand-color-card strong { font-size: 0.98rem; }
.brand-color-card code   {
    background: rgba(255,255,255,0.06);
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.85rem;
    width: max-content;
}
.brand-swatch {
    display: block;
    width: 100%;
    height: 56px;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 8px;
}

/* --- Signature gradient demo block --- */
.brand-gradient-block {
    margin-top: 20px;
    height: 90px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #2ee6a6, #3da9fc);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 30px rgba(46, 230, 166, 0.20);
}
.brand-gradient-label {
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
}

/* --- Typography cards --- */
.brand-font-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}
.brand-font-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.brand-font-name   { font-size: 2.2rem; margin-bottom: 4px; }
.brand-font-sample { margin-top: 12px; line-height: 1.7; color: var(--white); }

/* --- Usage rules --- */
.brand-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}
.brand-rules-col {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.brand-rules-heading { margin-bottom: 10px; font-family: 'Fredoka', sans-serif; }
.brand-rules         { list-style: none; padding: 0; margin: 0; }
.brand-rules li      {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
}
.brand-rules li:last-child { border-bottom: none; }

@media (max-width: 720px) {
    .brand-logo-row,
    .brand-font-grid,
    .brand-rules-grid { grid-template-columns: 1fr; }
}
