/* ============================================================
   TopTechTMC™ — Consolidated Site CSS
   All styles extracted and merged from HTML pages
   ============================================================ */

/* === CSS VARIABLES === */
:root {
    --primary: #1E3A8A;
    --accent: #3C6496;
    --dark: #3C6496;
    --gray: #64748b;
    --light: #F1F5F9;
}

/* === RESET & BASE === */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    background: white;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 120px;
}

/* === CONTAINERS === */
.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

.container-bottom {
    width: 90%;
    max-width: 1150px;
    margin: auto;
    padding: 1rem 0;
}

.container-wave {
    width: 90%;
    max-width: 1150px;
    margin: auto;
    padding: 0rem 0 2rem 0;
}

/* === HEADER === */
header {
    background: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.header-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 100%;
}

.header-cta .btn {
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
}

.header-logout-form {
    display: block;
}

.signed-in-email {
    max-width: 190px;
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-logout-button,
.link-button {
    border: none;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.admin-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #D8E2EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--accent);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-icon-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-icon-button:hover {
    background: #EEF4FF;
    border-color: #B8CBE3;
    color: var(--primary);
    transform: translateY(-1px);
    text-decoration: none;
}

.header-logout-button:hover:not(.admin-icon-button),
.link-button:hover {
    text-decoration: underline;
}

.account-menu {
    position: relative;
    width: 100%;
    max-width: 260px;
}

.account-menu summary {
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu-trigger {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    color: var(--dark);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.account-menu-trigger:hover,
.account-menu[open] .account-menu-trigger {
    transform: translateY(-1px);
}

.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}

.account-avatar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-avatar-large {
    width: 48px;
    height: 48px;
}

.account-trigger-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.account-trigger-text strong {
    max-width: 135px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-trigger-text span {
    color: var(--gray);
    font-size: 0.76rem;
    font-weight: 700;
}

.account-chevron {
    color: var(--accent);
    font-size: 18px;
    transition: transform 0.18s ease;
}

.account-menu[open] .account-chevron {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(310px, 86vw);
    border: 1px solid #DDE8F4;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
    padding: 0.65rem;
    z-index: 1000;
}

.account-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 24px;
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border-left: 1px solid #DDE8F4;
    border-top: 1px solid #DDE8F4;
    transform: rotate(45deg);
}

.account-dropdown-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0.55rem 0.8rem;
    border-bottom: 1px solid #E7EEF7;
}

.account-dropdown-header span:last-child {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.account-dropdown-header strong {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.2;
}

.account-dropdown-header small {
    color: var(--gray);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown-header em {
    justify-self: start;
    margin-top: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #EEF4FF;
    color: var(--accent);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.account-dropdown-links {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.45rem;
}

.account-dropdown-links a,
.account-dropdown-links button {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 42px;
    padding: 0.62rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--dark);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 750;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.account-dropdown-links a:hover,
.account-dropdown-links button:hover {
    background: #F1F5F9;
    color: var(--primary);
    transform: translateX(2px);
}

.account-dropdown-links svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-img {
    height: 100px;
}

/* === CALL LINK === */
.call-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    color: #3C6496;
    text-decoration: none;
    opacity: 1;
    white-space: nowrap;
    margin-top: -2px;
}

.call-link:hover {
    opacity: 1;
}

.call-link svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.25;
    transform-origin: center;
    animation: ringPulseFast 1.8s infinite;
}

@keyframes ringPulseFast {
    0%   { transform: rotate(0deg) scale(1); }
    8%   { transform: rotate(-8deg) scale(1.05); }
    16%  { transform: rotate(8deg) scale(1.05); }
    24%  { transform: rotate(-6deg) scale(1.03); }
    32%  { transform: rotate(6deg) scale(1.03); }
    40%  { transform: rotate(-4deg) scale(1.02); }
    48%  { transform: rotate(4deg) scale(1.02); }
    56%  { transform: rotate(0deg) scale(1.06); }
    60%  { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

/* === NAVIGATION === */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    position: relative;
    color: #3C6496;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 6px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active::after {
    width: 100%;
    box-shadow: 0 0 8px rgba(96,165,250,0.6);
}

/* === DROPDOWN === */
.dropdown {
    position: relative;
}

.arrow {
    font-size: 0.65rem;
    margin-left: 6px;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 275px;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
    padding: 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 999;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.2rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 1.4rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* === HERO === */
.hero {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    opacity: 0.9;
    margin-bottom: 2rem;
    color: white;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.7rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

button.btn {
    display: inline-flex;
    appearance: none;
    border: none;
    cursor: pointer;
}

.button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-space {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    background: var(--accent);
    margin-top: 1rem;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: .2s ease;
}

.btn-space:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
    margin-top: 1rem;
}

/* === SECTIONS === */
.section {
    padding: 1rem 0 1rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
}

.section-padding-sm {
    padding: 2rem 0;
}

.section-padding-md {
    padding: 4rem 0;
}

.section-padding-lg {
    padding: 6rem 0;
}

/* === CARDS === */
.card {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #E2E8F0;
    transition: .2s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    will-change: transform;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-25deg);
    transition: .6s;
    pointer-events: none;
}

.card:hover::before {
    left: 120%;
}

.card svg {
    display: block;
    width: 60px;
    height: 60px;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 1.5rem;
}

.card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37,99,235,.15), transparent 70%);
    top: -40px;
    right: -40px;
}

