/* ==========================================================================
   VTQ Connect — site-wide theme
   Loaded on guest-facing pages (public layout, login, register) AFTER
   admin-theme.css / adminlte.min.css, so these rules win the cascade.
   Visual language ported from the VTQ Connect interface mockup.
   ========================================================================== */

:root {
    --ink: #143348;
    --muted: #66808e;
    --blue: #176b9c;
    --cyan: #eaf7fa;
    --mint: #e9f7f0;
    --green: #14835f;
    --line: #dce9ed;
    --bg: #f6fafb;
    --white: #fff;
    --shadow: 0 12px 38px rgba(21, 69, 92, .07);
}

body {
    background-color: var(--bg) !important;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
}

a { color: var(--blue); }
a:hover { color: var(--green); }

/* ---------- Header / brand ---------- */
.site-top {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

.site-topin {
    max-width: 1220px;
    margin: auto;
    min-height: 72px;
    padding: 12px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--ink);
}

.site-brand:hover { color: var(--ink); }

.site-logo {
    display: block;
    height: 52px;
    width: auto;
}

.site-brandmark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2376ab, #25b899);
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.site-brand small {
    display: block;
    font-size: 9px;
    letter-spacing: .2em;
    color: #6e8b9a;
    margin-top: -3px;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a.active { color: var(--blue); }

.site-nav .btn-cta {
    background: var(--green);
    color: #fff !important;
    border-radius: 10px;
    padding: 9px 16px;
}

.site-nav .btn-cta:hover { background: #0e6b4d; }

/* ---------- Layout wrap / footer ---------- */
.site-wrap {
    max-width: 1220px;
    margin: auto;
    padding: 28px 26px 70px;
}

.site-foot {
    margin-top: 38px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: #8ca3ac;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #0e557b 0%, #087b83 68%, #27aa90 100%);
    border-radius: 23px;
    color: #fff;
    padding: 30px 38px;
    min-height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero:after {
    content: "";
    position: absolute;
    right: 40px;
    top: -62px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    box-shadow: 0 0 0 50px rgba(255, 255, 255, .04), 0 0 0 105px rgba(255, 255, 255, .035);
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px;
    font-weight: 750;
    opacity: .83;
}

.hero h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 9px 0;
    letter-spacing: -.03em;
    color: #fff;
}

.hero p {
    margin: 0;
    opacity: .9;
    font-size: 14px;
    max-width: 480px;
}

.hero .bubble {
    z-index: 1;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    background: rgba(255, 255, 255, .11);
    font-weight: 700;
    text-align: center;
}

.hero .bubble small {
    display: block;
    font-weight: 500;
    font-size: 11px;
    opacity: .8;
}

/* ---------- Search bar ---------- */
.searchbar {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    margin: -20px 0 24px;
}

.searchbar input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    padding: 10px;
    font-size: 15px;
    color: var(--ink);
    background: transparent;
}

.searchbar input:focus { box-shadow: none; }

.searchbar button {
    background: var(--green);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 21px;
    font-weight: 700;
    white-space: nowrap;
}

.searchbar button:hover { background: #0e6b4d; }

/* ---------- Main grid: filters + results ---------- */
.sim-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.sim-filters {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sim-filtertop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.sim-filtertop h2 {
    font-size: 17px;
    margin: 0;
    color: var(--ink);
}

.sim-filters .clear-link {
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.sim-field { margin: 0 0 17px; }

.sim-field label {
    display: block;
    color: #536d7a;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.sim-field select,
.sim-field input[type="number"],
.sim-field input[type="text"] {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 9px;
    color: var(--ink);
    font-size: 13px;
}

.sim-field .price-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-field .price-range span { color: var(--muted); font-size: 12px; }

.seg {
    display: flex;
    gap: 6px;
    background: #f1f7f8;
    border-radius: 10px;
    padding: 4px;
    flex-wrap: wrap;
}

.seg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.seg label {
    border: 0;
    background: none;
    border-radius: 8px;
    padding: 7px;
    flex: 1;
    color: #637e89;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    min-width: 60px;
}

.seg label:hover { color: var(--blue); }

.seg input:checked + label {
    background: #fff;
    color: #086d78;
    font-weight: 750;
    box-shadow: 0 2px 8px rgba(18, 52, 68, .13);
}

.sim-trust {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: #64818e;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------- Result head ---------- */
.resulthead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin: 4px 0 16px;
    flex-wrap: wrap;
}

.resulthead h2 {
    font-size: 21px;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--ink);
}

.resulthead p {
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.resulthead select {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
}

/* ---------- Category chip row (package type) ---------- */
.sim-category {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 17px 18px 18px;
    border-radius: 17px;
    margin-bottom: 17px;
}

.sim-categoryheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sim-categoryheader strong { font-size: 14px; color: var(--ink); }
.sim-categoryheader span { font-size: 12px; color: var(--muted); }

.chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.chips input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.chip {
    border: 1px solid #dce9ed;
    background: #f8fbfc;
    border-radius: 10px;
    min-height: 42px;
    padding: 7px 8px;
    color: #416274;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    display: block;
}

.chip:hover { color: var(--blue); }

input:checked + .chip {
    background: #e5f7f0;
    border: 1.5px solid #199568;
    color: #08774f;
    box-shadow: inset 0 0 0 1px #a2dec5;
}

.chip em {
    font-style: normal;
    display: block;
    font-size: 10px;
    color: #829ba6;
    font-weight: 500;
}

input:checked + .chip em { color: #438b72; }
.chip.allchip { border-style: dashed; }

/* ---------- Product cards ---------- */
.sim-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sim-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 17px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 232px;
    transition: transform .2s, box-shadow .2s;
}

.sim-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(21, 69, 92, .1);
}

.sim-cardtop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #538092;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 11px;
    gap: 6px;
    flex-wrap: wrap;
}

.sim-cardtop .tag {
    background: #eaf4fb;
    color: #126d9b;
    padding: 5px 8px;
    border-radius: 7px;
}

.sim-cardtop .tag.esim { background: #eaf4fb; color: #126d9b; }
.sim-cardtop .tag.physical { background: #eef0f2; color: #3a4a52; }

.sim-cardtop .duration { color: #5b7d8b; }

.sim-country {
    font-size: 12px;
    color: #317089;
    font-weight: 700;
    margin-bottom: 4px;
}

.sim-card h3 {
    font-size: 16px;
    letter-spacing: -.02em;
    line-height: 1.28;
    margin: 4px 0 6px;
    color: var(--ink);
}

.sim-card .meta {
    font-size: 12px;
    color: #6c8793;
    margin-bottom: 6px;
}

.sim-cardbottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #edf3f4;
    padding-top: 13px;
    margin-top: auto;
    flex-wrap: wrap;
}

.sim-cardbottom .price {
    font-weight: 850;
    color: var(--green);
    font-size: 18px;
    white-space: nowrap;
}

.sim-cardbottom .stock-note {
    font-size: 11px;
    color: var(--muted);
}

.notice {
    font-size: 12px;
    color: #77929e;
    margin-top: 16px;
}

.sim-empty {
    padding: 38px;
    text-align: center;
    border: 1px dashed #bdd5df;
    border-radius: 15px;
    background: #fff;
    color: #61808f;
}

/* ---------- Generic panels (Bootstrap .card override) ---------- */
.site-scope .card {
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: var(--shadow);
}

.site-scope .card-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    border-radius: 17px 17px 0 0 !important;
}

.site-scope .card-header .card-title {
    color: var(--ink);
    font-weight: 700;
}

/* ---------- Buttons ---------- */
.site-scope .btn { border-radius: 10px; font-weight: 700; }

.site-scope .btn-primary,
.site-scope .btn-primary:not(:disabled):not(.disabled) {
    background-color: var(--blue);
    border-color: var(--blue);
}
.site-scope .btn-primary:hover, .site-scope .btn-primary:focus { background-color: #125a83; border-color: #125a83; }

.site-scope .btn-success {
    background-color: var(--green);
    border-color: var(--green);
}
.site-scope .btn-success:hover, .site-scope .btn-success:focus { background-color: #0e6b4d; border-color: #0e6b4d; }

.site-scope .btn-secondary,
.site-scope .btn-outline-secondary {
    background-color: #f1f7f8;
    border-color: var(--line);
    color: var(--ink);
}
.site-scope .btn-secondary:hover { background-color: #e6eef0; }

.site-scope .btn-link { color: var(--blue); }

/* ---------- Forms ---------- */
.site-scope .form-control,
.site-scope .custom-select,
.site-scope select.form-control {
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
}

.site-scope .form-control:focus,
.site-scope select.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 107, 156, .12);
}

.site-scope .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--green);
    border-color: var(--green);
}

.site-scope .input-group-text {
    background-color: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}

/* ---------- Badges / alerts ---------- */
.site-scope .badge { border-radius: 12px; font-weight: 650; }
.site-scope .badge-success { background-color: var(--mint); color: var(--green); }
.site-scope .badge-info { background-color: var(--cyan); color: var(--blue); }
.site-scope .badge-primary { background-color: var(--cyan); color: var(--blue); }
.site-scope .badge-warning { background-color: #fff6e0; color: #a3730f; }
.site-scope .badge-danger { background-color: #fdecec; color: #c23a3a; }
.site-scope .badge-secondary { background-color: #eef1f4; color: #536d7a; }
.site-scope .badge-dark { background-color: #eef0f2; color: #3a4a52; }
.site-scope .badge-light { background-color: #f8fbfc; color: #3a4a52; }

.site-scope .alert { border: 1px solid var(--line); border-radius: 14px; }
.site-scope .alert-success { background-color: var(--mint); color: #0b5f42; border-color: #bfe7d3; }
.site-scope .alert-danger { background-color: #fdecec; color: #a12f2f; border-color: #f3caca; }

/* ---------- Tables ---------- */
.site-scope .table thead.thead-dark th {
    background-color: #eaf7fa;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.site-scope .table td, .site-scope .table th { border-color: var(--line); }

/* ---------- Pagination ---------- */
.site-scope .pagination { flex-wrap: wrap; }
.site-scope .page-link {
    border: 1px solid var(--line);
    color: var(--blue);
    border-radius: 8px;
    margin: 0 3px;
}
.site-scope .page-item.active .page-link {
    background-color: var(--blue);
    border-color: var(--blue);
}

/* ---------- Order modal (Bootstrap markup, restyled) ---------- */
.site-scope .modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(11, 38, 57, .33);
}

.site-scope .modal-header {
    border-bottom: 1px solid var(--line);
    border-radius: 20px 20px 0 0;
}

.site-scope .modal-header.bg-success {
    background-color: var(--green) !important;
}

.site-scope .modal-footer { border-top: 1px solid var(--line); }

/* ---------- Auth boxes (AdminLTE login/register pages) ---------- */
.site-scope.login-page, .site-scope.register-page { background-color: var(--bg); }

.site-scope .login-box .card,
.site-scope .register-box .card {
    border-radius: 20px;
    overflow: hidden;
}

.site-scope .login-box .card-header,
.site-scope .register-box .card-header {
    border-radius: 0 !important;
}

.site-scope .login-logo a, .site-scope .register-logo a {
    color: var(--ink);
    font-weight: 800;
}

/* ---------- Responsive ---------- */
@media (max-width: 950px) {
    .sim-main { grid-template-columns: 1fr; }
    .sim-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .site-topin { padding: 10px 16px; }
    .site-logo { height: 40px; }
    .site-wrap { padding: 15px 13px 60px; }
    .hero { min-height: 130px; padding: 22px 18px; border-radius: 16px; }
    .hero h1 { font-size: 21px; }
    .hero .bubble { display: none; }
    .searchbar { margin: -15px 0 17px; padding: 8px; }
    .sim-cards { grid-template-columns: 1fr; gap: 10px; }
    .chips { display: flex; overflow: auto; padding-bottom: 5px; }
    .chip { min-width: 124px; flex: 0 0 auto; }
    .site-foot { display: block; }
}
