/* NEXT-RC Online Time Rewards (CSP-safe) */
.or-shell {
    max-width: 1120px;
    margin: 26px auto 64px;
    padding: 0 18px;
}

.or-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 25, 38, 0.94), rgba(13, 17, 26, 0.96));
    border: 1px solid rgba(255, 145, 0, 0.3);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
    margin-bottom: 20px;
}

.or-hero-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.or-hero-sub {
    margin: 0;
    color: #9fb0c8;
    font-size: 14px;
}

.or-status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 240px;
}

.or-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.or-status-pill.is-online {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.55);
    color: #4ade80;
}

.or-status-pill.is-offline {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.or-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.or-timer-big {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffb347;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.or-reset-note {
    font-size: 12.5px;
    color: #8ea0ba;
    font-variant-numeric: tabular-nums;
}

.or-card {
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(15, 20, 31, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 18px;
}

.or-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.or-char-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.or-char-wrap label {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 600;
}

.or-select {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 145, 0, 0.4);
    background: #0d121d;
    color: #f8fafc;
    font-family: inherit;
    font-size: 14px;
    min-width: 190px;
}

.or-progress-wrap {
    margin-top: 16px;
}

.or-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9fb0c8;
    margin-bottom: 6px;
}

.or-progress-track {
    width: 100%;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.or-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7a18, #ffb347, #4ade80);
    transition: width 0.35s ease;
}

.or-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.or-alert.ok {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #86efac;
}

.or-alert.err {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.or-is-hidden {
    display: none !important;
}

.or-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.or-item-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-radius: 15px;
    background: rgba(18, 23, 36, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.or-item-card.state-ready {
    border-color: rgba(74, 222, 128, 0.6);
    box-shadow: 0 0 22px rgba(74, 222, 128, 0.12);
}

.or-item-card.state-claimed {
    opacity: 0.72;
    border-color: rgba(148, 163, 184, 0.25);
}

.or-item-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.or-icon-box {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(9, 13, 21, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.or-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.or-qty {
    position: absolute;
    right: 4px;
    bottom: 2px;
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
}

.or-item-meta {
    min-width: 0;
    flex: 1;
}

.or-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.or-req-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 145, 0, 0.16);
    color: #ffb347;
    border: 1px solid rgba(255, 145, 0, 0.35);
}

.or-rarity {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.or-rarity.rarity-ssr { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
.or-rarity.rarity-sr  { background: rgba(192, 132, 252, 0.2); color: #d8b4fe; }
.or-rarity.rarity-r   { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }

.or-item-name {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.or-item-rem {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 3px;
}

.or-btn {
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.12s ease;
}

.or-btn-claim {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #052e16;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.28);
}

.or-btn-claim:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.or-btn-locked,
.or-btn-claimed {
    background: rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    cursor: not-allowed;
}

.or-btn-claimed {
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.or-login-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.or-input {
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #0d121d;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    min-width: 200px;
}

.or-btn-login {
    width: auto;
    padding: 9px 22px;
    background: linear-gradient(135deg, #ff7a18, #ff512f);
    color: #fff;
}

@media (max-width: 720px) {
    .or-status-box { align-items: flex-start; }
    .or-timer-big { font-size: 30px; }
}
