:root {
    --shell-bg: #f5f7fb;
    --shell-text: #101828;
    --shell-muted: #667085;
    --shell-card: rgba(255,255,255,.88);
    --shell-line: rgba(16,24,40,.10);
    --shell-nav: rgba(255,255,255,.72);
    --shell-brand-a: #6d28d9;
    --shell-brand-b: #1677ff;
    --shell-accent: #06b6d4;
    --shell-shadow: 0 24px 70px rgba(16,24,40,.12);
    --shell-soft: rgba(37,117,252,.08);
    --shell-danger: #dc2626;
    --shell-success: #059669;
    --shell-warning: #d97706;
}

:root[data-theme="dark"] {
    --shell-bg: #0f172a;
    --shell-text: #f8fafc;
    --shell-muted: #9fb3d1;
    --shell-card: rgba(15, 23, 42, .82);
    --shell-line: rgba(148,163,184,.18);
    --shell-nav: rgba(2, 6, 23, .78);
    --shell-soft: rgba(56,189,248,.10);
    --shell-shadow: 0 24px 70px rgba(0,0,0,.34);
}

* {
    font-family: 'Cairo', sans-serif;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--shell-text);
    background:
        radial-gradient(circle at 20% 0%, rgba(109,40,217,.14), transparent 32rem),
        radial-gradient(circle at 90% 4rem, rgba(6,182,212,.18), transparent 28rem),
        linear-gradient(180deg, #fbfcff 0%, var(--shell-bg) 100%);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at 18% -4rem, rgba(109,40,217,.30), transparent 30rem),
        radial-gradient(circle at 92% 2rem, rgba(6,182,212,.22), transparent 32rem),
        linear-gradient(180deg, #020617 0%, var(--shell-bg) 100%);
}

.admin-shell-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--shell-line);
    background: var(--shell-nav);
    backdrop-filter: blur(22px);
}

.admin-shell-inner {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 1rem;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--shell-text);
    text-decoration: none;
    min-width: 205px;
}

.admin-brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(7,17,31,.96);
    box-shadow: 0 16px 34px rgba(37,117,252,.24);
    overflow: hidden;
}

.admin-brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.admin-brand-title {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
}

.admin-brand-title span {
    color: var(--shell-accent);
}

.admin-brand-subtitle {
    display: block;
    color: var(--shell-muted);
    font-size: .78rem;
    margin-top: .2rem;
}

.admin-menu {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex: 1;
    min-width: 0;
}

.admin-menu-group .dropdown-toggle,
.admin-nav-link,
.admin-user-chip,
.admin-logout,
.admin-login {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .6rem .85rem;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--shell-text);
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.admin-menu-group .dropdown-toggle:hover,
.admin-nav-link:hover,
.admin-user-chip:hover {
    color: var(--shell-text);
    background: var(--shell-card);
    border-color: rgba(37,117,252,.16);
    box-shadow: 0 12px 28px rgba(16,24,40,.08);
    transform: translateY(-1px);
}

.admin-menu-group .dropdown-toggle.active,
.admin-nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--shell-brand-a), var(--shell-brand-b));
    box-shadow: 0 14px 34px rgba(37,117,252,.22);
}

.admin-menu .dropdown-menu {
    padding: .55rem;
    border: 1px solid var(--shell-line);
    border-radius: 18px;
    box-shadow: var(--shell-shadow);
    background: var(--shell-card);
    backdrop-filter: blur(20px);
}

.admin-menu .dropdown-item {
    border-radius: 12px;
    padding: .7rem .85rem;
    font-weight: 800;
    color: var(--shell-text);
}

.admin-menu .dropdown-item:hover {
    background: rgba(37,117,252,.10);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.admin-user-chip {
    color: var(--shell-muted);
    background: var(--shell-card);
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-logout {
    border-color: rgba(239,68,68,.22);
    color: #b42318;
    background: var(--shell-card);
}

.admin-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 42px;
    padding: .55rem .8rem;
    border: 1px solid var(--shell-line);
    border-radius: 14px;
    color: var(--shell-text);
    background: var(--shell-card);
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-icon-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16,24,40,.10);
}