.card:hover svg {
    transform: translateY(-4px);
    filter: drop-shadow(0 0 8px rgba(96,165,250,0.5));
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08), 0 0 0 1px rgba(37,99,235,.35);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.card-sub {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.65;
    letter-spacing: 0.3px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    cursor: pointer;
}

/* === DARK / WAVE SECTIONS === */
.dark-section {
    background: #0F172A;
    color: white;
    padding: 2rem 0 0.5rem;
    text-align: center;
}

.wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    display: block;
}

.wave-section {
    position: relative;
    background: #0F172A;
    color: white;
    overflow: hidden;
}

/* === CTA === */
.cta {
    background: #0F172A;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.cta h2 {
    margin-bottom: 0.85rem;
}

.cta p {
    max-width: 680px;
    margin: 0 auto 1.35rem;
    line-height: 1.7;
}

.cta .btn {
    min-height: 48px;
    padding-inline: 1.9rem;
}

.ticket-panel-header .btn,
.ticket-empty .btn {
    min-height: 46px;
    padding-inline: 1.65rem;
}

/* === FOOTER === */
footer {
    padding: 1rem;
    text-align: center;
    color: var(--gray);
    border-top: 1px solid #EEEEEE;
}

/* === PARTICLE CANVAS === */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === BACK TO TOP BUTTON === */
#backToTop {
    position: fixed;
    right: 28px;
    top: 50%;
    margin-top: -24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #3C6496;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 0 12px rgba(96,165,250,.35);
    z-index: 9999;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    animation: floatBounce .45s ease forwards;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

@keyframes floatBounce {
    0%   { transform: translateY(-20px) scale(.9); }
    60%  { transform: translateY(4px) scale(1.05); }
    80%  { transform: translateY(-2px) scale(.98); }
    100% { transform: translateY(0) scale(1); }
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke: #60a5fa;
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset .2s linear, stroke .25s ease, filter .25s ease;
}

.arrow-icon {
    position: absolute;
}

/* === SVG ANIMATION === */
.hero-graphic svg {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

.draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawStroke 4s ease forwards;
}

@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

.draw-fill {
    fill-opacity: 0;
    animation: drawStroke 3s ease forwards, fadeFill 6s ease forwards;
}

@keyframes fadeFill {
    to { fill-opacity: 1; }
}

