﻿/* ================================================================
   site.css — ToolsCenterPro.com
   Shared stylesheet for all pages
   Version: 1.1
   Last updated: 2025
================================================================ */


/* ================================================================
   1. RESET & BASE
================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--surface);
    color: var(--on-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font); }


/* ================================================================
   2. CSS VARIABLES (Design Tokens)
================================================================ */

:root {

    /* --- Brand Colors --- */
    --primary:                #005da7;
    --primary-dark:           #004883;
    --primary-light:          #d3e3ff;
    --primary-container:      #0076d1;

    /* Calculators = Blue */
    --color-calculators:      #005da7;
    --color-calculators-bg:   #e6f1fb;

    /* Converters = Teal/Mint Green */
    --secondary:              #006b59;
    --secondary-dark:         #005142;
    --secondary-container:    #58fcd7;
    --secondary-light:        #e0faf4;

    /* PDF Tools = Coral/Red */
    --tertiary:               #a13832;
    --tertiary-dark:          #84231f;
    --tertiary-container:     #c25047;
    --tertiary-light:         #ffdad6;

    /* Security/Dev = Purple */
    --color-security:         #534AB7;
    --color-security-bg:      #EEEDFE;

    /* Text Tools = Amber */
    --color-text-tools:       #BA7517;
    --color-text-tools-bg:    #FAEEDA;

    /* --- Surfaces --- */
    --surface:                #f8f9ff;
    --surface-dim:            #cbdbf5;
    --surface-bright:         #f8f9ff;
    --surface-container:      #e5eeff;
    --surface-container-low:  #eff4ff;
    --surface-container-high: #dce9ff;
    --surface-white:          #ffffff;

    /* --- Text --- */
    --on-surface:             #0b1c30;
    --on-surface-muted:       #404753;
    --on-primary:             #ffffff;
    --on-secondary:           #ffffff;

    /* --- Borders --- */
    --outline:                #707785;
    --outline-variant:        #c0c7d5;

    /* --- Semantic --- */
    --color-success:          #1D9E75;
    --color-success-bg:       #E1F5EE;
    --color-error:            #ba1a1a;
    --color-error-bg:         #ffdad6;
    --color-warning:          #BA7517;
    --color-warning-bg:       #FAEEDA;
    --color-info:             #185FA5;
    --color-info-bg:          #E6F1FB;

    /* --- Typography --- */
    --font:                   'Plus Jakarta Sans', sans-serif;

    /* --- Spacing --- */
    --gap-xs:                 4px;
    --gap-sm:                 8px;
    --gap-md:                 16px;
    --gap-lg:                 24px;
    --gap-xl:                 40px;

    /* --- Radius --- */
    --radius-sm:              8px;
    --radius-md:              12px;
    --radius-lg:              16px;
    --radius-xl:              24px;
    --radius-full:            9999px;

    /* --- Shadows --- */
    --shadow-card:            0 12px 32px rgba(0, 0, 0, 0.04);
    --shadow-nav:             0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-btn-primary:     0 6px 20px rgba(0, 93, 167, 0.25);
    --shadow-btn-secondary:   0 6px 20px rgba(0, 107, 89, 0.25);
    --shadow-btn-tertiary:    0 6px 20px rgba(161, 56, 50, 0.25);

    /* --- Layout --- */
    --container-max:          1280px;
    --sidebar-width:          230px;
    --topnav-height:          64px;
}


/* ================================================================
   3. MATERIAL SYMBOLS ICON FONT
================================================================ */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
    user-select: none;
}


/* ================================================================
   4. GLASS CARD
================================================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-xl);
}

.glass-card-flat {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-xl);
}


/* ================================================================
   5. TOP NAVIGATION
================================================================ */

.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 249, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow-nav);
}

.topnav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-xl);
    height: var(--topnav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-lg);
}

.topnav-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.topnav-logo:hover { opacity: 0.85; }

.topnav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.topnav-links a {
    font-size: 15px;
    font-weight: 400;
    color: var(--on-surface-muted);
    text-decoration: none;
    transition: color 0.2s;
    padding-bottom: 2px;
    white-space: nowrap;
}

.topnav-links a:hover { color: var(--primary); }

.topnav-links a.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}

.topnav-links a.active-calculators { color: var(--color-calculators); border-bottom-color: var(--color-calculators); }
.topnav-links a.active-converters  { color: var(--secondary);         border-bottom-color: var(--secondary); }
.topnav-links a.active-pdf         { color: var(--tertiary);           border-bottom-color: var(--tertiary); }
.topnav-links a.active-security    { color: var(--color-security);     border-bottom-color: var(--color-security); }
.topnav-links a.active-qr          { color: var(--primary);            border-bottom-color: var(--primary); font-weight: 700; }