.admin-logout:hover {
    color: white;
    background: #dc2626;
    box-shadow: 0 14px 32px rgba(220,38,38,.18);
}

.admin-login {
    color: white;
    background: linear-gradient(135deg, var(--shell-brand-a), var(--shell-brand-b));
    box-shadow: 0 14px 34px rgba(37,117,252,.22);
}

.admin-main {
    padding: 2rem 1.5rem 3rem;
}

.admin-page {
    width: min(100%, 1440px);
    margin-inline: auto;
}

.admin-page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-kicker {
    color: var(--shell-brand-b);
    font-weight: 900;
    font-size: .82rem;
    letter-spacing: 0;
}

.admin-page-title {
    margin: .25rem 0;
    font-weight: 900;
    font-size: clamp(1.7rem, 2.4vw, 2.45rem);
}

.admin-page-subtitle {
    color: var(--shell-muted);
    margin: 0;
}

.admin-card {
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: var(--shell-card);
    box-shadow: 0 18px 55px rgba(16,24,40,.08);
}

.admin-card:hover {
    border-color: rgba(37,117,252,.24);
}

.admin-card-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--shell-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-card-body {
    padding: 1.15rem;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    background: rgba(37,117,252,.10);
    color: #175cd3;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
}

.field-span-1 { grid-column: span 1; }
.field-span-2 { grid-column: span 2; }
.field-span-3 { grid-column: span 3; }
.field-span-4 { grid-column: span 4; }
.field-span-5 { grid-column: span 5; }
.field-span-6 { grid-column: span 6; }
.field-span-7 { grid-column: span 7; }
.field-span-8 { grid-column: span 8; }
.field-span-9 { grid-column: span 9; }
.field-span-10 { grid-column: span 10; }
.field-span-11 { grid-column: span 11; }
.field-span-12 { grid-column: span 12; }

.admin-form-spacious .form-control,
.admin-form-spacious .form-select {
    padding: 0.85rem 1.15rem;
    font-size: 1rem;
    border-radius: 14px;
}
.admin-form-spacious textarea.form-control {
    min-height: 160px;
    line-height: 1.7;
}

.admin-section-toggle {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: .8rem 1rem;
    background: rgba(37,117,252,.08);
    color: #175cd3;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-section-toggle i {
    transition: transform .2s ease;
}

.admin-section-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.form-label {
    color: var(--shell-text);
    font-weight: 800;
    margin-bottom: .35rem;
}

.form-control,
.form-select {
    min-height: 46px;
    border-radius: 13px;
    border-color: #d0d5dd;
    background-color: rgba(255,255,255,.92);
    color: #101828;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--shell-brand-b);
    box-shadow: 0 0 0 .22rem rgba(37,117,252,.13);
}

.table {
    vertical-align: middle;
    color: var(--shell-text);
}

.table thead th {
    color: var(--shell-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.table tbody td {
    color: var(--shell-text);
}

.table a {
    color: var(--shell-brand-b);
    font-weight: 800;
}

.owner-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid var(--shell-line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(109,40,217,.14), rgba(6,182,212,.12)),
        var(--shell-card);
    box-shadow: var(--shell-shadow);
}

.owner-stat-grid,
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.owner-stat {
    padding: 1.15rem;
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: var(--shell-card);
    box-shadow: 0 16px 40px rgba(16,24,40,.06);
}

.owner-stat i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    margin-bottom: .85rem;
    background: var(--shell-soft);
    color: var(--shell-brand-b);
    font-size: 1.25rem;
}

.owner-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.owner-stat span {
    color: var(--shell-muted);
    font-weight: 800;
}

.owner-action-list {
    display: grid;
    gap: .75rem;
}