.packet {
    fill: #60a5fa;
    offset-distance: 0%;
    opacity: 0;
    filter: drop-shadow(0 0 4px #60a5fa) drop-shadow(0 0 8px #60a5fa);
    animation: packetPulse 1.2s ease-in-out infinite;
}

.animate-packet {
    animation: movePacket 1s linear;
}

@keyframes movePacket {
    0%   { offset-distance: 0%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

@keyframes packetPulse {
    0%, 100% { filter: drop-shadow(0 0 4px #60a5fa); }
    50%       { filter: drop-shadow(0 0 10px #60a5fa); }
}

#cloudIcon, #serverStack, .scr {
    transition: stroke .35s ease, filter .35s ease;
}

.monitor-data-line {
    stroke: #60a5fa;
    stroke-width: 1;
    opacity: 0.7;
    stroke-dasharray: 20;
    animation: dataStream 2s linear infinite;
}

@keyframes dataStream {
    from { stroke-dashoffset: 20; }
    to   { stroke-dashoffset: 0; }
}

.shield-pulse {
    animation: shieldSync 8s cubic-bezier(.45,.05,.55,.95) infinite;
}

@keyframes shieldSync {
    0%   { filter: drop-shadow(0 0 4px #60a5fa); }
    45%  { filter: drop-shadow(0 0 4px #60a5fa); }
    50%  { filter: drop-shadow(0 0 16px #60a5fa); }
    60%  { filter: drop-shadow(0 0 4px #60a5fa); }
    90%  { filter: drop-shadow(0 0 4px #60a5fa); }
    95%  { filter: drop-shadow(0 0 16px #60a5fa); }
    100% { filter: drop-shadow(0 0 4px #60a5fa); }
}

#lineCloud, #path1, #path2, #path3 {
    animation-delay: 1.7s;
}

/* === FADE UP ANIMATION === */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* === INFO ROWS === */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.mini-icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.icon-mini {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.mini-icon-bubble {
    width: 28px;
    height: 28px;
    min-width: 18px;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 10px;
    flex-shrink: 0;
    overflow: visible;
    margin-top: 1px;
}

/* === INFO BOX === */
.info-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

/* === CALLOUT BOX === */
.callout-box {
    position: relative;
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(60,100,150,0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06), 0 0 0 1px rgba(60,100,150,0.08);
    overflow: hidden;
}

.callout-box::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(96,165,250,0.15), transparent 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

/* === FEATURE LISTS === */
.feature-list {
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: .6rem;
}

.feature-list-no-bullets {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.small {
    line-height: 1.8;
}

/* === ABOUT GRID === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* === VALUES GRID === */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.value-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* === TEAM NOTE CARD === */
.team-note-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 780px;
    margin: 3rem auto;
    transition: all 0.3s ease;
}

.team-note-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08), 0 0 0 1px var(--accent), 0 0 12px rgba(60,100,150,.25);
}

.team-note-card h2 {
    font-size: 2.1rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.team-note-card p {
    font-size: 1.08rem;
    color: var(--gray);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}

#Handshake {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
}

/* === SERVICE AREA === */
.service-area-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.service-area-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-area-text p {
    margin-bottom: 1rem;
}

.service-list {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
}

.service-list li {
    margin-bottom: 0.5rem;
}

.service-note a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.service-note a:hover {
    text-decoration: underline;
}

/* === MAP === */
#map, #contact-map {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 1 !important;
}

#map:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.service-area-map {
    position: relative;
    z-index: 1 !important;
}

.service-area-map::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(59,130,246,0.08), rgba(0,0,0,0.15));
}

.map-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* === LEAFLET CUSTOMIZATION === */
.leaflet-top.leaflet-right {
    display: none !important;
}

.leaflet-control-attribution {
    opacity: 0.4;
    font-size: 10px;
}

.leaflet-attribution-flag {
    display: none !important;
}

.city-label {
    text-transform: none !important;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* === PULSE MARKER === */
.pulse-marker {
    width: 10px;
    height: 10px;
    background: #60a5fa;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #60a5fa;
}

.pulse-marker::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(96,165,250,0.5);
    animation: pulse 1.6s infinite ease-out;
}

@keyframes pulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* === CONTACT PAGE === */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.6rem;
}

.info-card {
    background: white;
    padding: 0.5rem 2rem 2rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-card {
    background: white;
    padding: 2.5rem;
    padding-top: 0.5rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-card label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font-size: 0.95rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-card textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(11, 108, 255, 0.18);
}

.contact-link {
    color: #3C6496;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    color: #3C6496;
    text-decoration: underline;
}

/* === SUPPORT TICKETS === */
.ticket-panel {
    padding-top: 2rem;
}

.admin-ticket-dashboard {
    display: grid;
    gap: 1.35rem;
}

.ticket-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-ticket-dashboard .ticket-panel-header {
    margin-bottom: 0;
}

.ticket-dashboard-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.ticket-panel-header p {
    margin-top: 0.25rem;
    color: var(--gray);
}

.ticket-table-wrap {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
}

.ticket-table th,
.ticket-table td {
    padding: 1rem 0.9rem;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
    vertical-align: middle;
}

.ticket-table th {
    background: #F8FAFC;
    color: var(--gray);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ticket-table tr:last-child td {
    border-bottom: 0;
}

.ticket-table tbody tr {
    transition: background 0.18s ease;
}

.ticket-table tbody tr:hover {
    background: #FBFDFF;
}

.ticket-table td span {
    display: block;
    color: var(--gray);
}

.status-pill {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #EEF4FF;
    color: var(--accent) !important;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-new {
    background: #FEF3C7;
    color: #92400E !important;
}

.status-open,
.status-working,
.status-waitingforclient,
.status-testing {
    background: #DBEAFE;
    color: #1D4ED8 !important;
}

.status-resolved {
    background: #DCFCE7;
    color: #166534 !important;
}

.status-closed {
    background: #E5E7EB;
    color: #374151 !important;
}

.ticket-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.ticket-link:hover {
    text-decoration: underline;
}

.ticket-manage-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.ticket-table td .ticket-manage-link span {
    display: inline;
    color: inherit;
}

.ticket-manage-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.ticket-manage-link:hover svg {
    transform: translateX(2px);
}

.ticket-empty {
    padding: 2.5rem;
    text-align: center;
    background: #F8FAFC;
    border-radius: 10px;
}

.ticket-empty p {
    margin: 0.5rem 0 1.5rem;
    color: var(--gray);
}

/* === MY TICKETS === */
.my-tickets-page {
    display: grid;
    gap: 1.25rem;
}

.my-ticket-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.my-ticket-summary-card,
.my-ticket-create-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 88px;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.my-ticket-create-card {
    border-color: #C6D7EA;
    background: #F8FBFF;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.my-ticket-create-card:hover {
    border-color: #9EBBDD;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.my-ticket-summary-card strong,
.my-ticket-summary-card span,
.my-ticket-create-card strong,
.my-ticket-create-card span {
    display: block;
}

.my-ticket-summary-card strong {
    color: #172554;
    font-size: 1.65rem;
    font-weight: 650;
    line-height: 1;
}

.my-ticket-create-card strong {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.2;
}

.my-ticket-summary-card div > span,
.my-ticket-create-card div > span {
    margin-top: 0.2rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.my-ticket-summary-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #3C6496;
    background: #EEF4FF;
}

.my-ticket-summary-icon svg,
.my-ticket-view-link svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.my-ticket-summary-icon-open {
    color: #2563EB;
    background: #EFF6FF;
}

.my-ticket-summary-icon-done {
    color: #15803D;
    background: #F0FDF4;
}

.my-ticket-panel {
    padding-top: 1.5rem;
}

.my-ticket-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.my-ticket-table-wrap {
    border-radius: 8px;
}

.my-ticket-table th {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.055em;
}

.my-ticket-table td {
    padding: 0.95rem 0.9rem;
}

.my-ticket-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
}

.my-ticket-id {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 0.55rem;
    border-radius: 8px;
    background: #EEF4FF;
    color: var(--accent) !important;
    font-weight: 650;
}

.my-ticket-identity strong,
.my-ticket-identity span {
    display: block;
}

.my-ticket-identity strong {
    color: var(--dark);
    font-weight: 600;
}

.my-ticket-identity div > span {
    margin-top: 0.1rem;
    color: var(--gray);
    font-size: 0.88rem;
}

.my-ticket-priority {
    display: inline-flex !important;
    align-items: center;
    min-height: 26px;
    padding: 0.25rem 0.6rem;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    background: #F8FAFC;
    color: #475569 !important;
    font-size: 0.8rem;
    font-weight: 600;
}

.my-ticket-view-link {
    justify-content: flex-end;
}

.my-ticket-actions,
.ticket-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.my-ticket-actions form,
.ticket-row-actions form {
    margin: 0;
}

.my-ticket-delete-button,
.ticket-delete-link {
    border: 1px solid #FECACA;
    border-radius: 999px;
    background: #FEF2F2;
    color: #B91C1C;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.my-ticket-delete-button:hover,
.ticket-delete-link:hover {
    background: #FEE2E2;
    color: #991B1B;
}

.my-ticket-empty .btn {
    width: fit-content;
    margin: 0 auto;
}

.ticket-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.ticket-alert-success {
    background: #ECFDF3;
    border-color: #B7E4C7;
}

.ticket-alert-error {
    background: #FEF2F2;
    border-color: #FECACA;
}

.ticket-select,
.form-card input[type="file"] {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font-size: 0.95rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
    background: white;
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ticket-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 1.6rem;
}

.ticket-thread {
    display: grid;
    gap: 1rem;
}

.ticket-message {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.ticket-message.admin-message {
    background: #EEF4FF;
}

.ticket-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.ticket-message-meta strong {
    color: var(--dark);
}

.ticket-reply-form {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.9rem;
}

.ticket-reply-form label,
.admin-status-form label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--accent);
    font-weight: 700;
}

.ticket-reply-form textarea,
.admin-status-form textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    color: var(--dark);
    font-family: inherit;
    box-sizing: border-box;
}

.ticket-reply-form textarea:focus,
.admin-status-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(60, 100, 150, 0.12);
    outline: none;
}

.ticket-reply-form .btn,
.admin-status-form .btn {
    width: 100%;
}

.ticket-info-list {
    display: grid;
    gap: 0.75rem;
}

.ticket-info-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E2E8F0;
}

.ticket-info-list span {
    text-align: right;
    color: var(--gray);
}

.ticket-attachments {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ticket-attachments a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.7fr) minmax(190px, 0.9fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
}

.admin-filter-form input {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font-size: 0.95rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    font-family: inherit;
}

.admin-filter-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-filter-form .ticket-select {
    min-width: 0;
}

.admin-filter-form .btn {
    min-height: 44px;
}

.admin-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-filter-actions .btn,
.admin-clear-filter {
    min-height: 44px;
    padding: 0.7rem 1rem;
    white-space: nowrap;
}

.admin-clear-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid #D8E2EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-clear-filter:hover {
    background: #EEF4FF;
    border-color: #B8CBE3;
    color: var(--primary);
    transform: translateY(-1px);
    text-decoration: none;
}

.admin-clear-filter svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ticket-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.ticket-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 88px;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
}

.ticket-stat strong,
.ticket-stat span {
    display: block;
}

.ticket-stat strong {
    color: #172554;
    font-size: 1.65rem;
    line-height: 1;
}

.ticket-stat div > span {
    margin-top: 0.2rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 700;
}

.ticket-stat-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #3C6496;
    background: #EEF4FF;
}

.ticket-stat-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ticket-stat-icon-new {
    color: #92400E;
    background: #FEF3C7;
}

.ticket-stat-icon-open {
    color: #1D4ED8;
    background: #DBEAFE;
}

.ticket-stat-icon-resolved {
    color: #166534;
    background: #DCFCE7;
}

.ticket-stat-icon-unassigned {
    color: #7C2D12;
    background: #FFEDD5;
}

.admin-status-form {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.admin-ticket-info {
    margin-top: 1.5rem;
}

.admin-settings-button {
    white-space: nowrap;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.admin-modal-backdrop[hidden] {
    display: none;
}

.admin-modal {
    width: min(560px, 100%);
    padding: 0;
    border-radius: 8px;
    border: 1px solid #dbe2ea;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
    overflow: hidden;
}

.admin-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.admin-modal-title-group {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.admin-modal-title-group h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.35rem;
    line-height: 1.2;
}

.admin-modal-title-group p {
    margin-top: 0.25rem;
    color: var(--gray);
}

.admin-modal-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #EEF4FF;
    color: var(--accent);
}

.admin-modal-icon svg,
.admin-modal-close svg,
.admin-modal-primary svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid #D8E2EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--gray);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-modal-close:hover {
    background: #F8FAFC;
    border-color: #B8CBE3;
    color: var(--primary);
}

.admin-email-form {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1.25rem;
}

.admin-modal input[type="email"] {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--dark);
    font: inherit;
    box-sizing: border-box;
}

.admin-modal input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(60, 100, 150, 0.12);
    outline: none;
}

.admin-email-form label {
    margin-bottom: 0.35rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding-top: 0.25rem;
}

.admin-modal-primary,
.admin-modal-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border-radius: 7px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.admin-modal-primary {
    gap: 0.45rem;
    border: 1px solid #3C6496;
    background: #3C6496;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(60, 100, 150, 0.18);
}

.admin-modal-primary:hover {
    background: #2E547F;
    border-color: #2E547F;
    box-shadow: 0 8px 18px rgba(60, 100, 150, 0.22);
}

.admin-modal-secondary {
    border: 1px solid #D8E2EE;
    background: #FFFFFF;
    color: var(--accent);
}

.admin-modal-secondary:hover {
    background: #F8FAFC;
    border-color: #B8CBE3;
    color: var(--primary);
}

.internal-notes,
.department-list {
    display: grid;
    gap: 0.75rem;
}

.internal-note {
    padding: 0.85rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.internal-note span {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.department-create-card {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.department-page {
    display: grid;
    gap: 1.25rem;
}

.department-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.department-summary-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 86px;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.department-summary-card strong,
.department-summary-card span {
    display: block;
}

.department-summary-card strong {
    color: #172554;
    font-size: 1.65rem;
    font-weight: 650;
    line-height: 1;
}

.department-summary-card div > span {
    margin-top: 0.2rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.department-summary-icon,
.department-create-icon,
.department-row-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #3C6496;
    background: #EEF4FF;
}

.department-summary-icon {
    width: 42px;
    height: 42px;
}

.department-create-icon {
    width: 46px;
    height: 46px;
    margin-top: 0.1rem;
}

.department-row-icon {
    width: 36px;
    height: 36px;
}

.department-summary-icon svg,
.department-create-icon svg,
.department-row-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.department-summary-icon-active {
    color: #15803D;
    background: #F0FDF4;
}

.department-summary-icon-inactive {
    color: #64748B;
    background: #F1F5F9;
}

.department-create-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.department-create-copy h2,
.department-list-header h2 {
    margin-bottom: 0.2rem;
    color: var(--dark);
    font-size: 1.45rem;
    line-height: 1.2;
}

.department-create-copy p {
    color: var(--gray);
}

.department-create-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 118px 120px;
    gap: 0.85rem;
    align-items: end;
}

.department-create-form label:not(.department-switch) {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.department-create-form input[name="Name"],
.department-edit-form input[name="Name"] {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--dark);
    font-family: inherit;
}

.department-create-form input[name="Name"]:focus,
.department-edit-form input[name="Name"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(60, 100, 150, 0.12);
    outline: none;
}

.department-create-form .btn {
    min-height: 44px;
    width: 100%;
}

.department-list-card {
    padding-top: 1.5rem;
}

.department-list-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.department-table {
    display: grid;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.department-table-head,
.department-admin-row {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 150px 170px;
    column-gap: 1.25rem;
    align-items: center;
}

.department-table-head {
    padding: 0.85rem 1rem;
    background: #F8FAFC;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.department-table-head span:nth-child(2) {
    padding-left: 0.1rem;
}

.department-table-head span:last-child {
    text-align: right;
}

.department-admin-row {
    min-height: 88px;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
    transition: background 0.18s ease;
}

.department-admin-row:hover {
    background: #FBFDFF;
}

.department-admin-row:last-child {
    border-bottom: 0;
}

.department-edit-form {
    display: contents;
}

.department-name-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.department-name-field input {
    font-weight: 500;
}

.department-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    align-items: center;
    width: 170px;
}

.department-actions form {
    display: inline;
}

.department-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 34px;
    padding: 0.38rem 0.62rem;
    border: 1px solid #DCE6F2;
    border-radius: 7px;
    background: #F8FAFC;
    color: #3C6496;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.department-action-button:hover {
    background: #FFFFFF;
    border-color: #B8CBE3;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.department-action-danger {
    border-color: #F1D3D3;
    background: #FFF8F8;
    color: #A33A3A;
}

.department-action-danger:hover {
    background: #FFFFFF;
    border-color: #FCA5A5;
    color: #991B1B;
}

.department-switch {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    width: 150px;
}

.department-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.department-switch > span {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background 0.18s ease;
}

.department-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
    transition: transform 0.18s ease;
}

.department-switch input[type="checkbox"]:checked + span {
    background: #3C6496;
}

.department-switch input[type="checkbox"]:checked + span::after {
    transform: translateX(16px);
}

.department-switch strong {
    color: var(--dark);
    font-weight: 500;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.table-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* === USER MANAGEMENT === */
.user-admin-page {
    display: grid;
    gap: 1.25rem;
}

.user-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.user-summary-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 86px;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.user-summary-card strong,
.user-summary-card span {
    display: block;
}

.user-summary-card strong {
    color: #172554;
    font-size: 1.65rem;
    font-weight: 650;
    line-height: 1;
}

.user-summary-card div > span {
    margin-top: 0.2rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-summary-icon,
.user-create-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #3C6496;
    background: #EEF4FF;
}

.user-summary-icon {
    width: 42px;
    height: 42px;
}

.user-summary-icon svg,
.user-create-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-summary-icon-admin {
    color: #166534;
    background: #DCFCE7;
}

.user-summary-icon-staff {
    color: #1D4ED8;
    background: #DBEAFE;
}

.user-summary-icon-locked {
    color: #991B1B;
    background: #FEE2E2;
}

.user-create-card {
    display: grid;
    gap: 1.5rem;
    align-items: end;
}

.user-create-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.user-create-icon {
    width: 46px;
    height: 46px;
    margin-top: 0.1rem;
}

.user-create-copy h2,
.user-list-header h2 {
    margin-bottom: 0.2rem;
    color: var(--dark);
    font-size: 1.45rem;
    line-height: 1.2;
}

.user-create-copy p {
    color: var(--gray);
}

.user-create-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.72fr) auto;
    gap: 0.85rem;
    align-items: end;
}

.user-create-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.user-create-form input {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--dark);
    font: inherit;
}

.user-create-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(60, 100, 150, 0.12);
}

.user-create-form .btn {
    min-height: 44px;
    white-space: nowrap;
}

.user-list-card {
    padding-top: 1.5rem;
}

.user-list-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.user-table-wrap {
    border-radius: 8px;
}

.user-table th {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.055em;
}

.user-table td {
    padding: 0.95rem 0.9rem;
}

.user-table th:last-child,
.user-table td:last-child {
    text-align: right;
}

.user-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
}

.user-identity strong,
.user-identity span {
    display: block;
}

.user-identity strong {
    color: var(--dark);
    font-weight: 600;
}

.user-identity span {
    margin-top: 0.1rem;
    color: var(--gray);
    font-size: 0.88rem;
}

.user-initial {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #EEF4FF;
    color: var(--accent) !important;
    font-size: 0.95rem;
    font-weight: 650;
}

.role-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    min-height: 26px;
    padding: 0.25rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #F1F5F9;
    color: #475569 !important;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-pill::before,
.user-table .status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.72;
}

.role-admin {
    border-color: #B7E4C7;
    background: #F0FDF4;
    color: #15803D !important;
}

.role-staff {
    border-color: #BFDBFE;
    background: #EFF6FF;
    color: #2563EB !important;
}

.role-user {
    border-color: #E2E8F0;
    background: #F1F5F9;
    color: #475569 !important;
}

.user-table .status-pill {
    gap: 0.35rem;
    min-height: 26px;
    padding: 0.25rem 0.6rem;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-table .status-new {
    border-color: #FDE68A;
    background: #FFFBEB;
    color: #B45309 !important;
}

.user-table .status-resolved {
    border-color: #B7E4C7;
    background: #F0FDF4;
    color: #15803D !important;
}

.user-table .status-closed {
    border-color: #CBD5E1;
    background: #F8FAFC;
    color: #475569 !important;
}

.user-actions {
    justify-content: flex-end;
    gap: 0.4rem;
}

.user-actions form {
    display: inline;
}

.user-role-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.user-password-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.user-password-form input {
    width: 150px;
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    border: 1px solid #DCE6F2;
    border-radius: 7px;
    background: #FFFFFF;
    color: var(--dark);
    font: inherit;
    font-size: 0.86rem;
}

.user-role-select {
    min-width: 112px;
    min-height: 34px;
    border: 1px solid #DCE6F2;
    border-radius: 7px;
    background: #FFFFFF;
    color: var(--dark);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.35rem 0.55rem;
}

.user-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.38rem 0.62rem;
    border: 1px solid #DCE6F2;
    border-radius: 7px;
    background: #F8FAFC;
    color: #3C6496;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.user-action-button:hover {
    background: #FFFFFF;
    border-color: #B8CBE3;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.user-action-danger {
    border-color: #F1D3D3;
    background: #FFF8F8;
    color: #A33A3A;
}

.user-action-danger:hover {
    background: #FFFFFF;
    border-color: #FCA5A5;
    color: #991B1B;
}

.template-list {
    display: grid;
    gap: 1rem;
}

.template-row {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
}

.email-template-page {
    display: grid;
    gap: 1.25rem;
}

.email-template-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.email-template-summary-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 86px;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.email-template-summary-card strong,
.email-template-summary-card span {
    display: block;
}

.email-template-summary-card strong {
    color: #172554;
    font-size: 1.65rem;
    font-weight: 650;
    line-height: 1;
}

.email-template-summary-card div > span {
    margin-top: 0.2rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.email-template-summary-icon,
.template-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #3C6496;
    background: #EEF4FF;
}

.email-template-summary-icon {
    width: 42px;
    height: 42px;
}

.template-icon {
    width: 38px;
    height: 38px;
}

.email-template-summary-icon svg,
.template-icon svg,
.template-save-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.email-template-summary-icon-active {
    color: #15803D;
    background: #F0FDF4;
}

.email-template-card {
    padding-top: 1.5rem;
}

.email-template-header {
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
    flex-direction: column;
}

.email-template-header h2 {
    margin-bottom: 0.2rem;
    color: var(--dark);
    font-size: 1.45rem;
    line-height: 1.2;
}

.email-token-list {
    display: flex;
    justify-content: start;
    gap: 0.45rem;
    flex-wrap: wrap;
}

    .email-token-list code {
        display: inline-flex;
        align-items: center;
        padding: 0.2rem 0.5rem;
        border: 1px solid #D8E2EE;
        border-radius: 999px;
        background: #F8FAFC;
        color: #3C6496;
        font-family: inherit;
        font-size: 0.82rem;
        font-weight: 600;
        line-height: 17px;
    }

.template-row-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.template-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.template-title h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.2;
}

.template-title p {
    margin-top: 0.18rem;
    color: var(--gray);
    font-size: 0.88rem;
}

.template-fields {
    display: grid;
    gap: 0.85rem;
}

.template-label-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.template-label-row label {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.template-label-row span {
    color: var(--gray);
    font-size: 0.78rem;
}

.template-row input,
.template-row textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--dark);
    font-family: inherit;
}

.template-row input {
    min-height: 44px;
}

.template-row input:focus,
.template-row textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(60, 100, 150, 0.12);
    outline: none;
}