.topnav-icons { display: flex; gap: var(--gap-sm); }

.topnav-icons button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 22px;
}

.topnav-icons button:hover { background: rgba(0, 93, 167, 0.08); }


/* ================================================================
   6. PAGE LAYOUT
================================================================ */

.layout {
    display: flex;
    flex: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}


/* ================================================================
   7. LEFT SIDEBAR
================================================================ */

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--outline-variant);
    position: sticky;
    top: var(--topnav-height);
    height: calc(100vh - var(--topnav-height));
    overflow: hidden;
    background: var(--surface-white);
}

.sidebar-header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--outline-variant);
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 2px;
    padding: 0;
}

.sidebar-sub {
    font-size: 11px;
    color: var(--on-surface-muted);
    margin: 0;
    padding: 0;
}

/* Scrollable nav area */
.sidebar-nav-tree {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--outline-variant) transparent;
}

.sidebar-nav-tree::-webkit-scrollbar       { width: 4px; }
.sidebar-nav-tree::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav-tree::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: 4px; }

/* Sidebar footer */
.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--outline-variant);
    flex-shrink: 0;
}

.sidebar-cta {
    width: 100%;
    padding: 11px 16px;
    background: var(--secondary-container);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-cta:hover { filter: brightness(0.93); }


/* ================================================================
   8. SIDEBAR TREE MENU
================================================================ */

/* QR Code featured item */
.sidebar-qr-wrap {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--outline-variant);
    margin-bottom: 4px;
}

.sidebar-qr-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #005da7 0%, #006b59 100%);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    color: #fff;
}

.sidebar-qr-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.sidebar-qr-icon {
    font-size: 20px !important;
    flex-shrink: 0;
    color: #fff;
}

.sidebar-qr-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-qr-hot {
    background: #ff3b3b;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    animation: qr-pulse 2s ease-in-out infinite;
}

@keyframes qr-pulse {
    0%, 100% { opacity: 1;    transform: scale(1);    }
    50%       { opacity: 0.7; transform: scale(0.95); }
}

.sidebar-qr-active {
    box-shadow: 0 4px 16px rgba(0, 93, 167, 0.35);
}

/* ── Group container ──────────────────────────────── */
.stree-group {
    margin: 1px 6px;
    border-radius: var(--radius-md);
}

/* ── Group header button ──────────────────────────── */
.stree-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-family: var(--font);
    transition: background 0.15s;
    text-align: left;
}

.stree-btn:hover { background: var(--surface-container-low); }
.stree-group.open > .stree-btn { background: var(--surface-container-low); }

/* Group icon */
.stree-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stree-icon .material-symbols-outlined { font-size: 15px !important; }

.stree-icon-pdf  { background: rgba(161, 56, 50, 0.12); color: var(--tertiary); }
.stree-icon-calc { background: rgba(0, 93, 167, 0.12);  color: var(--primary); }
.stree-icon-conv { background: rgba(0, 107, 89, 0.12);  color: var(--secondary); }
.stree-icon-sec  { background: rgba(83, 74, 183, 0.12); color: var(--color-security); }
.stree-icon-text { background: rgba(186,117, 23, 0.12); color: var(--color-text-tools); }

/* Group label */
.stree-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--on-surface);
    flex: 1;
    white-space: nowrap;
}

/* Count badge */
.stree-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--on-surface-muted);
    background: var(--surface-container);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    min-width: 20px;
    text-align: center;
}

/* Chevron */
.stree-chevron {
    font-size: 16px !important;
    color: var(--outline);
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.stree-group.open > .stree-btn .stree-chevron {
    transform: rotate(90deg);
    color: var(--primary);
}

/* ── Collapsible items list ───────────────────────── */
.stree-items {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    margin: 0 0 0 16px;
    padding: 0;
    border-left: 2px solid var(--outline-variant);
}

.stree-group.open > .stree-items {
    max-height: 800px;
    margin-bottom: 4px;
}

.stree-items li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--on-surface-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.12s, color 0.12s;
    margin: 1px 4px 1px 0;
}

.stree-items li a:hover {
    background: var(--surface-container-low);
    color: var(--on-surface);
}

.stree-items li a .material-symbols-outlined {
    font-size: 14px !important;
    flex-shrink: 0;
    color: var(--outline);
}

