* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #0b1220;
    color: #e8edf5;
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 290px;
    min-height: 100vh;
    padding: 26px 18px;
    background: #111a2a;
    border-right: 1px solid #263247;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 26px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #ff8a00, #ff4d00);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(255, 100, 0, 0.3);
}

.brand-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.brand-subtitle {
    margin-top: 5px;
    color: #91a0b8;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 10px;
    color: #aeb9ca;
    font-size: 15px;
    font-weight: 600;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-link:hover {
    background: #1a2639;
    color: #ffffff;
    transform: translateX(2px);
}

.nav-link.active {
    background: rgba(255, 113, 0, 0.14);
    color: #ff9c3a;
    border: 1px solid rgba(255, 113, 0, 0.24);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    font-size: 19px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px 10px 0;
    border-top: 1px solid #263247;
}

.admin-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
    color: #ffffff;
}

.admin-label {
    color: #7f8ca2;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.logout-link {
    display: inline-block;
    color: #ff8d8d;
    font-size: 14px;
    font-weight: 700;
}

/* Main content */

.content {
    width: calc(100% - 260px);
    min-height: 100vh;
    margin-left: 290px;
    padding: 48px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1,
.content > h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.15;
}

.page-subtitle {
    margin: 0;
    color: #91a0b8;
    font-size: 15px;
}

/* Cards */

.card {
    max-width: 720px;
    padding: 30px;
    background: #111a2a;
    border: 1px solid #263247;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.card-title {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 21px;
}

.card-description {
    margin: 0 0 26px;
    color: #91a0b8;
    line-height: 1.55;
}

/* Forms */

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 9px;
    color: #dfe7f2;
    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    background: #0b1220;
    color: #ffffff;
    border: 1px solid #34435a;
    border-radius: 10px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: #66748a;
}

.form-control:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

select.form-control {
    cursor: pointer;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 7px 10px;
    background: transparent;
    color: #ff9c3a;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.btn-primary {
    min-height: 48px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #ff8a00, #ff5700);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(255, 99, 0, 0.24);
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

/* Responsive */

@media (max-width: 850px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .app-shell {
        display: block;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-footer {
        margin-top: 20px;
    }

    .content {
        width: 100%;
        margin-left: 0;
        padding: 28px 20px;
    }
}

@media (max-width: 520px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 24px 16px;
    }

    .card {
        padding: 22px 18px;
    }

    .page-header h1,
    .content > h1 {
        font-size: 28px;
    }
}
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 15px 35px;
    border-bottom: 1px solid #243146;
    margin-bottom: 20px;
}

.brand-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
}

.brand-subtitle {
    margin-top: 10px;
    color: #8fa2bd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.nav-icon i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.btn-primary i {
    margin-right: 8px;
}
.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 15px 35px rgba(255,120,0,.45);
}

.btn-primary:active{
    transform:translateY(0);
}
.required {
    color: #ff7a00;
    font-weight: bold;
}
.activation-success-card {
    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.14);
    color: #30d158;
    font-size: 28px;
}

.activation-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0;
    padding: 20px;
    background: #0b1220;
    border: 1px solid #34435a;
    border-radius: 12px;
}

.activation-code {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
}

.copy-button {
    min-height: 44px;
    padding: 10px 16px;
    background: rgba(255, 122, 0, 0.12);
    color: #ff8a00;
    border: 1px solid rgba(255, 122, 0, 0.35);
    border-radius: 9px;
    cursor: pointer;
    font-weight: 800;
}

.copy-button i {
    margin-right: 6px;
}

.activation-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
    text-align: left;
}

.activation-summary div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    background: #0b1220;
    border: 1px solid #263247;
    border-radius: 10px;
}

.activation-summary span {
    color: #7f8ca2;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activation-summary strong {
    color: #ffffff;
}

.success-actions {
    justify-content: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 18px;
    background: #1a2639;
    color: #ffffff;
    border: 1px solid #34435a;
    border-radius: 10px;
    font-weight: 800;
}

.btn-secondary i {
    margin-right: 8px;
}

@media (max-width: 650px) {
    .activation-code-box {
        flex-direction: column;
    }

    .activation-code {
        font-size: 21px;
    }

    .activation-summary {
        grid-template-columns: 1fr;
    }
}