* {
    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;
    }
}

/* --------------------------------------------------
   Reseller panel button aliases / table helpers
   -------------------------------------------------- */

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    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,
        box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 15px 35px rgba(255, 120, 0, 0.35);
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button i {
    margin-right: 0;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    background: #1a2639;
    color: #ffffff;
    border: 1px solid #34435a;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.secondary-button:hover {
    background: #223149;
    border-color: #465a76;
}

.secondary-button i {
    margin-right: 0;
}

.providers-card {
    max-width: 900px;
}

.providers-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
}

.providers-url {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.providers-actions {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .providers-card {
        max-width: 100%;
    }

    .providers-table {
        min-width: 680px;
    }
}

/* --------------------------------------------------
   Reseller Login Page
   -------------------------------------------------- */

.login-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at top, rgba(255, 122, 0, 0.08), transparent 34%),
        #0b1220;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 34px;
    background: #111a2a;
    border: 1px solid #263247;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #263247;
}

.login-brand-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff8a00, #ff5700);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 12px 28px rgba(255, 99, 0, 0.26);
}

.login-brand-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.login-brand-subtitle {
    margin-top: 4px;
    color: #91a0b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-heading {
    margin-bottom: 24px;
}

.login-heading h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 30px;
}

.login-heading p {
    margin: 0;
    color: #91a0b8;
    line-height: 1.5;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border-left: 4px solid #ff6b6b;
    border-radius: 9px;
    background: rgba(255, 107, 107, 0.08);
    color: #ff8a8a;
    font-weight: 700;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #66748a;
    pointer-events: none;
}

.login-input {
    padding-left: 42px;
}

.login-password-input {
    padding-right: 72px;
}

.login-password-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 8px;
    background: transparent;
    color: #ff9c3a;
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.login-submit {
    width: 100%;
    margin-top: 4px;
}

.login-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: #7f8ca2;
    font-size: 12px;
}

.version {
    margin-top: 14px;
    text-align: center;
    color: #66748a;
    font-size: 12px;
}

@media (max-width: 520px) {
    .login-card {
        padding: 26px 20px;
    }

    .login-heading h1 {
        font-size: 26px;
    }
}

/* --------------------------------------------------
   Wide desktop layout
   -------------------------------------------------- */

@media (min-width: 851px) {

    .content {
        width: calc(100% - 290px);
        margin-left: 290px;
        padding: 32px 36px;
    }

    .content .card {
        width: 100%;
        max-width: none;
    }

    .providers-card {
        width: 100%;
        max-width: none;
    }
}
