/*
 * Site theme override v2 - GREEN (2026-10-10). Loaded AFTER ps-repair.css.
 * Revert: remove the site-theme.css <link> and site-theme.js <script> in resources/views/layouts/master.blade.php.
 * (Blue/orange v1 is saved as _ui_backup_2026-10-10/site-theme.blue.css)
 *
 * Color psychology: deep forest green = trust, health, "it works / done"; fresh emerald = action and growth;
 * soft gold = a small premium accent (used sparingly); green-tinted off-white surfaces keep it calm.
 */
:root {
    --g-950: #04271a;
    --g-900: #073d26;
    --g-800: #0b5236;
    --g-700: #0f6b45;
    --g-600: #15915a;
    --g-500: #1fb26a;
    --g-400: #4cd08c;
    --g-100: #dcf6e8;
    --g-50: #f2fbf6;
    --gold: #f2b842;
    --st-ink: #0f1f18;
    --st-muted: #5d7068;
    --st-line: #e1ece5;
    --st-radius: 16px;
    --st-shadow: 0 10px 30px rgba(7, 61, 38, .09);
    --st-shadow-lg: 0 22px 50px rgba(7, 61, 38, .20);
    --st-ease: cubic-bezier(.22, .8, .24, 1);
}

html { scroll-behavior: smooth; }
body { background: #fff; color: var(--st-ink); -webkit-font-smoothing: antialiased; }
a { transition: color .25s var(--st-ease); }
:focus-visible { outline: 3px solid rgba(31, 178, 106, .5); outline-offset: 2px; }
::selection { background: var(--g-500); color: #fff; }

/* ---------- Keyframes ---------- */
@keyframes st-fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes st-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, -24px, 0) scale(1.08); } }
@keyframes st-pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(76, 208, 140, .55); } 100% { box-shadow: 0 0 0 14px rgba(76, 208, 140, 0); } }
@keyframes st-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