/* ── Active item styles ───────────────────────────── */
.stree-active { font-weight: 700 !important; }

.stree-active-pdf  { background: rgba(161, 56, 50, 0.07) !important; color: var(--tertiary)         !important; }
.stree-active-calc { background: rgba(0,  93, 167, 0.07) !important; color: var(--primary)           !important; }
.stree-active-conv { background: rgba(0, 107,  89, 0.07) !important; color: var(--secondary)         !important; }
.stree-active-sec  { background: rgba(83,  74, 183, 0.07)!important; color: var(--color-security)    !important; }
.stree-active-text { background: rgba(186,117,  23, 0.07)!important; color: var(--color-text-tools)  !important; }

.stree-active-pdf  .material-symbols-outlined { color: var(--tertiary)         !important; }
.stree-active-calc .material-symbols-outlined { color: var(--primary)           !important; }
.stree-active-conv .material-symbols-outlined { color: var(--secondary)         !important; }
.stree-active-sec  .material-symbols-outlined { color: var(--color-security)    !important; }
.stree-active-text .material-symbols-outlined { color: var(--color-text-tools)  !important; }

/* Active group left border color */
.stree-group.open:has(.stree-active-pdf)  > .stree-items { border-left-color: var(--tertiary); }
.stree-group.open:has(.stree-active-calc) > .stree-items { border-left-color: var(--primary); }
.stree-group.open:has(.stree-active-conv) > .stree-items { border-left-color: var(--secondary); }
.stree-group.open:has(.stree-active-sec)  > .stree-items { border-left-color: var(--color-security); }
.stree-group.open:has(.stree-active-text) > .stree-items { border-left-color: var(--color-text-tools); }


/* ================================================================
   9. MAIN CONTENT AREA
================================================================ */

.main { flex: 1; padding: var(--gap-xl); min-width: 0; }
.main-inner { max-width: 900px; margin: 0 auto; }


/* ================================================================
   10. BREADCRUMB
================================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: 14px;
    color: var(--on-surface-muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--on-surface-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { font-size: 16px; color: var(--outline-variant); }
.breadcrumb .current { color: var(--primary); font-weight: 600; }


/* ================================================================
   11. PAGE HERO
================================================================ */

.page-hero { text-align: center; margin-bottom: 40px; }

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.category-chip .material-symbols-outlined { font-size: 18px; }

.chip-pdf      { background: rgba(88,252,215,0.2);        color: var(--secondary);        border: 1px solid rgba(88,252,215,0.4); }
.chip-calc     { background: var(--color-calculators-bg); color: var(--color-calculators); border: 1px solid rgba(0,93,167,0.25); }
.chip-conv     { background: var(--secondary-light);       color: var(--secondary);        border: 1px solid rgba(0,107,89,0.25); }
.chip-security { background: var(--color-security-bg);     color: var(--color-security);   border: 1px solid rgba(83,74,183,0.25); }
.chip-text     { background: var(--color-text-tools-bg);   color: var(--color-text-tools); border: 1px solid rgba(186,117,23,0.25); }
.chip-qr       { background: var(--primary-light);         color: var(--primary);          border: 1px solid rgba(0,93,167,0.25); }

.page-hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    color: var(--on-surface-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ================================================================
   12. BENTO GRID
================================================================ */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap-lg); }
.col-12 { grid-column: span 12; }
.col-9  { grid-column: span 9; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }


/* ================================================================
   13. BUTTONS
================================================================ */

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-md); font-family: var(--font);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-btn-primary);
}
.btn-primary:hover    { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,93,167,0.32); }
.btn-primary:active   { transform: scale(0.97); }
.btn-primary:disabled { background: var(--outline-variant); cursor: not-allowed; box-shadow: none; transform: none; }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; background: var(--secondary); color: #fff;
    border: none; border-radius: var(--radius-md); font-family: var(--font);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-btn-secondary);
}
.btn-secondary:hover    { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,107,89,0.32); }
.btn-secondary:active   { transform: scale(0.97); }
.btn-secondary:disabled { background: var(--outline-variant); cursor: not-allowed; box-shadow: none; transform: none; }