.owner-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--shell-line);
    border-radius: 18px;
    color: var(--shell-text);
    text-decoration: none;
    background: var(--shell-card);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.owner-action:hover {
    color: var(--shell-text);
    transform: translateY(-2px);
    border-color: rgba(37,117,252,.28);
    box-shadow: 0 18px 40px rgba(16,24,40,.10);
}

.diag-list {
    display: grid;
    gap: .75rem;
}

.diag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    background: var(--shell-soft);
}

.resource-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--shell-line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 10%, rgba(6,182,212,.22), transparent 18rem),
        linear-gradient(135deg, rgba(109,40,217,.12), rgba(37,117,252,.10)),
        var(--shell-card);
    box-shadow: var(--shell-shadow);
}

.resource-hero h2 {
    margin: 1rem 0 .5rem;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
}

.resource-hero p {
    color: var(--shell-muted);
    font-size: 1.05rem;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.resource-meta span {
    padding: .45rem .75rem;
    border: 1px solid var(--shell-line);
    border-radius: 999px;
    background: var(--shell-card);
    color: var(--shell-muted);
    font-weight: 800;
}

.resource-device {
    min-height: 280px;
    border-radius: 28px;
    border: 1px solid var(--shell-line);
    background: rgba(7,17,31,.96);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.resource-device img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 26px 38px rgba(37,117,252,.35));
}

.resource-device-lines {
    position: absolute;
    inset: auto 2rem 2rem;
    display: grid;
    gap: .6rem;
}

.resource-device-lines span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(6,182,212,.35), rgba(109,40,217,.08));
}

.resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card {
    border: 1px solid var(--shell-line);
    border-radius: 24px;
    overflow: hidden;
    background: var(--shell-card);
    box-shadow: 0 16px 40px rgba(16,24,40,.08);
}

.resource-media {
    aspect-ratio: 16 / 10;
    background: rgba(15,23,42,.08);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.resource-media img,
.resource-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-media a {
    color: var(--shell-text);
    text-decoration: none;
    font-weight: 900;
}

.resource-media a i {
    display: block;
    font-size: 3rem;
    color: var(--shell-brand-b);
    text-align: center;
    margin-bottom: .5rem;
}

.resource-card-body {
    padding: 1rem;
}

.resource-card-body h3 {
    font-size: 1.1rem;
    font-weight: 900;
}

.resource-card-body p {
    color: var(--shell-muted);
    margin-bottom: 0;
}

.btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--shell-brand-a), var(--shell-brand-b));
    box-shadow: 0 14px 30px rgba(37,117,252,.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5b21b6, #0b63ce);
}

.btn {
    border-radius: 13px;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .admin-shell-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-block: .75rem;
    }

    .admin-menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: .25rem;
    }
}

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

    .resource-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-main {
        padding: 1rem .75rem 2rem;
    }

    .admin-page-hero {
        flex-direction: column;
    }

    .field-span-2,
    .field-span-3,
    .field-span-4,
    .field-span-6,
    .field-span-12 {
        grid-column: span 12;
    }

    .owner-stat-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        flex-wrap: wrap;
    }
}

/* Unified premium surface system across legacy Bootstrap pages and new views. */
:root {
    --shell-input-bg: #ffffff;
    --shell-input-text: #101828;
    --shell-input-border: #d0d5dd;
    --shell-table-head: #f8fafc;
    --shell-hover: rgba(37,117,252,.08);
    --shell-hero-glow-a: rgba(109,40,217,.12);
    --shell-hero-glow-b: rgba(6,182,212,.14);
}

:root[data-theme="dark"] {
    --shell-input-bg: rgba(15,23,42,.96);
    --shell-input-text: #f8fafc;
    --shell-input-border: rgba(148,163,184,.26);
    --shell-table-head: rgba(2,6,23,.42);
    --shell-hover: rgba(56,189,248,.10);
    --shell-hero-glow-a: rgba(109,40,217,.24);
    --shell-hero-glow-b: rgba(6,182,212,.18);
}

