/* =========================================================
   MODERN THEME OVERLAY — loads AFTER bootstrap.css
   PerfectPanel custom style.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand */
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-light: #eef2ff;

    /* Neutrals */
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-faint: #94a3b8;
    --paper: #ffffff;
    --bg: #f4f5fb;
    --border: #e6e8f0;

    /* Status */
    --success: #16a34a;
    --success-bg: #ecfdf3;
    --info: #0ea5e9;
    --info-bg: #eff8ff;
    --warning: #d97706;
    --warning-bg: #fffaeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;

    --illus-pink: #ec4899;
    --illus-teal: #14b8a6;

    /* Shape */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 4px 16px rgba(15, 23, 42, .08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
}

/* ---------- Base ---------- */
html, body {
    background: var(--bg);
}

body {
    font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

a { color: var(--brand); }
a:hover, a:focus { color: var(--brand-dark); }

::selection { background: var(--brand-light); color: var(--brand-dark); }

/* ---------- Navbar ---------- */
.navbar-default {
    background: var(--paper);
    border: none;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: 0;
    margin-bottom: 28px;
}

.navbar-default .navbar-brand {
    font-weight: 800;
    font-size: 19px;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.navbar-default .navbar-nav > li > a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    margin: 8px 2px;
    padding: 8px 14px;
    transition: background .15s ease, color .15s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    background: var(--brand);
    color: #fff;
}

.navbar-default .navbar-toggle {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.navbar-default .navbar-toggle .icon-bar {
    background: var(--ink);
}

.dropdown-currencies .badge {
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 999px;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
}

.dropdown-menu > li > a {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 14px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--brand-light);
    color: var(--brand-dark);
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    transition: all .15s ease;
    box-shadow: none;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-1px);
}

.btn-default {
    background: var(--paper);
    border-color: var(--border);
    color: var(--ink-soft);
}

.btn-default:hover {
    background: var(--bg);
    border-color: var(--ink-faint);
    color: var(--ink);
}

.btn-success { background: var(--success); border-color: var(--success); }
.btn-danger  { background: var(--danger);  border-color: var(--danger); }
.btn-info    { background: var(--info);    border-color: var(--info); }
.btn-warning { background: var(--warning); border-color: var(--warning); }

.btn-xs, .btn-group-xs > .btn {
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
}

/* ---------- Cards: wells / panels ---------- */
.well {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.panel-default > .panel-heading {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    font-weight: 700;
    padding: 14px 18px;
}

/* ---------- Forms ---------- */
.form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 9px 13px;
    height: 42px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}

label.control-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 6px;
}

/* ---------- Tables ---------- */
.table {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
}

.table > thead > tr > th {
    border-bottom: 1px solid var(--border);
    color: var(--ink-faint);
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: .04em;
    font-weight: 700;
    background: var(--bg);
}

.table > tbody > tr > td {
    border-top: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: #fafbff;
}

.table-hover > tbody > tr:hover {
    background: var(--brand-light);
}

/* wrap tables in a card look automatically */
.table-responsive {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
}

/* ---------- Alerts ---------- */
.alert {
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    padding: 14px 18px;
}

.alert-success { background: var(--success-bg); color: var(--success); }
.alert-info    { background: var(--info-bg);    color: #0369a1; }
.alert-warning { background: var(--warning-bg); color: var(--warning); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger); }

/* ---------- Labels / badges ---------- */
.label {
    border-radius: 999px;
    padding: .3em .8em;
    font-weight: 600;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

/* ---------- Pagination ---------- */
.pagination > li > a,
.pagination > li > span {
    border: 1px solid var(--border);
    color: var(--ink-soft);
    margin-left: 4px;
    border-radius: var(--radius-sm) !important;
}

.pagination > .active > a,
.pagination > .active > span {
    background: var(--brand);
    border-color: var(--brand);
}

/* ---------- Tooltips / popovers ---------- */
.tooltip-inner {
    background: var(--ink);
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 6px 10px;
}

.popover {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ---------- Misc from original theme ---------- */
.ticket-message-right .ticket-message,
.ticket-message-left .ticket-message {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.border-rounded {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
}

.mass-alert .alert {
    border-radius: 0;
}

.mass-alert .alert:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.mass-alert .alert:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Scrollbar (nice-to-have) ---------- */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* =========================================================
   LANDING PAGE (signin.twig used as homepage)
   ========================================================= */

.lp-hero {
    padding: 56px 0 48px;
}

.lp-eyebrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

.lp-headline {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--ink);
}

.lp-subhead {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 26px;
}

.lp-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.lp-cta-row .btn-lg {
    border-radius: var(--radius-sm);
    padding: 12px 26px;
    font-size: 15px;
}

.lp-trust-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink-soft);
}

.lp-trust-check svg circle {
    fill: var(--success);
}

.lp-trust-check svg {
    vertical-align: -2px;
    margin-right: 3px;
}

.lp-feature-icon svg {
    display: block;
}



/* Auth card on the landing page */
.lp-auth-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
}

.lp-auth-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.lp-auth-divider {
    text-align: center;
    color: var(--ink-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 16px 0;
    position: relative;
}

.lp-auth-divider:before,
.lp-auth-divider:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    border-top: 1px solid var(--border);
}

.lp-auth-divider:before { left: 0; }
.lp-auth-divider:after { right: 0; }

.lp-auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin: 18px 0 0;
}

.lp-hero-art {
    position: relative;
    max-width: 420px;
    margin: 36px auto 0;
}

.lp-hero-art svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.lp-float {
    animation: lp-float-drift 3.6s ease-in-out infinite;
    transform-origin: center;
}

.lp-float-2 { animation-duration: 4.4s; animation-delay: .6s; }
.lp-float-3 { animation-duration: 3.1s; animation-delay: 1.1s; }

@keyframes lp-float-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-float { animation: none; }
}

@media (min-width: 992px) {
    .lp-hero-art {
        max-width: none;
        margin: -20px 0 0 -10px;
    }
}

@media (max-width: 767px) {
    .lp-hero-art { display: none; }
}

/* Stats bar */
.lp-stats {
    background: var(--ink);
    padding: 30px 0;
}

.lp-stat {
    text-align: center;
    color: #fff;
}

.lp-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.lp-stat-label {
    display: block;
    font-size: 12.5px;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 4px;
}

/* Generic section */
.lp-section {
    padding: 56px 0;
}

.lp-section-alt {
    background: var(--paper);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.lp-section-title {
    text-align: center;
    font-size: 26px;
    margin: 0 0 36px;
}

/* Feature cards */
.lp-feature-grid {
    display: flex;
    flex-wrap: wrap;
}

.lp-feature {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    height: 100%;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.lp-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.lp-feature h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.lp-feature p {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* Steps */
.lp-steps {
    display: flex;
    flex-wrap: wrap;
}

.lp-step {
    text-align: center;
    padding: 0 16px;
    margin-bottom: 24px;
}

.lp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.lp-step h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.lp-step p {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 991px) {
    .lp-headline { font-size: 32px; }
    .lp-hero { padding: 36px 0 30px; }
    .lp-auth-card { margin-top: 30px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .well { padding: 18px; border-radius: var(--radius); }
    .navbar-default { margin-bottom: 16px; }
}
