/* ============================================================
   Dark Blue + Ash UI accent layer (UI only – no logic changes)
   Loaded after style.css to refine the dashboard palette.
   ============================================================ */

/* Ash-gray page background in light mode across all user pages
   (dark mode keeps its own navy) */
body:not(.dark) {
    background-color: #eef1f5; /* soft ash */
}
body:not(.dark) .main-container .main-content {
    background-color: #eef1f5; /* soft ash */
}

/* Auth pages (login / register / forgot / reset / otp / verify) */
.laravel-auth-note {
    width: 100%;
    text-align: center;
    padding: 18px 12px 26px;
    font-size: 13px;
    color: #6b7280; /* ash text */
    position: relative;
    z-index: 5;
}
body.dark .laravel-auth-note { color: #9aa5b5; }
.laravel-auth-note .laravel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1e3a8a; /* dark blue */
    text-decoration: none;
}
body.dark .laravel-auth-note .laravel-badge { color: #93a5d6; }
.laravel-auth-note .laravel-badge svg { width: 15px; height: 15px; fill: currentColor; }

/* Slightly cooler ash for panels/cards in light mode so the dark-blue
   accents read as the highlight color */
body:not(.dark) .panel,
body:not(.dark) .main-content .bg-white {
    box-shadow: 0 1px 2px rgba(30, 58, 138, 0.06);
}

/* Footer "Powered by Laravel" bar */
.laravel-footer {
    margin-top: 1.5rem;
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid rgba(30, 58, 138, 0.12);
    color: #6b7280; /* ash text */
    background: linear-gradient(0deg, rgba(30, 58, 138, 0.04), transparent);
}

body.dark .laravel-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #9aa5b5;
    background: transparent;
}

.laravel-footer .laravel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1e3a8a; /* dark blue */
    text-decoration: none;
}

body.dark .laravel-footer .laravel-badge {
    color: #93a5d6;
}

.laravel-footer .laravel-badge svg {
    width: 15px;
    height: 15px;
    fill: #1e3a8a;
}

body.dark .laravel-footer .laravel-badge svg {
    fill: #93a5d6;
}

/* ============================================================
   ROUND 3 — Sharp card redesign (dashboard + buy-number pages)
   CSS only. No markup or logic changes.
   ============================================================ */

/* ---- General panel refinement (all dashboard cards) ---- */
.main-content .panel {
    border-radius: 14px;
    border: 1px solid #e7eaf1;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
                0 8px 24px -12px rgba(30, 58, 138, 0.18);
    transition: box-shadow .25s ease, transform .25s ease;
}
body.dark .main-content .panel {
    border: 1px solid #25324d;
    box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 30px -14px rgba(0,0,0,.6);
}

/* ---- Dashboard top stat cards ---- */
.main-content .grid.gap-3 > .border.bg-white.rounded,
.main-content .grid.gap-3 > .border.rounded {
    position: relative;
    overflow: hidden;
    border: 1px solid #e7eaf1 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.05),
                0 14px 28px -18px rgba(30, 58, 138, 0.35);
    transition: transform .25s ease, box-shadow .25s ease;
}
.main-content .grid.gap-3 > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(16,24,40,.06),
                0 22px 40px -20px rgba(30, 58, 138, 0.45);
}
body.dark .main-content .grid.gap-3 > div {
    border-color: #25324d !important;
}