.template-row textarea {
    min-height: 180px;
    line-height: 1.55;
    resize: vertical;
}

.template-switch {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.template-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.template-switch > span {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background 0.18s ease;
}

.template-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
    transition: transform 0.18s ease;
}

.template-switch input[type="checkbox"]:checked + span {
    background: #3C6496;
}

.template-switch input[type="checkbox"]:checked + span::after {
    transform: translateX(16px);
}

.template-switch strong {
    color: var(--dark);
    font-weight: 500;
}

.template-row-actions {
    display: flex;
    justify-content: flex-end;
}

.template-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border: 1px solid #3C6496;
    border-radius: 7px;
    background: #3C6496;
    color: #FFFFFF;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(60, 100, 150, 0.18);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.template-save-button:hover {
    background: #2E547F;
    border-color: #2E547F;
    box-shadow: 0 8px 18px rgba(60, 100, 150, 0.22);
}

.template-save-button svg {
    width: 18px;
    height: 18px;
}

/* === ADMIN LAYOUT === */
.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background: #F8FAFC;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.25rem 1rem;
    background: #0F172A;
    color: white;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
}

.admin-logo {
    display: block;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
}

.admin-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.admin-menu {
    display: grid;
    gap: 0.4rem;
}

.admin-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    color: #DDE7F5;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: #3C6496;
    color: white;
}