body,
.admin-main {
    transition: background .25s ease, color .25s ease;
}

.card,
.glass-card,
.list-group,
.modal-content,
.dropdown-menu,
.admin-card,
.resource-card {
    color: var(--shell-text);
    background: var(--shell-card);
    border-color: var(--shell-line);
}

.glass-card {
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(16,24,40,.08);
    backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .glass-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .admin-card,
:root[data-theme="dark"] .resource-card {
    box-shadow: 0 18px 55px rgba(0,0,0,.25);
}

.card-header,
.card-footer {
    color: var(--shell-text);
    background: rgba(37,117,252,.07);
    border-color: var(--shell-line);
}

.bg-light,
.list-group-item,
.form-check.card {
    color: var(--shell-text) !important;
    background-color: var(--shell-soft) !important;
    border-color: var(--shell-line) !important;
}

.text-dark {
    color: var(--shell-text) !important;
}

.text-muted,
.form-text,
.small.text-muted,
.card-text.text-muted {
    color: var(--shell-muted) !important;
}

.form-control,
.form-select,
.form-control-custom,
textarea.form-control {
    background-color: var(--shell-input-bg) !important;
    border: 1px solid var(--shell-input-border) !important;
    color: var(--shell-input-text) !important;
    border-radius: 13px;
}

.form-control::placeholder,
.form-control-custom::placeholder {
    color: color-mix(in srgb, var(--shell-muted) 74%, transparent);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background-color: color-mix(in srgb, var(--shell-input-bg) 82%, var(--shell-line)) !important;
    color: var(--shell-muted) !important;
    opacity: 1;
}

.form-label,
.form-label-custom,
label,
.form-check-label {
    color: var(--shell-text);
}

.table,
.table-glass {
    --bs-table-color: var(--shell-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--shell-line);
    --bs-table-striped-color: var(--shell-text);
    --bs-table-striped-bg: var(--shell-hover);
    --bs-table-hover-color: var(--shell-text);
    --bs-table-hover-bg: var(--shell-hover);
    color: var(--shell-text);
    border-color: var(--shell-line);
}

.table thead,
.table-glass thead {
    background: var(--shell-table-head);
}

.table th,
.table td,
.table-glass th,
.table-glass td {
    border-color: var(--shell-line);
}

.dropdown-item {
    color: var(--shell-text);
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: var(--shell-text);
    background: var(--shell-hover);
}

.alert {
    border-radius: 18px;
    border-color: var(--shell-line);
}

.alert-glass {
    color: var(--shell-text);
    background: var(--shell-card);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-dark {
    color: var(--shell-text);
    border-color: var(--shell-line);
    background: var(--shell-card);
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-dark:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--shell-brand-a), var(--shell-brand-b));
}

.auth-page {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 4.5rem) 1rem;
    position: relative;
    isolation: isolate;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(30px);
    opacity: .65;
    z-index: -1;
}

.auth-page::before {
    top: 8%;
    inset-inline-start: 12%;
    background: radial-gradient(circle, var(--shell-hero-glow-a), transparent 68%);
}

.auth-page::after {
    bottom: 7%;
    inset-inline-end: 10%;
    background: radial-gradient(circle, var(--shell-hero-glow-b), transparent 70%);
}

.auth-card {
    width: min(100%, 430px);
    padding: clamp(1.6rem, 4vw, 2.5rem);
    border: 1px solid var(--shell-line);
    border-radius: 28px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--shell-card) 88%, transparent), color-mix(in srgb, var(--shell-soft) 55%, transparent)),
        var(--shell-card);
    box-shadow: var(--shell-shadow);
    backdrop-filter: blur(24px);
}

.auth-card-wide {
    width: min(100%, 500px);
}

