/* =========================================================
   OPTISYNC - GLOBAL STYLESHEET
   Main design system used by index.php and all pages
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================================================
   ROOT / DESIGN VARIABLES
   ========================================================= */

:root {

    --navy: #12213D;
    --navy-2: #1B3159;

    --teal: #2CB9AC;
    --teal-dark: #1D8F85;

    --amber: #EFA35C;

    --bg: #F5F6F8;
    --card: #FFFFFF;

    --text: #16202E;
    --muted: #64707E;

    --border: #E4E8EE;

    --danger: #D9534F;
    --success: #2CA65A;

    --radius: 16px;
    --radius-sm: 10px;

    --shadow:
        0 10px 30px -12px rgba(18, 33, 61, 0.18);

    --font-display: 'Fraunces', serif;
    --font-body: 'Manrope', sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family: var(--font-body);

    background: var(--bg);

    color: var(--text);

    line-height: 1.55;

    -webkit-font-smoothing: antialiased;
}


img {
    display: block;

    max-width: 100%;
}


a {

    color: var(--teal-dark);

    text-decoration: none;
}


a:hover {

    text-decoration: underline;
}


h1,
h2,
h3,
h4,
h5,
h6 {

    margin: 0 0 .4em;

    font-family: var(--font-display);

    color: var(--navy);

    line-height: 1.15;

    font-weight: 600;
}


p {

    margin: 0 0 1em;
}


button,
input,
select,
textarea {

    font-family: var(--font-body);
}


:focus-visible {

    outline: 3px solid var(--amber);

    outline-offset: 2px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {

    width: 100%;

    max-width: 1140px;

    margin: 0 auto;

    padding: 0 24px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 13px 26px;

    border: none;

    border-radius: 999px;

    cursor: pointer;

    font-family: var(--font-body);

    font-size: .95rem;

    font-weight: 700;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease,
        color .15s ease;
}


.btn:hover {

    text-decoration: none;

    transform: translateY(-1px);
}


.btn-primary {

    background: var(--navy);

    color: #fff;
}


.btn-primary:hover {

    background: var(--navy-2);

    color: #fff;
}


.btn-accent {

    background: var(--teal);

    color: #062A26;
}


.btn-accent:hover {

    background: var(--teal-dark);

    color: #fff;
}


.btn-outline {

    background: transparent;

    color: var(--navy);

    border: 2px solid var(--navy);
}


.btn-outline:hover {

    background: var(--navy);

    color: #fff;
}


.btn-secondary {

    background: #EFF2F6;

    color: var(--navy);
}


.btn-secondary:hover {

    background: #E4E8EE;

    color: var(--navy);
}


.btn-danger {

    background: var(--danger);

    color: #fff;
}


.btn-danger:hover {

    background: #bd403c;

    color: #fff;
}


.btn-ghost {

    background: transparent;

    color: var(--muted);
}


.btn-block {

    width: 100%;
}


.btn-sm {

    padding: 8px 16px;

    font-size: .82rem;
}


/* =========================================================
   TOP NAVIGATION
   ========================================================= */

.topnav {

    position: sticky;

    top: 0;

    z-index: 100;

    padding: 16px 0;

    background: var(--navy);

    color: #fff;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .12);
}


.topnav .container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;
}


.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #fff;

    font-family: var(--font-display);

    font-size: 1.4rem;

    font-weight: 700;

    white-space: nowrap;
}


.brand:hover {

    color: #fff;

    text-decoration: none;
}


.brand .ring {

    width: 26px;

    height: 26px;

    border: 3px solid var(--teal);

    border-radius: 50%;

    position: relative;

    flex: none;
}


.brand .ring::after {

    content: "";

    position: absolute;

    inset: 5px;

    border: 2px solid var(--amber);

    border-radius: 50%;
}


