/* PlacementIQ clean professional UI */

:root {
    --primary: #1f5eff;
    --primary-dark: #153c9f;
    --primary-soft: #edf4ff;
    --accent: #12a594;
    --accent-soft: #e0f8f5;
    --success: #079669;
    --success-soft: #dcfce7;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --ink: #101828;
    --text: #1f2937;
    --muted: #667085;
    --line: #d8e0ec;
    --soft-line: #edf1f7;
    --page: #f5f7fb;
    --surface: #ffffff;
    --footer: #0b1220;
    --radius-sm: 10px;
    --radius: 12px;
    --radius-lg: 16px;
    --nav-height: 68px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 8px 22px rgba(16, 24, 40, 0.055);
    --shadow-md: 0 20px 50px rgba(16, 24, 40, 0.095);
    --transition: 0.2s ease;
}

:root.dark-mode {
    --primary: #7aa2ff;
    --primary-dark: #c7d7ff;
    --primary-soft: rgba(122, 162, 255, 0.16);
    --accent: #39d5c2;
    --accent-soft: rgba(57, 213, 194, 0.14);
    --success: #35d399;
    --success-soft: rgba(53, 211, 153, 0.14);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.14);
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, 0.14);
    --ink: #f8fbff;
    --text: #d7deea;
    --muted: #98a6ba;
    --line: #2b3a52;
    --soft-line: #203047;
    --page: #0d1422;
    --surface: #121b2d;
    --footer: #060a12;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.22);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.34);
}

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

html {
    scroll-behavior: smooth;
}