.admin-menu a:hover {
    transform: translateX(2px);
}

.admin-menu a.active::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 999px;
    background: #FFFFFF;
}

.admin-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 7px;
    background: rgba(255,255,255,0.08);
}

.admin-menu-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
}

.admin-topbar strong {
    display: block;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 650;
}

.admin-topbar span {
    color: var(--gray);
    font-size: 0.95rem;
}

.admin-topbar .btn span {
    color: inherit;
    font-size: inherit;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid #D8E2EE;
    border-radius: 8px;
    background: #FFFFFF;
}

.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #EEF4FF;
    color: var(--accent);
}

.admin-user-avatar svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-user-text {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.admin-user-text strong {
    max-width: 230px;
    overflow: hidden;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-text span {
    color: var(--gray);
    font-size: 0.82rem;
    font-weight: 500;
}

.admin-back-btn {
    padding: 0.65rem 1rem;
}

.admin-content {
    padding: 1.5rem;
}

.admin-swal-toast {
    width: min(420px, calc(100vw - 2rem)) !important;
    padding: 0.8rem 0.9rem !important;
    border: 1px solid #D8E2EE !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
}

.admin-swal-title {
    color: var(--dark) !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.admin-swal-toast .swal2-icon {
    margin: 0 0.65rem 0 0 !important;
}

.admin-swal-toast .swal2-timer-progress-bar {
    background: rgba(60, 100, 150, 0.34) !important;
}

.admin-page-title {
    margin-bottom: 1rem;
}

.admin-page-title h1 {
    font-size: 2rem;
}

.admin-page-title p {
    color: var(--gray);
}

.admin-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.admin-section-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.danger-button {
    color: #B91C1C;
}

@media (max-width: 900px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-menu {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .admin-menu a.active::before {
        left: 0.5rem;
        right: 0.5rem;
        top: auto;
        bottom: 0;
        width: auto;
        height: 3px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .ticket-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .my-ticket-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .email-template-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .email-template-header {
        flex-direction: column;
    }

    .email-token-list {
        justify-content: flex-start;
        max-width: none;
    }

    .department-create-card,
    .department-create-form {
        grid-template-columns: 1fr;
    }

    .user-create-card,
    .user-create-form {
        grid-template-columns: 1fr;
    }

    .admin-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* === AUTH PAGES === */
.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 1.6rem;
    align-items: start;
}

.auth-card {
    padding-top: 2rem;
}

.auth-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500 !important;
    margin: 0.25rem 0 0.5rem;
}

.auth-checkbox input {
    width: auto;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
}

.auth-links a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-side {
    padding-top: 2rem;
}

.text-danger {
    color: #B91C1C;
    font-size: 0.9rem;
}

/* === CARD ICON === */
.card-icon svg {
    width: 56px;
    height: 56px;
    stroke: #3C6496;
}

svg path {
    vector-effect: non-scaling-stroke;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .service-area-grid {
        grid-template-columns: 1fr;
    }

    #map, #contact-map {
        height: 320px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .card-grid.two-col {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        grid-template-columns: auto auto;
    }

    .main-nav {
        display: none;
    }

    .header-cta {
        align-items: flex-end;
    }

    .account-menu {
        max-width: min(260px, 54vw);
    }

    .account-menu-trigger {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        min-height: 52px;
        padding: 0.4rem 0.5rem;
    }

    .account-avatar {
        width: 38px;
        height: 38px;
    }

    .account-avatar-large {
        width: 46px;
        height: 46px;
    }

    .account-trigger-text strong {
        max-width: 96px;
        font-size: 0.86rem;
    }

    .account-trigger-text span {
        font-size: 0.7rem;
    }

    .account-dropdown {
        right: 0;
        width: min(300px, 92vw);
    }

    .ticket-panel-header,
    .admin-topbar,
    .admin-topbar-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-topbar-actions,
    .admin-user-summary,
    .admin-settings-button,
    .admin-filter-actions,
    .admin-filter-form .btn,
    .admin-clear-filter {
        width: 100%;
    }

    .admin-filter-actions {
        flex-direction: column-reverse;
    }

    .ticket-stat-grid,
    .my-ticket-summary-grid,
    .user-summary-grid,
    .department-summary-grid,
    .email-template-summary-grid,
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .template-row-header {
        flex-direction: column;
    }

    .template-row-actions {
        justify-content: stretch;
    }

    .template-save-button {
        width: 100%;
    }

    .admin-modal-actions {
        flex-direction: column-reverse;
    }

    .admin-modal-primary,
    .admin-modal-secondary {
        width: 100%;
    }

    .my-ticket-table th:nth-child(5),
    .my-ticket-table td:nth-child(5) {
        display: none;
    }

    .my-ticket-identity {
        min-width: 220px;
    }

    .department-table-head {
        display: none;
    }

    .department-admin-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .department-edit-form {
        display: grid;
        gap: 0.75rem;
    }

    .department-name-field {
        min-width: 0;
    }

    .department-actions {
        justify-content: flex-start;
        width: auto;
    }

    .department-switch {
        width: auto;
    }

    .user-list-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-table th:last-child,
    .user-table td:last-child {
        text-align: left;
    }

    .user-actions {
        justify-content: flex-start;
    }

    .admin-content {
        padding: 1rem;
    }
}