.auth-logo {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 1.25rem;
    border-radius: 24px;
    background: rgba(7,17,31,.96);
    box-shadow: 0 20px 44px rgba(37,117,252,.24);
    overflow: hidden;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-title {
    margin: 0;
    text-align: center;
    color: var(--shell-text);
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 900;
}

.auth-subtitle {
    margin: .55rem auto 1.8rem;
    max-width: 28rem;
    text-align: center;
    color: var(--shell-muted);
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-field label {
    display: block;
    margin-bottom: .45rem;
    color: var(--shell-text);
    font-weight: 900;
    font-size: .9rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    top: 50%;
    inset-inline-start: .95rem;
    transform: translateY(-50%);
    color: var(--shell-muted);
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    min-height: 50px;
    padding: .82rem 2.65rem .82rem 1rem;
    border: 1px solid var(--shell-input-border);
    border-radius: 15px;
    color: var(--shell-input-text);
    background: var(--shell-input-bg);
    font-weight: 700;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

[dir="ltr"] .auth-input-wrap input {
    padding: .82rem 1rem .82rem 2.65rem;
}

.auth-input-wrap input:focus {
    border-color: var(--shell-brand-b);
    box-shadow: 0 0 0 .22rem rgba(37,117,252,.14);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--shell-muted);
    font-weight: 800;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--shell-brand-b);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--shell-brand-a), var(--shell-brand-b));
    box-shadow: 0 18px 38px rgba(37,117,252,.22);
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37,117,252,.30);
}

.auth-switch {
    margin: .35rem 0 0;
    text-align: center;
    color: var(--shell-muted);
    font-weight: 800;
}

.auth-switch a {
    color: var(--shell-accent);
    font-weight: 900;
    text-decoration: none;
}

.auth-error {
    display: flex;
    gap: .7rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(220,38,38,.26);
    border-radius: 16px;
    color: #ef4444;
    background: rgba(220,38,38,.08);
    font-weight: 800;
}

.auth-validation {
    display: block;
    margin-top: .35rem;
    color: #ef4444;
    font-size: .8rem;
    font-weight: 800;
}

.whatsapp-support-float {
    position: fixed;
    inset-inline-end: 1.25rem;
    bottom: 1.25rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 56px;
    min-height: 56px;
    padding: .85rem 1rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 18px 42px rgba(22, 163, 74, .30);
    transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp-support-float:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(22, 163, 74, .38);
}

.whatsapp-support-float i {
    font-size: 1.4rem;
}

@media (max-width: 576px) {
    .whatsapp-support-float span {
        display: none;
    }
}

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

/* ==========================================================================
   SOCIAL SHARE COMPONENT & BUTTONS
   ========================================================================== */
.social-share-wrap {
    display: inline-flex;
    align-items: center;
}

.btn-share-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid rgba(148, 163, 184, .25);
    background: rgba(255, 255, 255, .7);
    color: var(--shell-text);
}

:root[data-theme="dark"] .btn-share-pill {
    background: rgba(15, 23, 42, .75);
    border-color: rgba(148, 163, 184, .18);
    color: #f8fafc;
}

.btn-share-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.share-whatsapp:hover { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; }
.share-facebook:hover { background: #1877f2 !important; color: #fff !important; border-color: #1877f2 !important; }
.share-telegram:hover { background: #229ed9 !important; color: #fff !important; border-color: #229ed9 !important; }
.share-x:hover { background: #000 !important; color: #fff !important; border-color: #000 !important; }
.share-linkedin:hover { background: #0a66c2 !important; color: #fff !important; border-color: #0a66c2 !important; }
.share-copy:hover { background: var(--shell-accent) !important; color: #fff !important; border-color: var(--shell-accent) !important; }

.copied-glow {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, .15) !important;
    animation: pulseGlow 1s infinite alternate;
}

@@keyframes pulseGlow {
    from { box-shadow: 0 0 0 rgba(16, 185, 129, .4); }
    to { box-shadow: 0 0 12px rgba(16, 185, 129, .8); }
}

/* ==========================================================================
   BLOG & TESTIMONIALS SLIDERS
   ========================================================================== */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--shell-brand-a) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--shell-brand-a), var(--shell-brand-b));
    border-radius: 999px;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all .28s cubic-bezier(.4, 0, .2, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--shell-brand-b) !important;
    box-shadow: 0 18px 45px rgba(37, 117, 252, .18);
}