/* top accent bar + per-card accent colors */
.main-content .grid.gap-3 > div::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--card-accent, #1e3a8a);
}
.main-content .grid.gap-3 > div:nth-child(1) { --card-accent: linear-gradient(90deg,#1e3a8a,#3b5bd6); }
.main-content .grid.gap-3 > div:nth-child(2) { --card-accent: linear-gradient(90deg,#0d9488,#22c1ad); }
.main-content .grid.gap-3 > div:nth-child(3) { --card-accent: linear-gradient(90deg,#d97706,#f59e0b); }
.main-content .grid.gap-3 > div:nth-child(4) { --card-accent: linear-gradient(90deg,#6d28d9,#9333ea); }

/* icon tiles inside stat cards — sharper, with soft glow */
.main-content .grid.gap-3 > div .w-16.h-16.rounded-md {
    border-radius: 14px !important;
    box-shadow: 0 8px 18px -8px rgba(30,58,138,.45);
}

/* the value figure a touch bolder */
.main-content .grid.gap-3 > div .text-xl {
    font-weight: 700;
}

/* ---- Primary buttons — sharp gradient ---- */
.main-content .btn-primary,
.buy-number-panel .btn-primary {
    background-image: linear-gradient(135deg, #1e3a8a 0%, #2f4fc0 100%) !important;
    border: 0 !important;
    box-shadow: 0 6px 16px -8px rgba(30,58,138,.7);
    transition: transform .15s ease, box-shadow .25s ease, filter .2s ease;
}
.main-content .btn-primary:hover,
.buy-number-panel .btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 22px -8px rgba(30,58,138,.75);
    transform: translateY(-1px);
}

/* ---- Buy-number / buy-usa / buy-international main panel ---- */
.buy-number-panel {
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
    border: 1px solid #e7eaf1 !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.05),
                0 18px 40px -22px rgba(30,58,138,.5) !important;
}
.buy-number-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg,#1e3a8a,#0d9488 55%,#f59e0b);
}
body.dark .buy-number-panel { border-color:#25324d !important; }

.buy-number-panel h5 {
    position: relative;
    padding-bottom: 6px;
}
.buy-number-panel h5::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 42px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg,#1e3a8a,#2f4fc0);
}

/* number result cards (static placeholder + JS-injected) */
#card-container .panel,
#my_model .panel {
    border-radius: 14px !important;
    border: 1px solid #e7eaf1;
    box-shadow: 0 1px 2px rgba(16,24,40,.05),
                0 14px 30px -18px rgba(30,58,138,.4);
    transition: transform .25s ease, box-shadow .25s ease;
}
#card-container .panel:hover,
#my_model .panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -18px rgba(30,58,138,.5);
}
body.dark #card-container .panel,
body.dark #my_model .panel { border-color:#25324d; }

/* ============================================================
   ROUND 4 — Apply the sharp card style to EVERY card on the site
   + subtle gradients. CSS only, no markup/logic changes.
   No overflow:hidden on general panels (keeps dropdowns visible).
   ============================================================ */

/* ---- All panels become sharp gradient cards ---- */
.main-content .panel {
    border-radius: 16px !important;
    border: 1px solid #e7eaf1;
    background-image: linear-gradient(180deg, #ffffff 0%, #eef2fb 100%);
    box-shadow: 0 1px 2px rgba(16,24,40,.05),
                0 16px 34px -22px rgba(30,58,138,.40);
    transition: transform .25s ease, box-shadow .25s ease;
}
.main-content .panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 2px rgba(16,24,40,.06),
                0 22px 42px -22px rgba(30,58,138,.5);
}
body.dark .main-content .panel {
    border: 1px solid #25324d;
    background-image: linear-gradient(160deg, #16294b 0%, #0e1726 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -18px rgba(0,0,0,.65);
}

/* top accent strip on every panel (rounded so no clipping needed).
   buy-number-panel is excluded here so it keeps its tri-colour strip. */
.main-content .panel:not(.buy-number-panel) {
    position: relative;
}
.main-content .panel:not(.buy-number-panel)::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: linear-gradient(90deg, #1e3a8a, #3b5bd6 60%, #4f7df0);
}

/* ---- Gradient on the dashboard stat cards ---- */
.main-content .grid.gap-3 > .border.bg-white.rounded,
.main-content .grid.gap-3 > .border.rounded {
    background-image: linear-gradient(180deg, #ffffff 0%, #eef2fb 100%);
}
body.dark .main-content .grid.gap-3 > .border.bg-white.rounded,
body.dark .main-content .grid.gap-3 > .border.rounded {
    background-image: linear-gradient(160deg, #1d3357 0%, #13233f 100%);
}

/* ---- Gradient on number-result cards ---- */
#card-container .panel,
#my_model .panel {
    background-image: linear-gradient(180deg, #ffffff 0%, #eef2fb 100%);
}
body.dark #card-container .panel,
body.dark #my_model .panel {
    background-image: linear-gradient(160deg, #16294b 0%, #0e1726 100%);
}

/* ---- Buy-number panel: keep dropdowns visible, add gradient ---- */
.main-content .buy-number-panel,
.buy-number-panel {
    overflow: visible !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #eef2fb 100%);
}
body.dark .buy-number-panel {
    background-image: linear-gradient(160deg, #16294b 0%, #0e1726 100%);
}
.buy-number-panel::before {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* ---- Cards built on bg-white utility (non-panel) also get the style ---- */
.main-content .rounded.bg-white.shadow-sm,
.main-content .bg-white.rounded.shadow {
    border-radius: 14px !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #eef2fb 100%);
    box-shadow: 0 1px 2px rgba(16,24,40,.05),
                0 14px 30px -20px rgba(30,58,138,.35) !important;
    transition: transform .25s ease, box-shadow .25s ease;
}
.main-content .rounded.bg-white.shadow-sm:hover,
.main-content .bg-white.rounded.shadow:hover {
    transform: translateY(-3px);
}