.site-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(rgba(36, 87, 214, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 87, 214, 0.035) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(36, 87, 214, 0.12), transparent 32rem),
        radial-gradient(circle at 92% 20%, rgba(15, 159, 143, 0.10), transparent 24rem),
        linear-gradient(180deg, #f7faff 0, var(--page) 360px, var(--page) 100%);
    background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

:root.dark-mode .site-body {
    background:
        linear-gradient(rgba(122, 162, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 162, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(31, 94, 255, 0.22), transparent 34rem),
        radial-gradient(circle at 92% 20%, rgba(18, 165, 148, 0.15), transparent 24rem),
        linear-gradient(180deg, #0b1220 0, var(--page) 360px, var(--page) 100%);
    background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

a {
    color: var(--primary);
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    line-height: 1.25;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 9999;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Navbar */
.app-navbar {
    min-height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(216, 224, 236, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

:root.dark-mode .app-navbar {
    background: rgba(12, 18, 32, 0.9) !important;
    border-bottom-color: rgba(43, 58, 82, 0.95);
}

.app-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink) !important;
    font-size: 1.22rem;
    font-weight: 850;
    letter-spacing: 0;
}

:root.dark-mode .app-navbar .navbar-brand {
    color: var(--ink) !important;
}

.app-navbar .navbar-brand i {
    color: var(--primary);
}

.app-navbar .nav-link,
.app-navbar .btn-link {
    color: #475467 !important;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
}

:root.dark-mode .app-navbar .nav-link,
:root.dark-mode .app-navbar .btn-link {
    color: #c4ccda !important;
}

.app-navbar .nav-link:hover,
.app-navbar .btn-link:hover {
    color: var(--primary-dark) !important;
    background: var(--primary-soft);
}

:root.dark-mode .app-navbar .nav-link:hover,
:root.dark-mode .app-navbar .btn-link:hover {
    color: var(--ink) !important;
    background: rgba(122, 162, 255, 0.12);
}

.app-navbar .navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

.nav-user-pill {
    color: var(--primary-dark) !important;
    background: var(--primary-soft) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-xs);
    transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

:root.dark-mode .theme-toggle-btn {
    color: #ffe8a3;
    background: #172238;
    border-color: #2b3a52;
}

.theme-toggle-btn:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.theme-toggle-btn i {
    font-size: 1rem;
    line-height: 1;
}

.btn-nav-register {
    color: #fff !important;
    background: var(--ink) !important;
}

:root.dark-mode .btn-nav-register {
    color: #09111f !important;
    background: #f8fbff !important;
}

.btn-nav-register:hover {
    color: #fff !important;
    background: var(--primary-dark) !important;
}

/* Layout */
.page-shell {
    flex: 1 0 auto;
    width: 100%;
    padding: calc(var(--nav-height) + 1.2rem) 0 3rem;
}

.content-wrapper,
.dash-panel,
.feature-card,
.category-card,
.quiz-card,
.stat-card,
.stat-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

:root.dark-mode .content-wrapper,
:root.dark-mode .dash-panel,
:root.dark-mode .feature-card,
:root.dark-mode .category-card,
:root.dark-mode .quiz-card,
:root.dark-mode .stat-card,
:root.dark-mode .stat-item,
:root.dark-mode .auth-card,
:root.dark-mode .table-modern,
:root.dark-mode .empty-state {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.content-wrapper {
    padding: 1.75rem;
}

.page-header,
.app-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-section-title {
    align-items: center;
    margin-bottom: 1rem;
}

.page-header h1,
.page-header h2,
.app-section-title h3,
.app-section-title h4,
.app-section-title h5 {
    margin: 0;
    font-weight: 800;
}

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.58rem 1.08rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #1746b8);
    box-shadow: 0 10px 22px rgba(36, 87, 214, 0.20);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #123078);
    box-shadow: 0 14px 28px rgba(36, 87, 214, 0.28);
}

.btn-outline-primary {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: #fff;
}

:root.dark-mode .btn-outline-primary,
:root.dark-mode .btn-outline-secondary {
    color: var(--ink);
    background: #101a2d;
    border-color: #33435d;
}

.btn-outline-primary:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.btn-outline-secondary {
    color: #475467;
    border: 1px solid var(--line);
    background: #fff;
}

.btn-outline-secondary:hover {
    color: var(--ink);
    border-color: #b9c4d4;
    background: #f8fafc;
}

.btn-success {
    border: 0;
    color: #fff;
    background: var(--success);
}

.btn-danger {
    border: 0;
    color: #fff;
    background: var(--danger);
}

.btn-sm {
    padding: 0.42rem 0.78rem;
    font-size: 0.82rem;
}

/* Home */
.hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
    align-items: center;
    gap: 1.35rem;
    min-height: 430px;
    margin-bottom: 1.65rem;
    padding: 2.55rem 2.75rem;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(rgba(24, 60, 153, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 60, 153, 0.045) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
        linear-gradient(135deg, #e7f0ff, #e7fbf7);
    background-size: 34px 34px, 34px 34px, auto, auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.095);
}

:root.dark-mode .hero-banner {
    background:
        linear-gradient(rgba(122, 162, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 162, 255, 0.055) 1px, transparent 1px),
        linear-gradient(135deg, rgba(18, 27, 45, 0.96), rgba(16, 26, 44, 0.88)),
        linear-gradient(135deg, #13213a, #0f2b2f);
    border-color: #2b3a52;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.hero-banner::after {
    content: "";
    position: absolute;
    right: -6rem;
    top: -6rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(15, 159, 143, 0.14);
}

.hero-banner::before {
    content: "";
    position: absolute;
    right: 1.4rem;
    bottom: 1.55rem;
    width: min(39%, 500px);
    height: 60%;
    border: 1px solid rgba(36, 87, 214, 0.10);
    border-radius: 28px;
    background:
        linear-gradient(rgba(15, 159, 143, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 159, 143, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(15, 159, 143, 0.12), rgba(36, 87, 214, 0.05));
    background-size: 22px 22px, 22px 22px, auto;
    opacity: 0.95;
}

:root.dark-mode .hero-banner::before,
:root.dark-mode .hero-visual::before {
    border-color: rgba(122, 162, 255, 0.14);
    background:
        linear-gradient(rgba(57, 213, 194, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 213, 194, 0.07) 1px, transparent 1px),
        linear-gradient(135deg, rgba(57, 213, 194, 0.10), rgba(122, 162, 255, 0.06));
    background-size: 22px 22px, 22px 22px, auto;
}

.hero-copy,
.hero-visual,
.hero-preview {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.38rem 0.68rem;
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: var(--shadow-xs);
}

:root.dark-mode .eyebrow,
:root.dark-mode .trust-badge {
    color: var(--ink);
    background: #101a2d;
    border-color: #2b3a52;
}

.hero-banner h1 {
    max-width: 720px;
    margin: 0 0 0.78rem;
    color: var(--ink);
    font-size: clamp(2.45rem, 4.6vw, 4.15rem);
    font-weight: 900;
    line-height: 1.03;
}

.hero-banner p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.22rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.36rem 0.6rem;
    color: #475467;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.trust-badge i {
    color: var(--accent);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: 520px;
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(216, 224, 236, 0.86);
}

.hero-metrics div {
    padding: 0.2rem 0;
}

.hero-metrics strong,
.hero-metrics span {
    display: block;
}

.hero-metrics strong {
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1;
}

.hero-metrics span {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-visual {
    min-height: 352px;
    padding: 0.35rem 0.4rem 2.4rem;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0.65rem 0.15rem 0;
    z-index: -1;
    border: 1px solid rgba(36, 87, 214, 0.10);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 18%, rgba(36, 87, 214, 0.12), transparent 10rem),
        radial-gradient(circle at 82% 28%, rgba(15, 159, 143, 0.14), transparent 12rem),
        linear-gradient(rgba(36, 87, 214, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 87, 214, 0.07) 1px, transparent 1px),
        rgba(255, 255, 255, 0.50);
    background-size: auto, auto, 22px 22px, 22px 22px, auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 162px;
    padding: 0.66rem 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(216, 224, 236, 0.9);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(24, 60, 153, 0.12);
    backdrop-filter: blur(12px);
}

:root.dark-mode .floating-card,
:root.dark-mode .hero-preview {
    background: rgba(18, 27, 45, 0.94);
    border-color: #2b3a52;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.floating-card i {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1.2;
}

.floating-card span {
    color: var(--muted);
    font-size: 0.72rem;
}

.floating-card-score {
    left: 0.15rem;
    top: 0.7rem;
}

.floating-card-ai {
    right: 0.7rem;
    bottom: 0.25rem;
}

.hero-preview {
    padding: 0.95rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(24, 60, 153, 0.15);
    max-width: 520px;
    justify-self: center;
    width: min(100%, 390px);
    margin-top: 1.2rem;
}

.hero-preview::before {
    content: "";
    display: block;
    height: 8px;
    margin: -0.14rem -0.14rem 0.82rem;
    border-radius: 16px 16px 7px 7px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.preview-top,
.preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.preview-pill,
.preview-time {
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.preview-pill {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.preview-time {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.preview-question {
    margin: 0.82rem 0;
    padding: 0.95rem;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    font-weight: 800;
    line-height: 1.45;
}

:root.dark-mode .preview-question,
:root.dark-mode .preview-options span,
:root.dark-mode .attempt-row,
:root.dark-mode .drive-card,
:root.dark-mode .filter-bar,
:root.dark-mode .table-modern thead {
    background: #0e1728;
    border-color: #2b3a52;
}

.preview-options {
    display: grid;
    gap: 0.48rem;
}

.preview-options span {
    position: relative;
    display: block;
    height: 34px;
    background: linear-gradient(90deg, #f8fafc, #eef3fa);
    border: 1px solid #e3e9f2;
    border-radius: var(--radius-sm);
}

.preview-options span::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid #c7d2e3;
    border-radius: 50%;
    transform: translateY(-50%);
}

.preview-options span::after {
    content: "";
    position: absolute;
    left: 1.8rem;
    top: 50%;
    width: 58%;
    height: 0.45rem;
    border-radius: 999px;
    background: #dfe6f0;
    transform: translateY(-50%);
}

:root.dark-mode .preview-options span::after {
    background: #32435d;
}

.preview-options .active {
    background: linear-gradient(90deg, var(--primary-soft), #f7fbff);
    border-color: #9eb9ff;
    box-shadow: inset 4px 0 0 var(--primary);
}

:root.dark-mode .preview-options .active {
    background: rgba(122, 162, 255, 0.13);
    border-color: #5f82d8;
}

.preview-options .active::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 2px #fff;
}

.preview-options .active::after {
    background: #b7caff;
}

.preview-footer {
    margin-top: 0.82rem;
    padding-top: 0.82rem;
    border-top: 1px solid var(--soft-line);
}

.preview-footer strong,
.preview-footer small {
    display: block;
}

.preview-footer strong {
    color: var(--ink);
}

.preview-footer small {
    color: var(--muted);
    font-size: 0.72rem;
}

.feature-card {
    height: 100%;
    min-height: 124px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.section-heading {
    max-width: 760px;
    margin: 0 0 0.75rem;
}

.section-heading span,
.section-kicker {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 900;
}

.companies-section {
    padding: 1rem;
    margin-top: 0.15rem;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(216, 224, 236, 0.86);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.05);
}

:root.dark-mode .companies-section {
    background: rgba(18, 27, 45, 0.72);
    border-color: #2b3a52;
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(36, 87, 214, 0.05);
}

.feature-card h6 {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.feature-card p,
.category-card p {
    color: var(--muted) !important;
    font-size: 0.76rem;
    line-height: 1.45;
}

.feature-card:hover,
.category-card:hover,
.quiz-card:hover,
.company-tile:hover {
    transform: translateY(-3px);
    border-color: #abc0ee;
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    border-radius: var(--radius);
    font-size: 1.2rem;
}

.feature-icon.purple,
.stat-icon.purple {
    color: var(--primary);
    background: var(--primary-soft);
}

.feature-icon.blue,
.stat-icon.blue {
    color: var(--accent);
    background: var(--accent-soft);
}

.feature-icon.green,
.stat-icon.green {
    color: var(--success);
    background: var(--success-soft);
}

.feature-icon.orange,
.stat-icon.orange {
    color: var(--warning);
    background: var(--warning-soft);
}

/* Cards and company tiles */
.category-card,
.quiz-card,
.stat-card {
    height: 100%;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card .card-body {
    min-height: 138px;
}

.company-logo-placeholder,
.company-tile .tile-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    border-radius: 16px;
}

.company-logo-placeholder {
    width: 118px;
    height: 54px;
    margin: 0 auto 0.7rem;
    padding: 0.35rem 0.55rem;
    background: #fff;
    border: 1px solid var(--soft-line);
    box-shadow: var(--shadow-xs);
}

:root.dark-mode .company-logo-placeholder,
:root.dark-mode .category-card .company-card-logo {
    background: #f8fbff;
    border-color: #d8e0ec;
}

.category-card .company-card-logo {
    width: 118px;
    height: 54px !important;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--soft-line);
    border-radius: 16px !important;
    box-shadow: var(--shadow-xs);
}

.company-logo-placeholder span,
.company-tile .tile-logo span {
    color: var(--primary-dark);
    font-weight: 900;
}

.category-card h6 {
    font-size: 0.88rem;
    font-weight: 850;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
}

.company-tile {
    display: block;
    padding: 1.15rem 0.75rem;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.company-tile .tile-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.company-tile img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.company-tile h6 {
    margin: 0 0 0.15rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.company-tile .tile-count {
    color: var(--muted);
    font-size: 0.72rem;
}

/* Forms and auth */
.form-control,
.form-select,
.auth-input-group input {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

:root.dark-mode .form-control,
:root.dark-mode .form-select,
:root.dark-mode .auth-input-group input {
    color: var(--text);
    background: #0e1728;
    border-color: var(--line);
}

.form-control,
.form-select {
    padding: 0.7rem 0.95rem;
}

.form-control:focus,
.form-select:focus,
.auth-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.10);
    outline: 0;
}

.form-label,
.auth-input-group label {
    color: #344054;
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-page {
    min-height: calc(100vh - var(--nav-height) - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    padding: 2.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

:root.dark-mode .auth-card {
    background: var(--surface);
}

.auth-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
}

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

.auth-title {
    margin-bottom: 0.35rem;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 900;
}

.auth-subtitle {
    margin-bottom: 1.7rem;
    color: var(--muted);
    text-align: center;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-group input {
    width: 100%;
    padding: 0.7rem 0.95rem 0.7rem 2.6rem;
}

.auth-input-group .input-icon {
    position: absolute;
    left: 0.9rem;
    bottom: 0.82rem;
    color: var(--muted);
    pointer-events: none;
}

.auth-input-group .input-hint,
.auth-link,
.social-proof p,
.benefit-item {
    color: var(--muted);
    font-size: 0.82rem;
}

.btn-signin,
.btn-signup,
.btn-admin-signin {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.78rem 1rem;
    border: 0;
    border-radius: var(--radius-sm);
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #1746b8);
    font-weight: 800;
}

.auth-link,
.social-proof,
.benefits-row {
    margin-top: 1.3rem;
    text-align: center;
}

.social-proof,
.benefits-row {
    padding-top: 1.15rem;
    border-top: 1px solid var(--soft-line);
}

.social-proof p,
.benefit-item,
.benefits-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.avatars {
    display: flex;
}

.avatar-dot {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 800;
}

.avatar-dot:first-child {
    margin-left: 0;
}

.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Dashboard and admin */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    padding: 1.25rem;
    text-align: center;
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    border-radius: var(--radius);
}

.stat-value {
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.1;
}

.stat-label {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dash-panel {
    padding: 1.4rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--ink);
    font-weight: 800;
}

.attempt-list {
    display: grid;
    gap: 0.55rem;
}

.attempt-row,
.drive-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid var(--soft-line);
    border-radius: var(--radius);
    text-decoration: none;
}

.attempt-row:hover,
.drive-card:hover {
    background: var(--primary-soft);
    border-color: #c8d8ff;
}

.attempt-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #fff;
    border-radius: var(--radius-sm);
}

.attempt-info {
    min-width: 0;
    flex: 1;
}

.attempt-info h6 {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attempt-info p,
.attempt-score .score-date,
.drive-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
}

.attempt-score {
    text-align: right;
}

.attempt-score .score-num {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 900;
}

.drive-card {
    display: block;
}

.drive-date {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.25rem 0.5rem;
    color: #92400e;
    background: var(--warning-soft);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-stat-card {
    min-height: 118px;
    padding: 1.35rem;
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.admin-stat-card .display-6 {
    font-size: 2rem;
    font-weight: 900;
}

.admin-stat-card.primary {
    background: linear-gradient(135deg, #2457d6, #1746b8);
}

.admin-stat-card.success {
    background: linear-gradient(135deg, #079669, #047857);
}

.admin-stat-card.info {
    background: linear-gradient(135deg, #0f9f8f, #0f766e);
}

.admin-stat-card.warning {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Quiz and results */
.quiz-timer {
    padding: 0.85rem 1.1rem;
    color: #92400e;
    text-align: center;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    font-weight: 900;
}

.quiz-timer.danger {
    color: #991b1b;
    background: var(--danger-soft);
    border-color: #fca5a5;
}

.quiz-option {
    padding: 1rem 1.15rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.quiz-option:hover,
.quiz-option:has(input:checked) {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.quiz-option:hover {
    transform: translateX(2px);
}

.soft-panel,
.result-summary {
    background: linear-gradient(135deg, #fff, #f8fbff);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

:root.dark-mode .soft-panel,
:root.dark-mode .result-summary,
:root.dark-mode .score-ring-inner {
    background: var(--surface);
    border-color: var(--line);
}

.score-ring {
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--pct) * 1%), #e7edf6 0);
    box-shadow: var(--shadow-sm);
}

.score-ring-inner {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    background: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
}

.answer-review-card {
    border-left: 4px solid var(--line);
}

.answer-review-card.is-correct {
    border-left-color: var(--success);
}

.answer-review-card.is-wrong {
    border-left-color: var(--danger);
}

/* Tables, badges, filters */
.table-modern {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.table-modern thead {
    background: #f8fafc;
}

.table-modern th {
    color: #475467;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--soft-line);
    border-radius: var(--radius-lg);
}

.filter-label {
    color: #475467;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.test-meta-list li,
.metric-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    background: #fff;
    border: 1px dashed #b9c4d4;
    border-radius: var(--radius-lg);
}

/* Footer */
.app-footer {
    flex-shrink: 0;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.76);
    background: var(--footer);
}

.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
}

.footer-main {
    padding: 2.7rem 0 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
}

.footer-logo:hover {
    color: #fff;
}

.footer-tagline,
.footer-cta-text,
.footer-links a,
.footer-links span,
.footer-bottom small {
    color: rgba(255, 255, 255, 0.58);
}

.footer-heading {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a,
.footer-links span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: #fff;
}

.btn-footer-cta {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-footer-cta:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.footer-bottom {
    padding: 1.2rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.35s ease both;
}

.fade-in-up-delay-1 {
    animation-delay: 0.06s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.12s;
}

.fade-in-up-delay-3 {
    animation-delay: 0.18s;
}

/* Responsive */
@media (max-width: 991.98px) {
    .app-navbar .navbar-collapse {
        padding: 1rem;
        margin-top: 0.5rem;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    .hero-banner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 1.6rem;
        gap: 1.35rem;
    }

    .hero-banner::before {
        width: auto;
        left: 2rem;
        right: 2rem;
        height: 38%;
    }

    .hero-visual {
        min-height: 320px;
    }

    .dash-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    :root {
        --nav-height: 62px;
    }

    .page-shell {
        padding-top: calc(var(--nav-height) + 1rem);
    }

    .hero-banner,
    .content-wrapper,
    .auth-card {
        padding: 1rem;
    }

    .hero-banner h1 {
        font-size: 1.9rem;
    }

    .hero-banner p {
        font-size: 0.96rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .hero-visual {
        min-height: 0;
        display: block;
    }

    .hero-visual::before {
        inset: 0.5rem;
        border-radius: 22px;
    }

    .floating-card {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        min-width: 0;
        margin: 0.7rem auto;
        width: min(100%, 280px);
    }

    .floating-card-ai {
        display: none;
    }

    .companies-section {
        padding: 1rem;
        border-radius: 18px;
    }

    .hero-actions .btn,
    .btn-nav-register {
        width: 100%;
    }

    .trust-badge {
        width: 100%;
        justify-content: center;
    }

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

    .name-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-main .row > div,
    .footer-bottom {
        text-align: center;
    }

    .footer-links a,
    .footer-links span {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}
