@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap";

/* ── Base ────────────────────────────────────────── */
body {
    background-color: #E4E7ED;
    font-family: 'Montserrat', sans-serif;
    color: #0E1A2C;
}

button, input, select, textarea {
    font-family: inherit;
}

/* ── Navbar ─────────────────────────────────────── */
.rtsim-navbar {
    background-color: #0E1A2C;
}

.rtsim-navbar-inner {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    min-height: 126px;
    padding-top: 0;
    padding-bottom: 0;
}

.rtsim-nav-left,
.rtsim-nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rtsim-nav-right {
    justify-content: flex-end;
}

.rtsim-logo {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
}

.rtsim-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.rtsim-toggler {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    margin-left: auto;
    cursor: pointer;
}

.rtsim-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: 100%;
}

.rtsim-mobile-menu.show {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0 0.75rem;
    width: 100%;
}

@media (min-width: 992px) {
    .rtsim-mobile-menu,
    .rtsim-mobile-menu.show {
        display: none !important;
    }
}

.rtsim-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s;
}

.rtsim-nav-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 991.98px) {
    .rtsim-nav-left,
    .rtsim-nav-right {
        display: none;
    }

    .rtsim-logo {
        position: static;
        transform: none;
        margin-right: auto;
        height: 64px;
        top: auto;
        bottom: auto;
    }

    .rtsim-logo img {
        height: 100%;
    }

    .rtsim-toggler {
        display: block;
    }

    .rtsim-mobile-menu .rtsim-nav-link {
        white-space: normal;
        padding: 0.25rem 0;
    }
}

/* ── Cards (shared base) ─────────────────────────── */
.team-card,
.referral-card,
.archive-table {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(14, 26, 44, .06);
    padding: 34px;
}

/* ── Event cards ─────────────────────────────────── */
.event-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(14, 26, 44, .06);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.event-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #E4E7ED;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.event-card-icon i {
    width: 32px;
    height: 32px;
    color: #0E1A2C;
}

.event-card-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-card-desc {
    font-size: 14px;
    color: #708EBA;
    line-height: 1.6;
    margin-bottom: 26px;
    flex: 1;
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
    background-color: #FF8000;
    border-color: #FF8000;
    border-radius: 15px;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #CC6600;
    border-color: #CC6600;
    color: #ffffff;
}

.btn-outline-violet {
    height: 50px;
    padding: 0 22px;
    border: 1.5px solid #5E5EDA;
    border-radius: 15px;
    background: #fff;
    color: #5E5EDA;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.btn-outline-violet:hover {
    background: #5E5EDA;
    color: #fff;
}

.btn-neutral {
    height: 46px;
    padding: 0 22px;
    border: 1.5px solid #E4E7ED;
    border-radius: 15px;
    background: #fff;
    color: #0E1A2C;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}

.btn-neutral:hover {
    border-color: #708EBA;
}

.btn-danger {
    height: 46px;
    padding: 0 22px;
    border: 1.5px solid #d94a4a;
    border-radius: 15px;
    background: #fff;
    color: #d94a4a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.btn-danger:hover {
    background: #d94a4a;
    color: #fff;
}

.btn-copy {
    height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 15px;
    background: #5E5EDA;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: #4a4abf;
}

.btn-logout {
    height: 40px;
    padding: 0 20px;
    border: 1.5px solid #E4E7ED;
    border-radius: 12px;
    background: #fff;
    color: #708EBA;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.15s, color 0.15s;
}

.btn-logout:hover {
    border-color: #708EBA;
    color: #0E1A2C;
}

/* ── Forms ───────────────────────────────────────── */
.form-label {
    color: #708EBA;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    height: 50px;
    background-color: #ffffff;
    border-radius: 15px;
    border: 1.5px solid #E4E7ED;
    padding: 0 18px;
    font-size: 15px;
    color: #0E1A2C;
}

.form-control:focus {
    border-color: #FF8000;
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.12);
}

.form-control[readonly] {
    background-color: #fff;
    color: #0E1A2C;
}

input[type="password"].form-control {
    font-size: 20px;
    letter-spacing: 9px;
    padding-top: 3px;
}