.nav-links {

    display: flex;

    align-items: center;

    gap: 28px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.nav-links a {

    color: #DCE3EE;

    font-size: .92rem;

    font-weight: 600;
}


.nav-links a:hover {

    color: #fff;

    text-decoration: none;
}


.nav-links .btn {

    padding: 9px 20px;
}


/* =========================================================
   SEARCH BAR
   ========================================================= */

.search-box {

    display: flex;

    align-items: center;

    width: 100%;

    max-width: 220px;

    padding: 6px 13px;

    margin-left: auto;

    background:
        rgba(255, 255, 255, .08);

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 999px;

    transition:
        background .2s ease,
        border-color .2s ease;
}


.search-box:focus-within {

    background:
        rgba(255, 255, 255, .13);

    border-color: var(--teal);
}


.search-box input {

    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: #fff;

    font-size: .85rem;
}


.search-box input::placeholder {

    color: #B9C3D4;
}


.search-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 0 0 8px;

    border: none;

    background: transparent;

    color: #DCE3EE;

    cursor: pointer;

    opacity: .85;

    transition: opacity .2s ease;
}


.search-btn:hover {

    opacity: 1;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    padding: 88px 0 72px;

    position: relative;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 82% 20%,
            rgba(44, 185, 172, .18),
            transparent 45%
        ),

        radial-gradient(
            circle at 95% 65%,
            rgba(239, 163, 92, .15),
            transparent 40%
        ),

        var(--navy);

    color: #fff;
}


.hero .container {

    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    gap: 48px;

    align-items: center;
}


.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    color: var(--teal);

    text-transform: uppercase;

    letter-spacing: .14em;

    font-size: .72rem;

    font-weight: 700;
}


.eyebrow::before {

    content: "";

    width: 22px;

    height: 2px;

    background: var(--teal);

    display: inline-block;
}


.hero h1 {

    max-width: 560px;

    color: #fff;

    font-size: 2.7rem;
}


.hero p.lead {

    max-width: 480px;

    color: #C6CEDC;

    font-size: 1.08rem;
}


.hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 28px;
}


/* =========================================================
   HERO FOCUS ART
   ========================================================= */

.focus-art {

    width: 100%;

    max-width: 360px;

    aspect-ratio: 1 / 1;

    margin: 0 auto;

    position: relative;
}


.focus-ring {

    position: absolute;

    border:
        2px solid rgba(255, 255, 255, .16);

    border-radius: 50%;
}


.focus-ring.r1 {

    inset: 0;
}


.focus-ring.r2 {

    inset: 14%;

    border-color:
        rgba(44, 185, 172, .55);
}


.focus-ring.r3 {

    inset: 28%;

    border-color:
        rgba(239, 163, 92, .6);
}


.focus-ring.r4 {

    inset: 42%;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: var(--teal);

    box-shadow:
        0 0 40px rgba(44, 185, 172, .5);
}


.focus-ring.r4 span {

    color: #062A26;

    font-family: var(--font-display);

    font-size: 1.6rem;

    font-weight: 700;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {

    padding: 76px 0;
}


.section-tight {

    padding: 48px 0;
}


.section-alt {

    background: #fff;
}


.section-head {

    max-width: 640px;

    margin: 0 auto 44px;

    text-align: center;
}


.section-head h2 {

    font-size: 2rem;
}


.section-head p {

    color: var(--muted);
}


/* =========================================================
   GRID
   ========================================================= */

.grid-2 {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 26px;
}


.grid-3 {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 26px;
}


.grid-4 {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


/* =========================================================
   FEATURE CARD
   ========================================================= */

.feature-card {

    padding: 28px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}


.feature-card:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow);
}


.feature-ring {

    width: 48px;

    height: 48px;

    margin-bottom: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 3px solid var(--teal);

    border-radius: 50%;

    position: relative;
}


.feature-ring::after {

    content: "";

    position: absolute;

    inset: 8px;

    border: 2px solid var(--amber);

    border-radius: 50%;
}


.feature-card h3 {

    margin-bottom: 8px;

    font-size: 1.1rem;
}


