:root {
    --admin-dark: #111317;
    --admin-soft: #f4f5f7;
    --admin-line: #e3e5e8;
    --admin-red: #b61122;
    --admin-muted: #6c737c;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: linear-gradient(135deg, #101113, #383c42);
}

.login-card {
    width: min(420px, calc(100% - 32px));
    padding: 34px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
}

.login-card h1 {
    margin-bottom: 22px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 2px solid #111;
    border-radius: 50%;
    font-weight: 800;
}

.admin-body {
    background: var(--admin-soft);
}

.admin-topbar {
    background: var(--admin-dark);
}

.admin-topbar .navbar-brand,
.admin-topbar .nav-link,
.admin-topbar .navbar-text {
    color: #fff;
}

.admin-topbar .nav-link {
    font-size: 13px;
    font-weight: 700;
}

.admin-main {
    padding: 28px;
}

.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-title h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}

.admin-panel,
.admin-card {
    padding: 24px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 17, 19, .04);
}

.admin-panel h2 {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 800;
}

.admin-card span {
    display: block;
    color: #6c737c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-card strong {
    display: block;
    margin-top: 14px;
    font-size: 42px;
    line-height: 1;
}

.admin-thumb {
    width: 90px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
}

.admin-logo-preview {
    width: auto;
    height: 70px;
    max-width: 220px;
    object-fit: contain;
    padding: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: #fff;
}

.table small {
    color: #6c737c;
}

.feature-admin-hero {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto;
    align-items: end;
    gap: 28px;
    margin-bottom: 24px;
    padding: 34px;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(182, 17, 34, .42), transparent 34%),
        linear-gradient(135deg, #101113 0%, #242832 100%);
    box-shadow: 0 22px 52px rgba(16, 17, 19, .18);
}

.feature-admin-hero span,
.feature-form-head span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-admin-hero h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 900;
    letter-spacing: 0;
}

.feature-admin-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.65;
}

.feature-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 12px;
}

.feature-admin-stats div {
    min-width: 110px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.feature-admin-stats strong,
.feature-admin-stats small {
    display: block;
}

.feature-admin-stats strong {
    font-size: 34px;
    line-height: 1;
}

.feature-admin-stats small {
    margin-top: 8px;
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.cyberster-admin-guide {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, .8fr);
    gap: 24px;
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid rgba(183, 16, 34, .14);
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, rgba(183, 16, 34, .12), transparent 36%),
        #fff;
    box-shadow: 0 16px 38px rgba(16, 17, 19, .06);
}

.cyberster-admin-guide span {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cyberster-admin-guide h3 {
    margin: 0 0 10px;
    color: #101113;
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 900;
    line-height: 1.12;
}

.cyberster-admin-guide p {
    max-width: 760px;
    margin: 0;
    color: var(--admin-muted);
    font-size: 14px;
    line-height: 1.65;
}

.cyberster-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cyberster-guide-grid div {
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #f7f8fa;
}

.cyberster-guide-grid strong,
.cyberster-guide-grid small {
    display: block;
}

.cyberster-guide-grid strong {
    color: var(--admin-red);
    font-size: 25px;
    line-height: 1;
}

.cyberster-guide-grid small {
    margin-top: 8px;
    color: #20242b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.cyberster-guide-note {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid var(--admin-line);
}

.cyberster-guide-note code {
    color: #101113;
    background: #f0f2f5;
}

.feature-filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, .65fr);
    align-items: end;
    gap: 22px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 17, 19, .06);
}

.feature-filter-panel span {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-filter-panel h3 {
    margin: 0 0 8px;
    color: #101113;
    font-size: 28px;
    font-weight: 900;
}

.feature-filter-panel p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.feature-filter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
}

.feature-filter-form .form-label {
    grid-column: 1 / -1;
    margin: 0;
    color: #22262d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.offers-admin-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(182, 17, 34, .16);
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, rgba(182, 17, 34, .16), transparent 34%),
        linear-gradient(135deg, #fff, #f7f8fa);
    box-shadow: 0 18px 44px rgba(16, 17, 19, .07);
}

.offers-admin-hero span,
.offers-form-head span,
.offers-field-card > span,
.offers-list-head span {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.offers-admin-hero h2 {
    margin: 0 0 10px;
    color: #101113;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 900;
    line-height: 1.05;
}

.offers-admin-hero p,
.offers-form-head p,
.offers-format-tip p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 14px;
    line-height: 1.6;
}

.offers-admin-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
}

.offers-admin-stats div {
    padding: 18px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
}

.offers-admin-stats strong,
.offers-admin-stats small {
    display: block;
}

.offers-admin-stats strong {
    color: var(--admin-red);
    font-size: 34px;
    line-height: 1;
}