.blog-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: rgba(15, 23, 42, .06);
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.06);
}

.blog-badge {
    position: absolute;
    top: .9rem;
    inset-inline-start: .9rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    background: rgba(15, 23, 42, .8);
    backdrop-filter: blur(12px);
    color: #fff;
}

.blog-title a:hover {
    color: var(--shell-accent) !important;
}

.blog-summary-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-category-pill {
    border-radius: 999px;
    padding: .45rem 1.15rem;
    font-weight: 700;
    border: 1px solid var(--shell-line);
    background: var(--shell-card);
    color: var(--shell-text);
    transition: all .2s ease;
}

.btn-category-pill:hover, .btn-category-pill.active {
    background: linear-gradient(135deg, var(--shell-brand-a), var(--shell-brand-b));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(37, 117, 252, .25);
}

.search-glass-input {
    background: var(--shell-card);
    border: 1px solid var(--shell-line);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
    overflow: hidden;
}

/* ==========================================================================
   CUSTOMER REVIEWS & TESTIMONIALS
   ========================================================================== */
.review-glass-box {
    border-radius: 20px;
    border: 1px solid var(--shell-line);
}

.review-glass-box:hover {
    transform: translateY(-5px);
    border-color: #f59e0b !important;
    box-shadow: 0 16px 40px rgba(245, 158, 11, .15);
}

.review-avatar {
    border: 2px solid var(--shell-brand-b);
}

.review-quote-text {
    font-size: .92rem;
    line-height: 1.6;
}

/* ==========================================================================
   ANALYTICS & FUNNEL
   ========================================================================== */
.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.funnel-step {
    transition: all .25s ease;
}

.funnel-step:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* ==========================================================================
   TRAINING LIBRARY & STEP-BY-STEP FLOW
   ========================================================================== */
.view-switch-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid var(--shell-line);
    background: var(--shell-card);
    color: var(--shell-text);
    transition: all 0.2s ease;
}

.view-switch-btn.active {
    background: linear-gradient(135deg, var(--shell-brand-a), var(--shell-brand-b));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.step-flow-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.step-flow-card {
    background: var(--shell-card);
    border: 1px solid var(--shell-line);
    border-radius: 28px;
    padding: 2.25rem;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .06);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.step-flow-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(16, 24, 40, .12);
    border-color: rgba(56, 189, 248, 0.5);
}

.step-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(6, 182, 212, .15));
    border: 1px solid rgba(56, 189, 248, .4);
    color: var(--shell-brand-b);
    font-weight: 900;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.step-media-box {
    border-radius: 20px;
    overflow: hidden;
    background: #030712;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: 480px;
}

.step-media-box video {
    width: 100%;
    max-height: 480px;
    border-radius: 20px;
    background: #000;
}

.step-media-box img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 20px;
    cursor: zoom-in;
    transition: transform .3s ease;
}

.step-media-box img:hover {
    transform: scale(1.02);
}

/* Slider Styles */
.training-slider-container {
    background: var(--shell-card);
    border: 1px solid var(--shell-line);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(16, 24, 40, .08);
    position: relative;
    overflow: hidden;
}

.slider-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--shell-line);
}

.slider-indicators-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.slider-dot-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: rgba(148, 163, 184, 0.4);
    transition: all 0.25s ease;
    padding: 0;
}

.slider-dot-btn.active {
    width: 32px;
    border-radius: 12px;
    background: var(--shell-brand-b);
}