.feature-card p {

    margin-bottom: 0;

    color: var(--muted);

    font-size: .94rem;
}


/* =========================================================
   GENERIC CARD / PANEL
   ========================================================= */

.card {

    padding: 28px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);
}


.card + .card {

    margin-top: 20px;
}


.panel-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.panel-head h2 {

    margin: 0;

    font-size: 1.3rem;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-shell {

    width: calc(100% - 40px);

    max-width: 440px;

    margin: 60px auto;

    padding: 40px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


.form-shell h1 {

    font-size: 1.6rem;

    text-align: center;
}


.form-shell p.sub {

    margin-bottom: 28px;

    color: var(--muted);

    text-align: center;
}


.field {

    margin-bottom: 18px;
}


.field label {

    display: block;

    margin-bottom: 6px;

    color: var(--navy);

    font-size: .85rem;

    font-weight: 700;
}


.field input,
.field select,
.field textarea {

    width: 100%;

    padding: 12px 14px;

    background: #FBFCFD;

    border: 1.5px solid var(--border);

    border-radius: var(--radius-sm);

    font-family: var(--font-body);

    font-size: .95rem;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}


.field input:focus,
.field select:focus,
.field textarea:focus {

    outline: none;

    background: #fff;

    border-color: var(--teal);

    box-shadow:
        0 0 0 3px rgba(44, 185, 172, .12);
}


.field textarea {

    min-height: 120px;

    resize: vertical;
}


.field-hint {

    margin-top: 4px;

    color: var(--muted);

    font-size: .78rem;
}


.form-foot {

    margin-top: 20px;

    color: var(--muted);

    font-size: .9rem;

    text-align: center;
}


/* =========================================================
   GENERIC FORM GROUP
   ========================================================= */

.form-group {

    margin-bottom: 18px;
}


.form-group label {

    display: block;

    margin-bottom: 7px;

    color: var(--navy);

    font-size: .85rem;

    font-weight: 700;
}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    padding: 12px 14px;

    background: #FBFCFD;

    border: 1.5px solid var(--border);

    border-radius: var(--radius-sm);

    color: var(--text);

    font-family: var(--font-body);

    font-size: .95rem;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    background: #fff;

    border-color: var(--teal);

    box-shadow:
        0 0 0 3px rgba(44, 185, 172, .12);
}


.form-group textarea {

    resize: vertical;
}


.form-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;
}


.form-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 15px;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {

    padding: 13px 16px;

    margin-bottom: 18px;

    border-radius: var(--radius-sm);

    font-size: .88rem;

    font-weight: 600;
}


.alert-success {

    background: #E4F7EC;

    color: var(--success);
}


.alert-error,
.alert-danger {

    background: #FBE9E8;

    color: var(--danger);
}


.alert-info {

    background: #E8F6F5;

    color: var(--teal-dark);
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrap,
.table-container {

    width: 100%;

    overflow-x: auto;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: var(--radius);
}


table {

    width: 100%;

    border-collapse: collapse;

    font-size: .92rem;
}


th,
td {

    padding: 14px 16px;

    text-align: left;

    border-bottom: 1px solid var(--border);
}


th {

    background: #F8F9FB;

    color: var(--muted);

    text-transform: uppercase;

    letter-spacing: .06em;

    font-size: .72rem;

    font-weight: 700;
}


tr:last-child td {

    border-bottom: none;
}


tbody tr:hover td {

    background: #FAFBFC;
}


/* =========================================================
   BADGES / STATUS
   ========================================================= */

.badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 5px 12px;

    border-radius: 999px;

    font-size: .76rem;

    font-weight: 700;

    text-transform: capitalize;
}


.badge::before {

    content: "";

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: currentColor;
}


.badge-pending {

    background: #FCF1E3;

    color: var(--amber);
}


.badge-confirmed {

    background: #E8F6F5;

    color: var(--teal-dark);
}


.badge-processing {

    background: #FCF1E3;

    color: var(--amber);
}