/* ---------- Header ---------- */
.header-top-area { background: #fff; border-bottom: 1px solid var(--st-line); }
.header-top-settings ul li a i, .my-account-container li a i { color: var(--g-600); margin-left: 5px; }
.my-account-container li a:hover, .header-top-settings ul li a:hover { color: var(--g-600); }
.haeader-mid-area { background: #fff; }
.haeader-bottom-area.bg-gren {
    background: linear-gradient(90deg, var(--g-900), var(--g-800)) !important;
    box-shadow: 0 8px 26px rgba(7, 61, 38, .30);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.categories_title { background: linear-gradient(135deg, var(--g-500), var(--g-600)); border-radius: 10px; }
.categories_title h5 i { margin-left: 8px; }
.main-menu-area ul > li > a::before { display: none !important; }
.main-navigation ul li a { color: #d3efe0; font-weight: 600; position: relative; transition: color .25s var(--st-ease), transform .25s var(--st-ease); }
.main-navigation ul li a i { margin: 0 0 0 6px; font-size: 15px; color: var(--g-400); transition: color .25s, transform .3s var(--st-ease); }
.main-navigation ul li:hover a i, .main-navigation ul li.active a i { color: #fff; transform: translateY(-2px) scale(1.15); }
.main-navigation > ul > li > a::after {
    content: ""; position: absolute; left: 50%; bottom: -10px; width: 100%; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--g-400) 25%, var(--gold) 75%, transparent);
    box-shadow: 0 0 12px rgba(76, 208, 140, .7);
    transform: translateX(-50%) scaleX(0); opacity: 0; transform-origin: center;
    transition: transform .4s var(--st-ease), opacity .3s;
}
.main-navigation > ul > li:hover > a::after,
.main-navigation > ul > li.active > a::after { transform: translateX(-50%) scaleX(1); opacity: 1; }
.main-navigation ul li.active a,
.main-navigation ul li a:hover { color: #fff !important; }
.main-navigation ul li a:hover { transform: translateY(-1px); }
.header-top-settings ul li a:hover { color: var(--g-600); }

/* ---------- Hero ---------- */
.ps-hero-section {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 50% -20%, rgba(31, 178, 106, .35), transparent 65%),
        radial-gradient(700px 380px at 50% 120%, rgba(242, 184, 66, .10), transparent 60%),
        linear-gradient(180deg, var(--g-900) 0%, var(--g-800) 100%);
    padding: 96px 0 88px;
}
.ps-hero-section::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.ps-hero-section .container { position: relative; z-index: 1; }
.ps-hero-badge {
    background: rgba(76, 208, 140, .14); border: 1px solid rgba(134, 239, 172, .35); color: #dffbe9;
    backdrop-filter: blur(6px); animation: st-fade-up .7s var(--st-ease) both;
}
.ps-hero-badge i { color: var(--g-400); }
.ps-hero-section h1 {
    font-size: clamp(28px, 5vw, 48px); line-height: 1.4; animation: st-fade-up .8s .1s var(--st-ease) both;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.ps-hero-section p { color: #bfe3cf; animation: st-fade-up .8s .2s var(--st-ease) both; }
.ps-hero-search-box {
    background: rgba(255, 255, 255, .98); border-radius: 20px; padding: 22px;
    box-shadow: var(--st-shadow-lg), 0 0 0 6px rgba(255, 255, 255, .08);
    animation: st-fade-up .9s .3s var(--st-ease) both;
    transition: transform .3s var(--st-ease), box-shadow .3s var(--st-ease);
}
.ps-hero-search-box:hover { transform: translateY(-3px); }
.ps-hero-stats { margin-top: 52px; animation: st-fade-up .9s .5s var(--st-ease) both; }
.ps-hero-stats .stat-item { padding: 0 34px; }
.ps-hero-stats .stat-item + .stat-item { border-right: 1px solid rgba(255, 255, 255, .16); }
.ps-hero-stats .stat-number { font-size: 34px; color: #fff; transition: color .3s; }
.ps-hero-stats .stat-item:hover .stat-number { color: var(--gold); }
.ps-hero-stats .stat-label { color: #9ccdb3; }

/* ---------- Search form ---------- */
.device-search-form-large .device-search-field {
    height: 58px; border: 2px solid var(--st-line); border-radius: 12px; font-size: 16px; background: #fff;
    transition: border-color .25s, box-shadow .25s;
}
.device-search-form-large .device-search-field:focus { border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(31, 178, 106, .16); outline: none; }
.device-search-form-large .device-search-btn,
.device-search-form-small .device-search-btn {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--g-500), var(--g-600));
    box-shadow: 0 8px 20px rgba(21, 145, 90, .35);
    transition: transform .2s var(--st-ease), box-shadow .2s var(--st-ease), filter .2s;
}
.device-search-form-large .device-search-btn::after,
.device-search-form-small .device-search-btn::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-120%) skewX(-20deg);
}
.device-search-form-large .device-search-btn:hover::after,
.device-search-form-small .device-search-btn:hover::after { animation: st-shine .8s var(--st-ease); }
.device-search-form-large .device-search-btn { height: 58px; border-radius: 12px; padding: 0 34px; font-size: 16px; }
.device-search-form-large .device-search-btn:hover,
.device-search-form-small .device-search-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 28px rgba(21, 145, 90, .42); }
.device-search-form-large .device-search-btn:active { transform: translateY(0) scale(.98); }
.device-search-form-small .device-search-field-wrap { border: 2px solid var(--st-line); border-radius: 10px; }

/* ---------- Sections ---------- */
.ps-service-card, .ps-why-card, .single-mission, .contact-info-card {
    border-radius: var(--st-radius); border: 1px solid var(--st-line); box-shadow: var(--st-shadow);
    transition: transform .35s var(--st-ease), box-shadow .35s var(--st-ease), border-color .35s;
}
.ps-service-card:hover, .single-mission:hover, .contact-info-card:hover, .ps-why-card:hover {
    transform: translateY(-7px); box-shadow: var(--st-shadow-lg); border-color: rgba(31, 178, 106, .45);
}
.ps-service-card .ps-icon-circle, .ps-why-icon-circle, .contact-icon-circle, .single-mission-icon {
    background: var(--g-100); color: var(--g-600); transition: background .3s, transform .35s var(--st-ease);
}
.ps-service-card .ps-icon-circle i, .ps-why-icon, .ps-service-card i { color: var(--g-600); transition: color .3s; }
.ps-service-card:hover .ps-icon-circle { background: var(--g-600); transform: rotate(-6deg) scale(1.08); }
.ps-service-card:hover .ps-icon-circle i { color: #fff; }

.ps-steps-number {
    background: linear-gradient(135deg, var(--g-500), var(--g-700)); color: #fff;
    box-shadow: 0 8px 18px rgba(21, 145, 90, .35); transition: transform .35s var(--st-ease);
}
.ps-steps-col:hover .ps-steps-number { transform: scale(1.1) rotate(6deg); }
.ps-steps-col:not(:last-child)::after { border-color: #b9dfca; }

.ps-cta-section {
    position: relative; overflow: hidden;
    background:
        radial-gradient(560px 240px at 85% 0%, rgba(242, 184, 66, .22), transparent 60%),
        linear-gradient(135deg, var(--g-900), var(--g-700));
    border-radius: 24px;
}
.ps-cta-btn {
    background: linear-gradient(135deg, #ffd166, var(--gold)); color: #3a2a00 !important; font-weight: 700;
    border-radius: 12px; box-shadow: 0 10px 24px rgba(242, 184, 66, .4);
    transition: transform .2s var(--st-ease), box-shadow .2s;
}
.ps-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(242, 184, 66, .5); color: #3a2a00; }

/* ---------- Track page ---------- */
.track-device-card, .track-history-card { border-radius: var(--st-radius); border-color: var(--st-line); box-shadow: var(--st-shadow); transition: transform .3s var(--st-ease), box-shadow .3s; }
.track-history-card:hover { transform: translateY(-3px); box-shadow: var(--st-shadow-lg); }
.track-device-card h5 { color: var(--g-800); }
.track-status-banner--wip i { animation: st-pulse-ring 1.8s infinite; border-radius: 50%; }
.ps-not-found-box { border-radius: var(--st-radius); }

/* ---------- Footer ---------- */
footer { background: var(--g-950); }
footer .footer-top { background: linear-gradient(180deg, var(--g-950), var(--g-900)); }
footer .title-widget::after { background: var(--gold); }
footer p, footer .footer-list li a, footer .footer-addres p { color: #9ac0ac; }
footer .footer-list li a { transition: color .25s, padding-right .25s var(--st-ease); }
footer .footer-list li a:hover { color: #fff; padding-right: 6px; }
footer .social-icons li a { transition: transform .25s var(--st-ease), background .25s; }
footer .social-icons li a:hover { background: var(--g-500); border-color: var(--g-500); transform: translateY(-3px); }
.footer-bottom { background: #021a11; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---------- Forms ---------- */
.form-control, input[type="text"], input[type="email"], input[type="password"], textarea { border-radius: 10px; transition: border-color .25s, box-shadow .25s; }
.form-control:focus { border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(31, 178, 106, .16); }

/* ---------- Scroll reveal (classes are added by site-theme.js only) ---------- */
.st-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--st-ease), transform .7s var(--st-ease); transition-delay: var(--st-delay, 0s); }
.st-reveal.st-in { opacity: 1; transform: none; }

/* ---------- Icons ---------- */
.ps-hero-stats .stat-item { text-align: center; }
.stat-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 10px;
    border-radius: 14px; font-size: 21px; color: var(--g-400); background: rgba(76, 208, 140, .12);
    border: 1px solid rgba(134, 239, 172, .22); transition: transform .35s var(--st-ease), background .3s, color .3s;
}
.ps-hero-stats .stat-item:hover .stat-icon { transform: translateY(-4px) rotate(-6deg); background: var(--g-500); color: #fff; }
.stat-icon + .stat-number { display: block; }
.ps-step-icon { display: block; margin: 14px auto 0; font-size: 22px; color: var(--g-600); opacity: .85; transition: transform .35s var(--st-ease); }
.ps-steps-col:hover .ps-step-icon { transform: translateY(-3px) scale(1.2); }
.ps-service-card .ps-icon-circle i, .ps-why-icon-circle i, .contact-icon-circle i, .single-mission-icon i { font-size: 26px; }
.ps-why-icon-circle, .ps-service-card .ps-icon-circle { box-shadow: 0 0 0 8px rgba(31, 178, 106, .08); }
.ps-cta-btn i, .device-search-btn i { margin-left: 6px; }
.ps-cta-btn:hover i { animation: st-ring .6s ease; }
@keyframes st-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }
/* section title ornament: short green+gold bar */
#services h2, .ps-why-card h2, .container-fluid h2, .section-pt-60 h2 { position: relative; padding-bottom: 14px; }
#services h2::after, .container-fluid h2::after, .section-pt-60 h2::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; border-radius: 4px; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--g-500), var(--gold));
}
footer .title-widget i { color: var(--g-400); margin-left: 8px; }
footer .footer-list li a i { margin-left: 8px; color: var(--g-400); transition: transform .25s var(--st-ease); }
footer .footer-list li a:hover i { transform: translateX(-4px); }
footer .footer-addres p i { color: var(--gold); margin-left: 8px; }

@media (max-width: 767px) {
    .ps-hero-section { padding: 64px 0 56px; }
    .ps-hero-stats .stat-item { padding: 0 14px; }
    .ps-hero-search-box { padding: 16px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .st-reveal { opacity: 1; transform: none; }
}

/* Contact cards: equal height, last card keeps its full border */
.contact-info-list { display: grid; grid-auto-rows: 1fr; gap: 14px; }
.contact-info-list .contact-info-card, .contact-info-list .contact-info-card:last-child {
    border: 1px solid var(--st-line); padding: 18px 20px; min-height: 104px; align-items: center; margin: 0;
}

/* Logo: rounded rectangle frame (header + footer), no animation */
.logo-area .logo-box, .footer-logo-box {
    width: 104px; height: 76px; margin: 4px 12px; border-radius: 16px; overflow: hidden; background: #fff;
    border: 2px solid #fff; box-shadow: 0 0 0 2px var(--g-500, #1fb26a), 0 6px 16px rgba(10, 61, 40, .18);
}
.footer-logo-box { margin: 0 0 15px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.logo-area .logo-img, .footer-logo-box .logo-img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 14px; }
.logo-area .logo-placeholder-box, .footer-logo-placeholder-box { border-radius: 14px; }

/* Repair steps: connector goes toward the next step in RTL (between each pair) */
.ps-steps-col:not(:last-child)::after { right: auto; left: -25%; }

/* Prevent horizontal scroll caused by the off-canvas drawer */
html, body { overflow-x: clip; max-width: 100%; }

/* Mobile refinements */
@media (max-width: 575px) {
    .device-search-form-large .device-search-field-wrap { flex-direction: column; align-items: stretch; }
    .device-search-form-large .device-search-field { width: 100%; min-width: 0; }
    .device-search-form-large .device-search-btn { width: 100%; height: 50px; padding: 0 18px; }
    .ps-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 0; margin-top: 36px; }
    .ps-hero-stats .stat-item { padding: 0 8px; }
    .ps-hero-stats .stat-item + .stat-item { border-right: 0; }
    .ps-hero-stats .stat-item:nth-child(even) { border-right: 1px solid rgba(255, 255, 255, .16); }
    .ps-hero-stats .stat-number { font-size: 26px; }
}
@media (max-width: 575px) {
    .device-search-form-large .device-search-field { flex: none; height: 54px; }
}

/* Space between the CTA section and the footer */
.ps-cta-wrap { padding-bottom: 40px; }
@media (max-width: 767px) { .ps-cta-wrap { padding-bottom: 28px; } }

.track-status-banner--reg { background: linear-gradient(135deg, #64748b, #475569); color: #fff; }
.track-steps { list-style: none; display: flex; padding: 0; margin: -6px 0 22px; }
.track-steps li { flex: 1; position: relative; text-align: center; font-size: 13px; font-weight: 600; color: #94a3b8; }
.track-steps li::before { content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 3px; background: #e2e8f0; }
.track-steps li:first-child::before { display: none; }
.track-steps li.is-done::before, .track-steps li.is-current::before { background: var(--g-500, #1fb26a); }
.track-step-dot { position: relative; z-index: 1; display: flex; width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; align-items: center; justify-content: center; background: #f1f5f9; border: 2px solid #e2e8f0; }
.track-steps li.is-done { color: var(--g-600, #15915a); }
.track-steps li.is-done .track-step-dot { background: var(--g-500, #1fb26a); border-color: var(--g-500, #1fb26a); color: #fff; }
.track-steps li.is-current { color: #0f172a; }
.track-steps li.is-current .track-step-dot { background: #fff; border-color: var(--g-500, #1fb26a); color: var(--g-600, #15915a); box-shadow: 0 0 0 5px rgba(31, 178, 106, .15); }
@media (max-width: 575px) { .track-steps li { font-size: 11px; } }

/* About page: intro card */
.about-card { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--st-line, #e2e8f0); border-radius: 22px; padding: 40px 36px; box-shadow: 0 18px 44px rgba(10, 61, 40, .09); position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 6px; background: linear-gradient(90deg, #15915a, #1fb26a, #f2b842); }
.about-card .about-icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: #e7f8ee; color: #15915a; font-size: 30px; }
.about-card h2 { font-size: 26px; margin-bottom: 14px; }
.about-card .welcome-dec { font-size: 16px; line-height: 2.1; color: #475569; margin: 0; }
@media (max-width: 575px) { .about-card { padding: 28px 20px; border-radius: 18px; } .about-card h2 { font-size: 21px; } }

/* Services dropdown: light panel, fades in/out */
.categories-menu-wrap_box .categories_menu_toggle {
    display: block !important;
    background: #fff !important;
    border: 1px solid #e2efe7;
    box-shadow: 0 18px 40px rgba(10, 61, 40, .18);
    border-radius: 0 0 14px 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.categories-menu-wrap_box .categories_menu_toggle.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
}

/* Login/register card polish */
.login-register-tab-list { padding-top: 22px; }
.login-register-tab-list a { padding: 6px 4px 16px; }
.login-form-container .login-btn, .login-form-container .register-btn { color: #fff !important; background: linear-gradient(135deg, #1fb26a, #15915a) !important; border: 0 !important; opacity: 1 !important; }
.login-form-container .login-btn span, .login-form-container .register-btn span { color: #fff !important; }
.login-form-container .login-btn:hover, .login-form-container .register-btn:hover { filter: brightness(1.07); }