.btn-tertiary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; background: var(--tertiary); color: #fff;
    border: none; border-radius: var(--radius-md); font-family: var(--font);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-btn-tertiary);
}
.btn-tertiary:hover    { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(161,56,50,0.32); }
.btn-tertiary:active   { transform: scale(0.97); }
.btn-tertiary:disabled { background: var(--outline-variant); cursor: not-allowed; box-shadow: none; transform: none; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; background: transparent; color: var(--primary);
    border: 1.5px solid var(--primary); border-radius: var(--radius-md);
    font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-action {
    width: 100%; padding: 16px; border: none; border-radius: var(--radius-md);
    font-family: var(--font); font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s; margin-top: 20px;
}
.btn-action .material-symbols-outlined { font-size: 20px; }
.btn-action:disabled { background: var(--outline-variant) !important; cursor: not-allowed; box-shadow: none !important; transform: none !important; }
.btn-action:active   { transform: scale(0.98) !important; }

.btn-action-blue   { background: var(--primary);        color: #fff; box-shadow: var(--shadow-btn-primary); }
.btn-action-teal   { background: var(--secondary);      color: #fff; box-shadow: var(--shadow-btn-secondary); }
.btn-action-coral  { background: var(--tertiary);       color: #fff; box-shadow: var(--shadow-btn-tertiary); }
.btn-action-purple { background: var(--color-security); color: #fff; box-shadow: 0 6px 20px rgba(83,74,183,0.25); }

.btn-action-blue:hover   { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,93,167,0.30); }
.btn-action-teal:hover   { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,107,89,0.30); }
.btn-action-coral:hover  { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(161,56,50,0.30); }
.btn-action-purple:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(83,74,183,0.30); }


/* ================================================================
   14. FORM INPUTS
================================================================ */

.tcp-input, .tcp-select, .tcp-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-container-low);
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    color: var(--on-surface);
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.tcp-input:focus, .tcp-select:focus, .tcp-textarea:focus {
    border-color: var(--primary);
    background: var(--surface-white);
    box-shadow: 0 0 0 3px rgba(0, 93, 167, 0.12);
}

.tcp-input::placeholder, .tcp-textarea::placeholder { color: var(--outline); }
.tcp-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.tcp-label { display: block; font-size: 13px; font-weight: 600; color: var(--on-surface-muted); margin-bottom: 6px; }
.tcp-field { margin-bottom: 16px; }


/* ================================================================
   15. PROGRESS BAR
================================================================ */

.progress-wrap { display: none; width: 100%; margin-top: 16px; }
.progress-wrap.visible { display: block; }

.progress-label {
    display: flex; justify-content: space-between;
    font-size: 12px; font-weight: 600;
    color: var(--on-surface-muted); margin-bottom: 8px;
}

.progress-track {
    width: 100%; height: 8px;
    background: var(--surface-container);
    border-radius: var(--radius-full); overflow: hidden;
}

.progress-fill {
    height: 100%; width: 0%;
    border-radius: var(--radius-full);
    transition: width 0.2s ease;
}

.progress-fill-teal  { background: linear-gradient(90deg, var(--secondary) 0%, #2cdfbc 100%); }
.progress-fill-blue  { background: linear-gradient(90deg, var(--primary)   0%, #4da6ff 100%); }
.progress-fill-coral { background: linear-gradient(90deg, var(--tertiary)  0%, #e07060 100%); }


/* ================================================================
   16. RESULT BOX
================================================================ */

.result-box { display: none; margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid; }
.result-box.visible { display: block; }

.result-box-teal  { background: rgba(0,107,89,0.06);  border-color: rgba(0,107,89,0.2); }
.result-box-blue  { background: rgba(0,93,167,0.06);  border-color: rgba(0,93,167,0.2); }
.result-box-coral { background: rgba(161,56,50,0.06); border-color: rgba(161,56,50,0.2); }

.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.result-item { text-align: center; }
.result-num  { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.result-lbl  { font-size: 12px; font-weight: 600; color: var(--on-surface-muted); margin-top: 2px; }

.result-num-teal  { color: var(--secondary); }
.result-num-blue  { color: var(--primary); }
.result-num-coral { color: var(--tertiary); }


/* ================================================================
   17. STATUS MESSAGE
================================================================ */

.tool-status {
    margin-top: 12px; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; gap: 6px; min-height: 22px;
}
.tool-status.success { color: var(--color-success); }
.tool-status.error   { color: var(--color-error); }
.tool-status.info    { color: var(--primary); }


/* ================================================================
   18. INFO / SECURITY SIDEBAR CARD
================================================================ */

.info-card { padding: 28px; display: flex; flex-direction: column; height: 100%; }

.info-card-icon-wrap {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.info-card-icon-wrap .material-symbols-outlined { font-size: 24px; }

.info-card-icon-teal   { background: rgba(0,107,89,0.10);  color: var(--secondary); }
.info-card-icon-blue   { background: rgba(0,93,167,0.10);  color: var(--primary); }
.info-card-icon-coral  { background: rgba(161,56,50,0.10); color: var(--tertiary); }
.info-card-icon-purple { background: rgba(83,74,183,0.10); color: var(--color-security); }

.info-card h3 { font-size: 18px; font-weight: 600; color: var(--on-surface); margin-bottom: 12px; }
.info-card p  { font-size: 15px; color: var(--on-surface-muted); line-height: 1.65; flex: 1; }

.info-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 24px; font-size: 14px; font-weight: 700;
    text-decoration: none; transition: gap 0.2s;
}
.info-card-link:hover { gap: 10px; }
.info-card-link .material-symbols-outlined { font-size: 18px; }

.info-card-link-teal  { color: var(--secondary); }
.info-card-link-blue  { color: var(--primary); }
.info-card-link-coral { color: var(--tertiary); }


/* ================================================================
   19. FEATURE STRIP
================================================================ */

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 28px; }

.feature-card {
    background: var(--surface-white);
    border: 1px solid var(--outline-variant);
    border-radius: 18px; padding: 24px;
    transition: border-color 0.2s, transform 0.15s;
}
.feature-card:hover { border-color: var(--outline); transform: translateY(-2px); }

.feature-icon-wrap {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--surface-container-low);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-icon-wrap .material-symbols-outlined { font-size: 22px; color: var(--on-surface-muted); }
.feature-title { font-size: 16px; font-weight: 600; color: var(--on-surface); margin-bottom: 8px; }
.feature-desc  { font-size: 14px; color: var(--on-surface-muted); line-height: 1.6; }


/* ================================================================
   20. SEO CONTENT SECTION
================================================================ */

.seo-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--outline-variant); }
.seo-section h2 { font-size: 24px; font-weight: 700; color: var(--on-surface); margin-bottom: 14px; letter-spacing: -0.01em; }
.seo-section h3 { font-size: 18px; font-weight: 600; color: var(--on-surface); margin: 28px 0 10px; }
.seo-section p  { font-size: 16px; color: var(--on-surface-muted); line-height: 1.75; margin-bottom: 12px; }
.seo-section ul,
.seo-section ol { padding-left: 20px; font-size: 16px; color: var(--on-surface-muted); line-height: 2; list-style: revert; }


/* ================================================================
   21. FAQ ACCORDION
================================================================ */

.faq { margin-top: 40px; }
.faq h2 { font-size: 24px; font-weight: 700; color: var(--on-surface); margin-bottom: 20px; letter-spacing: -0.01em; }
.faq-item { border-bottom: 1px solid var(--outline-variant); }

.faq-q {
    width: 100%; background: none; border: none; padding: 18px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font); font-size: 16px; font-weight: 600;
    color: var(--on-surface); cursor: pointer; text-align: left; gap: 16px;
}
.faq-q .material-symbols-outlined { font-size: 20px; color: var(--outline); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q .material-symbols-outlined { transform: rotate(180deg); color: var(--primary); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 15px; color: var(--on-surface-muted); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 18px; }


/* ================================================================
   22. RELATED TOOLS
================================================================ */

.related { margin-top: 48px; }
.related h2 { font-size: 22px; font-weight: 700; color: var(--on-surface); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

.related-card {
    background: var(--surface-white); border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg); padding: 18px; text-decoration: none;
    transition: border-color 0.2s, transform 0.15s; display: block;
}
.related-card:hover { transform: translateY(-2px); }

.related-card-pdf:hover      { border-color: var(--tertiary); }
.related-card-calc:hover     { border-color: var(--primary); }
.related-card-conv:hover     { border-color: var(--secondary); }
.related-card-security:hover { border-color: var(--color-security); }
.related-card-text:hover     { border-color: var(--color-text-tools); }

.related-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.related-icon .material-symbols-outlined { font-size: 20px; }

.related-icon-pdf      { background: rgba(161,56,50,0.08); color: var(--tertiary); }
.related-icon-calc     { background: rgba(0,93,167,0.08);  color: var(--primary); }
.related-icon-conv     { background: rgba(0,107,89,0.08);  color: var(--secondary); }
.related-icon-security { background: rgba(83,74,183,0.08); color: var(--color-security); }
.related-icon-text     { background: rgba(186,117,23,0.10); color: var(--color-text-tools); }

.related-name { font-size: 14px; font-weight: 700; color: var(--on-surface); margin-bottom: 4px; }
.related-desc { font-size: 12px; color: var(--on-surface-muted); line-height: 1.4; }


/* ================================================================
   23. CALCULATOR DISPLAY & BUTTONS
================================================================ */

.calc-display {
    width: 100%; background: #000; color: #00ff88;
    font-size: 28px; font-family: 'Courier New', monospace;
    text-align: right; padding: 16px 20px; border: none;
    border-radius: var(--radius-md); margin-bottom: 16px;
    letter-spacing: 0.02em; min-height: 70px; box-sizing: border-box;
}
.calc-display:focus { outline: none; box-shadow: 0 0 0 2px var(--primary); }

.calc-history { background: var(--surface-container-low); border-radius: var(--radius-lg); padding: 20px; height: 100%; }
.calc-history-title { font-size: 14px; font-weight: 700; color: var(--on-surface); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.calc-history-item { padding: 10px 12px; background: var(--surface-white); border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 13px; color: var(--on-surface-muted); }
.calc-history-item .history-result { font-size: 16px; font-weight: 700; color: var(--primary); display: block; margin-top: 2px; }

.calc-btn { height: 52px; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.1s, filter 0.1s; width: 100%; }
.calc-btn:hover  { filter: brightness(1.1); }
.calc-btn:active { transform: scale(0.94); }
.calc-btn-num  { background: #2a2a2a; color: #fff; }
.calc-btn-op   { background: var(--primary);       color: #fff; }
.calc-btn-fn   { background: #534AB7;              color: #fff; }
.calc-btn-eq   { background: var(--color-success); color: #fff; }
.calc-btn-clr  { background: var(--color-error);   color: #fff; }
.calc-btn-ac   { background: var(--color-warning);  color: #fff; }


/* ================================================================
   24. CODE OUTPUT BOX
================================================================ */

.code-output {
    background: #0d1117; color: #58fcd7;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px; padding: 16px 20px;
    border-radius: var(--radius-md); white-space: pre-wrap;
    word-break: break-all; line-height: 1.65;
    border: 1px solid rgba(88,252,215,0.15);
    min-height: 80px; margin-top: 12px;
}
.code-section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-surface-muted); margin-top: 16px; margin-bottom: 6px; }


/* ================================================================
   25. HASH RESULT ROWS
================================================================ */

.hash-row { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; }
.hash-algo  { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-security); margin-bottom: 4px; }
.hash-value { font-family: 'Courier New', monospace; font-size: 13px; color: var(--on-surface); word-break: break-all; line-height: 1.5; }


/* ================================================================
   26. CONVERTER INPUT PAIR
================================================================ */

.converter-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 20px; }

.converter-swap-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface-container); border: 1px solid var(--outline-variant);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s, transform 0.2s;
    color: var(--on-surface-muted); font-size: 20px;
}
.converter-swap-btn:hover { background: var(--primary); color: #fff; transform: rotate(180deg); }

.converter-rate { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.converter-rate span { font-size: 14px; font-weight: 400; color: var(--on-surface-muted); margin-right: 6px; }


/* ================================================================
   27. FOOTER
================================================================ */

footer {
    background: var(--surface-white);
    border-top: 1px solid var(--outline-variant);
    padding: 32px var(--gap-xl);
    margin-top: auto;
}

.footer-inner { max-width: var(--container-max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.footer-copy  { font-size: 12px; color: var(--on-surface-muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--on-surface-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }


/* ================================================================
   28. UTILITY CLASSES
================================================================ */

.d-none       { display: none !important; }
.d-flex       { display: flex; }
.d-grid       { display: grid; }
.d-block      { display: block; }
.visible      { display: block !important; }
.flex-visible { display: flex !important; }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--on-surface-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--color-success); }
.text-error   { color: var(--color-error); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.fw-bold      { font-weight: 700; }
.fw-semibold  { font-weight: 600; }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }
.w-full { width: 100%; }


/* ================================================================
   29. RESPONSIVE BREAKPOINTS
================================================================ */

@media (max-width: 1024px) {
    .sidebar         { display: none; }
    .topnav-links    { display: none; }
    .main            { padding: 24px 20px; }
    .col-8, .col-4, .col-9, .col-3 { grid-column: span 12; }
    .col-6           { grid-column: span 12; }
    .features        { grid-template-columns: 1fr 1fr; }
    .related-grid    { grid-template-columns: repeat(2,1fr); }
    .converter-pair  { grid-template-columns: 1fr; }
    .converter-swap-btn { display: none; }
}

@media (max-width: 640px) {
    .topnav-inner { padding: 0 16px; }
    .main         { padding: 20px 16px; }
    .bento        { gap: 16px; }
    .features     { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .result-grid  { grid-template-columns: 1fr; gap: 10px; }
    .page-hero h1 { font-size: 26px; }
    .page-hero p  { font-size: 16px; }
    footer        { padding: 24px 16px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ================================================================
   SIDEMENU — Fixed sidebar web user control (SiteMenu.ascx)
   Add this at the END of site.css replacing old sidebar styles
================================================================ */

/* ── Sidebar fixed container ──────────────────── */
.sidemenu {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface-white);
    border-right: 1px solid var(--outline-variant);

    /* Fixed: stays in place while page content scrolls */
    position: fixed;
    top: var(--topnav-height);
    left: 0;
    height: calc(100vh - var(--topnav-height));
    z-index: 50;
    overflow: hidden;
}

/* Push main content right to make room for fixed sidebar */
.layout {
    padding-left: var(--sidebar-width);
}

/* ── Fixed top section ────────────────────────── */
.sidemenu-top {
    flex-shrink: 0;
    border-bottom: 1px solid var(--outline-variant);
}

.sidemenu-header {
    padding: 18px 16px 10px;
}

.sidemenu-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 2px;
}

.sidemenu-sub {
    font-size: 11px;
    color: var(--on-surface-muted);
    margin: 0;
}

/* ── QR Code featured button ──────────────────── */
.sidemenu-qr-wrap {
    padding: 8px 10px 12px;
}

.sidemenu-qr-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #005da7 0%, #006b59 100%);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s, transform 0.15s;
    overflow: hidden;
}

.sidemenu-qr-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.sidemenu-qr-active {
    box-shadow: 0 4px 16px rgba(0,93,167,0.30);
}

.sidemenu-qr-icon {
    font-size: 20px !important;
    flex-shrink: 0;
    color: #fff;
}

.sidemenu-qr-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidemenu-qr-hot {
    background: #ff3b3b;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    animation: qr-hot-pulse 2s ease-in-out infinite;
}

@keyframes qr-hot-pulse {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.94); }
}

/* ── Scrollable tool list area ────────────────── */
.sidemenu-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--outline-variant) transparent;
}

.sidemenu-scroll::-webkit-scrollbar       { width: 3px; }
.sidemenu-scroll::-webkit-scrollbar-track { background: transparent; }
.sidemenu-scroll::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: 4px; }

/* ── Fixed bottom CTA ─────────────────────────── */
.sidemenu-bottom {
    flex-shrink: 0;
    padding: 10px;
    border-top: 1px solid var(--outline-variant);
}

.sidemenu-cta {
    width: 100%;
    padding: 11px 16px;
    background: var(--secondary-container);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidemenu-cta:hover { filter: brightness(0.93); }
.sidemenu-cta .material-symbols-outlined { font-size: 16px; }

/* ── Group container ──────────────────────────── */
.smenu-group {
    margin: 1px 6px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ── Group header button ──────────────────────── */
.smenu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-family: var(--font);
    transition: background 0.15s;
    text-align: left;
}

.smenu-btn:hover { background: var(--surface-container-low); }
.smenu-group.open > .smenu-btn { background: var(--surface-container-low); }

/* ── Group icon ───────────────────────────────── */
.smenu-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.smenu-icon .material-symbols-outlined { font-size: 15px !important; }

.smenu-icon-pdf  { background: rgba(161, 56, 50, 0.12); color: var(--tertiary); }
.smenu-icon-calc { background: rgba(0,  93, 167, 0.12); color: var(--primary); }
.smenu-icon-conv { background: rgba(0, 107,  89, 0.12); color: var(--secondary); }
.smenu-icon-sec  { background: rgba(83,  74, 183, 0.12); color: var(--color-security); }
.smenu-icon-text { background: rgba(186,117,  23, 0.12); color: var(--color-text-tools); }

/* ── Group label ──────────────────────────────── */
.smenu-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--on-surface);
    flex: 1;
    white-space: nowrap;
    text-align: left;
}

/* ── Count badge ──────────────────────────────── */
.smenu-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--on-surface-muted);
    background: var(--surface-container);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    min-width: 20px;
    text-align: center;
}

/* ── Chevron icon ─────────────────────────────── */
.smenu-chevron {
    font-size: 16px !important;
    color: var(--outline);
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.smenu-group.open > .smenu-btn .smenu-chevron {
    transform: rotate(90deg);
    color: var(--primary);
}

/* ── Collapsible items list ───────────────────── */
.smenu-items {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    margin: 0 6px 0 18px;
    padding: 0;
    border-left: 2px solid var(--outline-variant);
}

.smenu-group.open > .smenu-items {
    max-height: 800px;
    margin-bottom: 4px;
}

/* Active group left border colors */
.smenu-group.open:has(.smenu-active-pdf)  > .smenu-items { border-left-color: var(--tertiary); }
.smenu-group.open:has(.smenu-active-calc) > .smenu-items { border-left-color: var(--primary); }
.smenu-group.open:has(.smenu-active-conv) > .smenu-items { border-left-color: var(--secondary); }
.smenu-group.open:has(.smenu-active-sec)  > .smenu-items { border-left-color: var(--color-security); }
.smenu-group.open:has(.smenu-active-text) > .smenu-items { border-left-color: var(--color-text-tools); }

/* ── Tool item links ──────────────────────────── */
.smenu-items li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--on-surface-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.12s, color 0.12s;
    margin: 1px 4px 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smenu-items li a:hover {
    background: var(--surface-container-low);
    color: var(--on-surface);
}

.smenu-items li a .material-symbols-outlined {
    font-size: 14px !important;
    flex-shrink: 0;
    color: var(--outline);
}

/* ── Active item styles ───────────────────────── */
.smenu-active { font-weight: 700 !important; }

.smenu-active-pdf  { background: rgba(161, 56, 50, 0.07) !important; color: var(--tertiary)         !important; }
.smenu-active-calc { background: rgba(0,  93, 167, 0.07) !important; color: var(--primary)           !important; }
.smenu-active-conv { background: rgba(0, 107,  89, 0.07) !important; color: var(--secondary)         !important; }
.smenu-active-sec  { background: rgba(83,  74, 183, 0.07)!important; color: var(--color-security)    !important; }
.smenu-active-text { background: rgba(186,117,  23, 0.07)!important; color: var(--color-text-tools)  !important; }

.smenu-active-pdf  .material-symbols-outlined { color: var(--tertiary)         !important; }
.smenu-active-calc .material-symbols-outlined { color: var(--primary)           !important; }
.smenu-active-conv .material-symbols-outlined { color: var(--secondary)         !important; }
.smenu-active-sec  .material-symbols-outlined { color: var(--color-security)    !important; }
.smenu-active-text .material-symbols-outlined { color: var(--color-text-tools)  !important; }

/* ── Responsive: hide sidebar on tablet/mobile ── */
@media (max-width: 1024px) {
    .sidemenu        { display: none; }
    .layout          { padding-left: 0; }
}


/* ================================================================
   27. FOOTER — full width, always outside sidebar
================================================================ */

footer {
    background: var(--surface-white);
    border-top: 1px solid var(--outline-variant);
    padding: 28px 40px;
    margin-top: auto;

    /* KEY FIX: footer must always be full width */
    width: 100%;
    position: relative;
    z-index: 10;
    /* Push footer content away from fixed sidebar */
    padding-left: calc(var(--sidebar-width) + 40px);
}

.footer-inner {
    max-width: calc(var(--container-max) - var(--sidebar-width));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.footer-copy {
    font-size: 12px;
    color: var(--on-surface-muted);
    white-space: nowrap;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--on-surface-muted);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-links a:hover { color: var(--primary); }

.footer-share {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-share-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--on-surface);
}

.footer-share-label .material-symbols-outlined {
    font-size: 16px;
}

.footer-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-container-low);
    color: var(--on-surface-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s, transform 0.2s;
}

.footer-share-icon .material-symbols-outlined {
    font-size: 17px;
}

.footer-share-icon:hover {
    transform: translateY(-2px);
    color: #fff;
}

.footer-share-fb:hover   { background: #1877F2; }
.footer-share-x:hover    { background: #000; }
.footer-share-wa:hover   { background: #25D366; }
.footer-share-li:hover   { background: #0A66C2; }
.footer-share-mail:hover { background: var(--primary); }
.footer-share-copy:hover { background: var(--primary); }

/* On mobile — sidebar is hidden so remove the padding offset */
@media (max-width: 1024px) {
    footer {
        padding-left: 40px;
    }
    .footer-inner {
        max-width: var(--container-max);
    }
}

@media (max-width: 640px) {
    footer { padding: 24px 16px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
    .footer-copy { white-space: normal; }
}