.badge-ready {

    background: #E8F6F5;

    color: var(--teal-dark);
}


.badge-completed,
.badge-collected {

    background: #E4F7EC;

    color: var(--success);
}


.badge-cancelled {

    background: #FBE9E8;

    color: var(--danger);
}


/* =========================================================
   PROGRESS / STATUS TRACKER
   ========================================================= */

.ring-tracker {

    display: flex;

    align-items: center;

    gap: 0;

    margin: 24px 0;
}


.ring-step {

    display: flex;

    flex: 1;

    flex-direction: column;

    align-items: center;

    position: relative;
}


.ring-step .dot {

    width: 40px;

    height: 40px;

    z-index: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff;

    border: 3px solid var(--border);

    border-radius: 50%;

    color: var(--muted);

    font-weight: 700;
}


.ring-step.done .dot {

    background: var(--teal);

    border-color: var(--teal);

    color: #062A26;
}


.ring-step .label {

    margin-top: 8px;

    color: var(--muted);

    font-size: .78rem;

    font-weight: 600;
}


.ring-step.done .label {

    color: var(--navy);
}


.ring-line {

    position: absolute;

    top: 19px;

    left: 50%;

    width: 100%;

    height: 3px;

    z-index: 0;

    background: var(--border);
}


.ring-step.done .ring-line {

    background: var(--teal);
}


.ring-step:first-child .ring-line {

    display: none;
}


/* =========================================================
   QR BOX
   ========================================================= */

.qr-box {

    max-width: 320px;

    margin: 0 auto;

    padding: 32px;

    background: #fff;

    border: 2px dashed var(--teal);

    border-radius: var(--radius);

    text-align: center;
}


#qrcode-canvas {

    display: flex;

    justify-content: center;

    margin: 0 auto 16px;
}


.qr-code-value {

    display: inline-block;

    padding: 6px 12px;

    background: #F8F9FB;

    border-radius: 8px;

    font-family: monospace;

    font-size: .85rem;

    letter-spacing: .05em;
}


/* =========================================================
   CHATBOT
   ========================================================= */

.chat-toggle {

    position: fixed;

    right: 24px;

    bottom: 24px;

    z-index: 200;

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--teal);

    border: none;

    border-radius: 50%;

    cursor: pointer;

    box-shadow:
        0 10px 26px -8px
        rgba(44, 185, 172, .6);
}


.chat-toggle .ring {

    width: 22px;

    height: 22px;

    position: relative;

    border: 3px solid #062A26;

    border-radius: 50%;
}


.chat-toggle .ring::after {

    content: "";

    position: absolute;

    inset: 4px;

    border: 2px solid #062A26;

    border-radius: 50%;
}


.chat-window {

    position: fixed;

    right: 24px;

    bottom: 96px;

    z-index: 200;

    width: 340px;

    max-height: 460px;

    display: none;

    flex-direction: column;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


.chat-window.open {

    display: flex;
}


.chat-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 18px;

    background: var(--navy);

    color: #fff;

    font-weight: 700;
}


.chat-head button {

    border: none;

    background: transparent;

    color: #fff;

    cursor: pointer;

    font-size: 1.1rem;
}


.chat-body {

    min-height: 220px;

    max-height: 280px;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 10px;

    padding: 16px;

    overflow-y: auto;

    background: #F8F9FB;
}


.chat-msg {

    max-width: 80%;

    padding: 10px 14px;

    border-radius: 14px;

    font-size: .86rem;

    line-height: 1.4;
}


.chat-msg.bot {

    align-self: flex-start;

    background: #fff;

    border: 1px solid var(--border);

    border-bottom-left-radius: 4px;
}


.chat-msg.user {

    align-self: flex-end;

    background: var(--teal);

    color: #062A26;

    border-bottom-right-radius: 4px;

    font-weight: 600;
}


.chat-suggestions {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    padding: 0 16px 12px;
}