/* ── Checkboxes ──────────────────────────────────── */
.form-check-input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    background-color: #ffffff;
    border-radius: 5px;
    border: 1.5px solid #E4E7ED;
    margin-top: 2px;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #FF8000;
    border-color: #FF8000;
}

.form-check-label {
    font-weight: 400;
    font-size: 14px;
    color: #0E1A2C;
    line-height: 1.5;
}

.form-check-label a {
    color: #5E5EDA;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* ── Banners ─────────────────────────────────────── */
.rtsim-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
}

.rtsim-banner i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.rtsim-banner--info {
    background: #E4E7ED;
    color: #0E1A2C;
}

.rtsim-banner--success {
    background: #e8f5ee;
    color: #1f8a5b;
}

.rtsim-banner--error {
    background: #fdeaea;
    color: #d94a4a;
}

/* ── Team card ───────────────────────────────────── */
.team-card {
    margin-bottom: 20px;
}

.team-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.team-card-title {
    font-size: 20px;
    font-weight: 600;
}

.badge-count {
    background: #9CC4EF;
    color: #0E1A2C;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.invite-label {
    font-size: 12px;
    font-weight: 600;
    color: #708EBA;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.invite-group {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.invite-group .form-control {
    flex: 1;
}

/* ── Data table ──────────────────────────────────── */
.rtsim-table {
    width: 100%;
    border-collapse: collapse;
}

.rtsim-table th {
    text-align: left;
    color: #708EBA;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0 0 12px;
}

.rtsim-table td {
    padding: 14px 0;
    font-size: 14px;
    border-top: 1px solid #E4E7ED;
}

.rtsim-table td.muted {
    color: #708EBA;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

/* ── Referral block ──────────────────────────────── */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #E4E7ED;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 22px;
}

.stats-list-row {
    background: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-list-label {
    font-size: 14px;
    color: #708EBA;
}

.stats-list-value {
    font-size: 18px;
    font-weight: 700;
}

.stats-list-value--accent {
    color: #FF8000;
}

.badge-credit {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f5ee;
    color: #1f8a5b;
    padding: 14px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.badge-credit i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Login card ──────────────────────────────────── */
.login-card {
    background-color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(14, 26, 44, .06);
    max-width: 760px;
    margin: 40px auto;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.login-card-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #0E1A2C;
}

.login-form-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-footer {
    margin-top: 24px;
    font-size: 14px;
    color: #708EBA;
}

.login-hint {
    font-size: 14px;
    color: #708EBA;
    margin-bottom: 4px;
}

.login-hint-link {
    color: #5E5EDA;
    font-weight: 600;
    text-decoration: none;
}

.login-hint-link:hover {
    text-decoration: underline;
}

/* ── Password hint ───────────────────────────────── */
.password-hint {
    list-style: disc;
    padding-left: 20px;
    margin: 6px 0 0;
    font-weight: 400;
    font-size: 12px;
    color: #708EBA;
}

/* ── Cabinet page ────────────────────────────────── */
/* ── Section titles ──────────────────────────────── */
.evt-title {
    font-size: 24px;
    font-weight: 700;
    color: #0E1A2C;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #9CC4EF;
}

.zone-title {
    font-size: 15px;
    font-weight: 700;
    color: #5E5EDA;
    margin: 0 0 12px;
}

.page-sub {
    font-size: 15px;
    color: #708EBA;
    line-height: 1.6;
    margin: 0 0 36px;
}

/* ── Cabinet grid ────────────────────────────────── */
.cabinet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 44px;
    align-items: start;
}

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

/* ── Cabinet stack (vertical) ────────────────────── */
.cabinet-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 44px;
}

/* ── Create team inline form ─────────────────────── */
.create-team-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin-top: 16px;
}

.create-team-form .form-control {
    flex: 1;
}

/* ── Page wrapper ────────────────────────────────── */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
}

.page-content--cabinet {
    max-width: 880px;
}

.page-content-wide {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Status tag ──────────────────────────────────── */
.status-registered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f8a5b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.status-registered i {
    width: 18px;
    height: 18px;
}