.offers-admin-stats small {
    margin-top: 8px;
    color: #20242b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.offers-admin-form {
    padding: 0;
    overflow: hidden;
    border-color: rgba(16, 17, 19, .08);
    box-shadow: 0 18px 45px rgba(16, 17, 19, .07);
}

.offers-admin-form > .row {
    padding: 24px;
}

.offers-form-head,
.offers-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid var(--admin-line);
    background: linear-gradient(90deg, #fff, #f8f9fb);
}

.offers-form-head h2,
.offers-list-head h2 {
    margin: 0;
    color: #101113;
    font-size: 24px;
    font-weight: 900;
}

.offers-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.offers-field-card {
    height: 100%;
    padding: 20px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 17, 19, .04);
}

.offers-side-card {
    background:
        linear-gradient(180deg, #fff, #fbfbfc);
}

.offers-plan-editor {
    min-height: 340px;
    color: #101113;
    background: #f8f9fb;
    font-size: 13px;
    line-height: 1.6;
}

.offers-format-tip {
    margin-top: 16px;
    padding: 14px;
    border-left: 3px solid var(--admin-red);
    border-radius: 0 8px 8px 0;
    background: #f7f8fa;
}

.offers-format-tip strong {
    display: block;
    margin-bottom: 6px;
    color: #101113;
    font-size: 13px;
    font-weight: 900;
}

.offers-format-tip code {
    display: block;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #101113;
    background: #fff;
}

.offers-list-panel {
    padding: 0;
    overflow: hidden;
}

.offers-list-panel .table {
    margin: 0;
}

.offers-list-panel .table thead th {
    color: #fff;
    background: #101113;
}

.feature-admin-form {
    border-color: rgba(16, 17, 19, .08);
    box-shadow: 0 18px 45px rgba(16, 17, 19, .07);
}

.feature-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -24px -24px 24px;
    padding: 24px;
    border-bottom: 1px solid var(--admin-line);
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #fff, #f8f9fb);
}

.feature-form-head span {
    color: var(--admin-red);
}

.feature-form-head h2 {
    margin: 0;
    font-size: 24px;
}

.feature-form-actions,
.feature-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-admin-form .form-label {
    color: #22262d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.feature-admin-form .form-control,
.feature-admin-form .form-select {
    min-height: 46px;
    border-color: #dfe2e7;
    border-radius: 8px;
}

.feature-admin-form textarea.form-control {
    min-height: 134px;
}

.feature-field-help {
    display: block;
    margin-top: 8px;
    color: var(--admin-muted);
    font-size: 12px;
}

.feature-check-option {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
    background: #fff;
}

.feature-check-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--admin-red);
}

.feature-check-option label {
    margin: 0;
    color: #20242b;
    font-size: 14px;
    font-weight: 800;
}

.feature-edit-thumb {
    width: min(100%, 260px);
    height: 140px;
    object-fit: cover;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #eef0f3;
}

.feature-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 22px;
}

.feature-section-card {
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 17, 19, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-section-card:hover {
    box-shadow: 0 22px 48px rgba(16, 17, 19, .12);
    transform: translateY(-3px);
}

.feature-section-image {
    position: relative;
    display: grid;
    height: 190px;
    place-items: center;
    overflow: hidden;
    color: var(--admin-muted);
    background: #e9edf2;
}

.feature-section-image img,
.feature-section-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.feature-section-card:hover .feature-section-image img,
.feature-section-card:hover .feature-section-image video {
    transform: scale(1.04);
}

.feature-section-order {
    position: absolute;
    top: 14px;
    left: 14px;
    min-width: 42px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(16, 17, 19, .82);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.feature-section-body {
    padding: 20px;
}

.feature-section-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-section-meta > span {
    color: var(--admin-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.feature-section-body h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.18;
}

.feature-section-body p {
    min-height: 64px;
    margin: 0 0 18px;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.6;
}

.feature-section-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--admin-line);
}

.feature-layout-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #20242b;
    font-size: 12px;
    font-weight: 900;
}

.feature-layout-pill i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--admin-red);
}

@media (max-width: 768px) {
    .admin-main {
        padding: 18px;
    }

    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-admin-hero,
    .feature-form-head,
    .offers-admin-hero,
    .offers-form-head,
    .offers-list-head,
    .cyberster-admin-guide,
    .feature-filter-panel {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .feature-admin-hero,
    .feature-form-head,
    .offers-form-head,
    .offers-list-head {
        display: block;
    }

    .feature-form-actions,
    .offers-form-actions {
        margin-top: 16px;
        justify-content: flex-start;
    }

    .feature-admin-stats,
    .offers-admin-stats,
    .feature-section-grid,
    .cyberster-guide-grid {
        grid-template-columns: 1fr;
    }

    .feature-admin-stats,
    .offers-admin-stats {
        margin-top: 22px;
    }

    .feature-section-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-filter-form {
        grid-template-columns: 1fr;
        width: 100%;
    }
}