.chip {

    padding: 6px 12px;

    background: #EFF2F6;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--navy);

    cursor: pointer;

    font-size: .76rem;

    font-weight: 600;
}


.chip:hover {

    background: var(--teal);

    border-color: var(--teal);

    color: #062A26;
}


.chat-input {

    display: flex;

    gap: 8px;

    padding: 10px;

    border-top: 1px solid var(--border);
}


.chat-input input {

    flex: 1;

    padding: 9px 14px;

    border: 1px solid var(--border);

    border-radius: 999px;

    font-family: var(--font-body);
}


.chat-input button {

    padding: 9px 16px;

    background: var(--navy);

    border: none;

    border-radius: 999px;

    color: #fff;

    cursor: pointer;

    font-weight: 700;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {

    padding: 60px 20px;

    color: var(--muted);

    text-align: center;
}


.empty-state .feature-ring {

    margin: 0 auto 16px;
}


/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.text-muted {

    color: var(--muted) !important;
}


.text-navy {

    color: var(--navy) !important;
}


.text-teal {

    color: var(--teal-dark) !important;
}


.text-success {

    color: var(--success) !important;
}


.text-danger {

    color: var(--danger) !important;
}


.mt-0 {

    margin-top: 0 !important;
}


.mb-0 {

    margin-bottom: 0 !important;
}


.flex-between {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.tag-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {

    padding: 44px 0;

    background: var(--navy);

    color: #B9C3D4;

    font-size: .88rem;
}


.site-footer .container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 16px;
}


.site-footer a {

    color: #DCE3EE;
}


.site-footer a:hover {

    color: #fff;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hero .container {

        grid-template-columns: 1fr;
    }


    .grid-3,
    .grid-2 {

        grid-template-columns: 1fr;
    }


    .grid-4 {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .form-row {

        grid-template-columns: 1fr;
    }


    .topnav .container {

        flex-wrap: wrap;
    }


    .search-box {

        order: 3;

        max-width: 100%;

        flex: 1 1 100%;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container {

        padding: 0 18px;
    }


    .hero {

        padding: 64px 0 55px;
    }


    .hero h1 {

        font-size: 2.15rem;
    }


    .hero-actions {

        flex-direction: column;

        align-items: stretch;
    }


    .hero-actions .btn {

        width: 100%;
    }


    .grid-4 {

        grid-template-columns: 1fr;
    }


    .nav-links {

        width: 100%;

        flex-wrap: wrap;

        justify-content: center;

        gap: 14px;
    }


    .topnav .container {

        justify-content: center;
    }


    .brand {

        width: 100%;

        justify-content: center;
    }


    .search-box {

        width: 100%;

        max-width: none;

        margin-left: 0;
    }


    .panel-head,
    .flex-between {

        align-items: flex-start;

        flex-direction: column;
    }


    .form-shell {

        width: calc(100% - 30px);

        margin: 30px auto;

        padding: 28px 22px;
    }


    .form-actions {

        align-items: stretch;

        flex-direction: column;
    }


    .form-actions .btn,
    .form-actions button,
    .form-actions a {

        width: 100%;

        text-align: center;
    }


    .chat-window {

        right: 12px;

        left: 12px;

        width: auto;
    }


    .chat-toggle {

        right: 18px;

        bottom: 18px;
    }


    .site-footer .container {

        align-items: flex-start;

        flex-direction: column;
    }

}

/* =========================================================
   AUTH PAGES
   Shared theme for Customer / Admin Login & Register
   ========================================================= */

.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 15% 15%, rgba(44, 185, 172, .10), transparent 32%),
        radial-gradient(circle at 85% 85%, rgba(239, 163, 92, .10), transparent 30%),
        var(--bg);
    color: var(--text);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 42px 38px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 60px -25px rgba(18, 33, 61, .28);
}

.auth-brand {
    margin-bottom: 34px;
    text-align: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.auth-logo i {
    color: var(--teal);
    font-size: 1.85rem;
}

.auth-brand p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: .87rem;
    font-weight: 700;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input:focus-within {
    background: #fff;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(44, 185, 172, .12);
}

.auth-input-icon {
    width: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    background: #F8FAFC;
    border-right: 1px solid var(--border);
}

.auth-input-icon i {
    font-size: 1rem;
}

.auth-input input {
    width: 100%;
    min-width: 0;
    padding: 0 15px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
    box-shadow: none !important;
}

.auth-input input::placeholder {
    color: #98A2B3;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.auth-submit:hover {
    background: var(--navy-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(18, 33, 61, .55);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 28px;
    color: var(--muted);
    text-align: center;
    font-size: .88rem;
}

.auth-footer p {
    margin: 0 0 18px;
}

.auth-footer a {
    color: var(--teal-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--navy);
    text-decoration: none;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.auth-back i {
    font-size: .78rem;
}

.auth-card .alert {
    margin-bottom: 20px;
}

/* Optional aliases so older login markup can be migrated gradually */
.login-page,
.register-page {
    min-height: 100vh;
    background: var(--bg);
}

@media (max-width: 520px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 34px 24px;
        border-radius: 18px;
    }

    .auth-logo {
        font-size: 1.75rem;
    }

    .auth-logo i {
        font-size: 1.6rem;
    }
}

/* REGISTER PAGE */

.auth-card {
    margin: 30px 0;
}

.auth-page {
    min-height: 100vh;
    height: auto;
}

.auth-card .auth-form {
    gap: 18px;
}

.auth-card .auth-brand {
    margin-bottom: 28px;
}
/* =========================================================
   OPTISYNC 2026 - UNIFIED PORTAL FOUNDATION
   Keeps all portal pages visually consistent with index.php
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
canvas {
    max-width: 100%;
}

.portal-page-head,
.admin-top,
.admin-page-header,
.customer-shell .topbar {
    width: 100%;
}

.portal-page-head h1,
.admin-top h1,
.admin-page-header h1,
.customer-shell .topbar h1 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family: var(--font-display);
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: normal;
}

.portal-page-head p,
.admin-top p,
.admin-page-header p,
.customer-shell .topbar p {
    color: var(--muted);
}

.card,
.content-card,
.info-card,
.stat-card,
.analytics-card,
.notification-info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card,
.content-card {
    width: 100%;
    max-width: 100%;
}

.content-card {
    padding: 30px;
}

.btn {
    width: auto;
    white-space: nowrap;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-2);
}

.btn-accent {
    background: var(--teal);
    color: #062A26;
}

.btn-accent:hover {
    background: var(--teal-dark);
    color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea,
.field input,
.field select,
.field textarea {
    width: 100%;
    background: #FBFCFD;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    background: #fff;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(44, 185, 172, .12);
}

.table-wrap,
.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.table-wrap table,
.table-container table {
    width: 100%;
}

th,
td {
    word-break: normal;
    overflow-wrap: normal;
}

.stat-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    width: 100%;
    min-width: 0;
    min-height: 155px;
    padding: 22px;
    overflow: hidden;
}

.stat-card,
.stat-card * {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.stat-label {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.stat-value {
    margin-bottom: 10px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.analytics-summary-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.analytics-card {
    width: 100%;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
}

.analytics-card h2,
.analytics-card h3 {
    word-break: normal;
    overflow-wrap: normal;
}

.chart-container {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 300px;
    margin-top: 18px;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.notification-info-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.notification-info-card {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
}

.notification-info-card > div:last-child {
    min-width: 0;
}

.notification-info-card h3,
.notification-info-card p {
    word-break: normal;
    overflow-wrap: normal;
}

.notification-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(44, 185, 172, .12);
    color: var(--teal-dark);
}

@media (max-width: 1200px) {
    .stat-grid,
    .analytics-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .analytics-grid,
    .notification-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .stat-grid,
    .analytics-summary-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 22px;
    }
}
