/* ==========================================================================
   RECKLESS STORE — COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */

.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    color: var(--rt-icon-default);
    transition: color var(--rt-duration-fast) var(--rt-ease),
        transform var(--rt-duration-normal) var(--rt-ease-spring);
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

.icon-xl {
    width: 44px;
    height: 44px;
    stroke-width: 1.25;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rt-space-2);
    padding: 0.72rem 1.5rem;
    font-size: var(--rt-fs-sm);
    font-weight: var(--rt-fw-semibold);
    border-radius: var(--rt-radius);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--rt-duration-fast) var(--rt-ease),
        background-color var(--rt-duration-normal) var(--rt-ease),
        border-color var(--rt-duration-normal) var(--rt-ease),
        color var(--rt-duration-normal) var(--rt-ease),
        box-shadow var(--rt-duration-normal) var(--rt-ease);
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled,
.btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.btn .icon {
    transition: transform var(--rt-duration-normal) var(--rt-ease-spring);
}

.btn:hover .icon {
    transform: translateX(-3px);
}

/* Primary */
.btn-primary {
    background: var(--rt-primary);
    color: #fff;
    box-shadow: var(--rt-shadow-primary);
}

.btn-primary:hover {
    background: #2A36E8;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(46, 125, 91, 0.5);
}

/* Secondary / Ghost */
.btn-ghost {
    background: transparent;
    color: var(--rt-text);
    border-color: var(--rt-border-strong);
}

.btn-ghost:hover {
    border-color: var(--rt-primary);
    color: var(--rt-primary);
    background: var(--rt-primary-soft);
    transform: translateY(-2px);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--rt-primary);
    border-color: var(--rt-border-primary);
}

.btn-outline:hover {
    background: var(--rt-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--rt-shadow-primary);
}

/* Kick green */
.btn-kick {
    background: transparent;
    color: #53FC18;
    border-color: rgba(83, 252, 24, .45);
}

.btn-kick:hover {
    background: #53FC18;
    border-color: #53FC18;
    color: #06130a;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(83, 252, 24, .35);
}

/* Danger */
.btn-danger {
    background: var(--rt-danger);
    color: #fff;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* Subtle */
.btn-subtle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--rt-text-soft);
}

.btn-subtle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--rt-text);
}

/* Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--rt-fs-xs);
}

.btn-lg {
    padding: 0.95rem 2.2rem;
    font-size: var(--rt-fs-md);
    border-radius: var(--rt-radius-md);
}

.btn-icon {
    padding: 0.6rem;
    border-radius: var(--rt-radius);
    aspect-ratio: 1;
}

.btn-block {
    width: 100%;
}

/* Loading spinner inside button */
.btn.is-loading {
    pointer-events: none;
    color: transparent !important;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rt-spin 0.7s linear infinite;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
    background: var(--rt-bg-soft);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-md);
    overflow: hidden;
    position: relative;
    transition:
        transform var(--rt-duration-normal) var(--rt-ease),
        border-color var(--rt-duration-normal) var(--rt-ease),
        box-shadow var(--rt-duration-normal) var(--rt-ease);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--rt-border-primary);
    box-shadow: var(--rt-shadow-lg), 0 0 0 1px rgba(46, 125, 91, 0.2);
}

.card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--rt-bg-raised);
}

.card-media img,
.card-media .media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rt-duration-slow) var(--rt-ease);
}

/*
 * A sector logo is square while .card-media is 16/10, so object-fit:cover would
 * crop it. Centre it instead and scale it up on hover like a normal card image.
 */
.card-media .sector-media-logo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--rt-space-6, 16px);
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(46, 125, 91, .18), transparent 70%),
        var(--rt-bg-raised);
    overflow: hidden;
}
.card-media .sector-media-logo img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--rt-radius-md, 10px);
}

.card:hover .card-media img,
.card:hover .card-media .media-placeholder {
    transform: scale(1.07);
}

.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(46, 125, 91, 0.28), transparent 60%),
        linear-gradient(145deg, #0E0E14, #08080C);
    color: var(--rt-text-muted);
}

.card-body {
    padding: var(--rt-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--rt-space-3);
}

.card-title {
    font-size: var(--rt-fs-lg);
    font-weight: var(--rt-fw-bold);
    line-height: var(--rt-lh-snug);
}

.card-text {
    color: var(--rt-text-muted);
    font-size: var(--rt-fs-sm);
    line-height: var(--rt-lh-normal);
}

.card-footer {
    padding: var(--rt-space-4) var(--rt-space-6);
    border-top: 1px solid var(--rt-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rt-space-3);
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--rt-space-1);
    padding: 0.28rem 0.7rem;
    font-size: var(--rt-fs-xs);
    font-weight: var(--rt-fw-semibold);
    border-radius: var(--rt-radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--rt-text-soft);
    border: 1px solid var(--rt-border);
    white-space: nowrap;
}

.badge-primary {
    background: var(--rt-primary-soft);
    color: #7C86FF;
    border-color: rgba(46, 125, 91, 0.4);
}

.badge-success {
    background: var(--rt-success-soft);
    color: var(--rt-success);
    border-color: rgba(34, 197, 94, 0.35);
}

.badge-warning {
    background: var(--rt-warning-soft);
    color: var(--rt-warning);
    border-color: rgba(245, 158, 11, 0.35);
}

.badge-danger {
    background: var(--rt-danger-soft);
    color: var(--rt-danger);
    border-color: rgba(239, 68, 68, 0.35);
}

.badge-discount {
    background: var(--rt-danger);
    color: #fff;
    border-color: transparent;
    font-weight: var(--rt-fw-bold);
    padding: 0.32rem 0.8rem;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

/* --------------------------------------------------------------------------
   Price
   -------------------------------------------------------------------------- */

.price-box {
    display: flex;
    align-items: baseline;
    gap: var(--rt-space-3);
    flex-wrap: wrap;
}

.price-final {
    font-size: var(--rt-fs-xl);
    font-weight: var(--rt-fw-black);
    color: var(--rt-primary);
}

.price-original {
    font-size: var(--rt-fs-sm);
    color: var(--rt-text-muted);
    text-decoration: line-through;
}

.price-currency {
    font-size: var(--rt-fs-sm);
    font-weight: var(--rt-fw-semibold);
    color: var(--rt-text-soft);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--rt-space-2);
}

.form-label {
    font-size: var(--rt-fs-sm);
    font-weight: var(--rt-fw-semibold);
    color: var(--rt-text-soft);
}

.form-label .req {
    color: var(--rt-danger);
    margin-inline-start: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--rt-bg-raised);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius);
    color: var(--rt-text);
    font-size: var(--rt-fs-sm);
    transition:
        border-color var(--rt-duration-normal) var(--rt-ease),
        box-shadow var(--rt-duration-normal) var(--rt-ease),
        background var(--rt-duration-normal) var(--rt-ease);
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--rt-text-muted);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--rt-border-strong);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--rt-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.22);
    background: #0C0C12;
}

/* الخانة النشطة اللي هيتحط فيها المتغير/الإيموجي */
.te-target-on {
    outline: 2px solid #FACC15 !important;
    outline-offset: 1px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: var(--rt-lh-normal);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
    direction: rtl;
}

.form-input.is-error,
.form-textarea.is-error {
    border-color: var(--rt-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.form-error {
    font-size: var(--rt-fs-xs);
    color: var(--rt-danger);
    display: flex;
    align-items: center;
    gap: var(--rt-space-1);
}

.form-hint {
    font-size: var(--rt-fs-xs);
    color: var(--rt-text-muted);
}

/* Checkbox / Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--rt-space-3);
    cursor: pointer;
    font-size: var(--rt-fs-sm);
    color: var(--rt-text-soft);
}

.form-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--rt-primary);
    cursor: pointer;
}

/* Search */
.search-box {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.search-box .icon {
    position: absolute;
    inset-inline-start: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rt-text-muted);
    pointer-events: none;
}

.search-box .form-input {
    padding-inline-start: 2.9rem;
    border-radius: var(--rt-radius-full);
    background: var(--rt-bg-soft);
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.tabs {
    display: flex;
    gap: var(--rt-space-2);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--rt-border);
    padding-bottom: 2px;
    margin-bottom: var(--rt-space-8);
}

.tab {
    padding: var(--rt-space-3) var(--rt-space-5);
    font-size: var(--rt-fs-sm);
    font-weight: var(--rt-fw-semibold);
    color: var(--rt-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -3px;
    cursor: pointer;
    transition:
        color var(--rt-duration-normal) var(--rt-ease),
        border-color var(--rt-duration-normal) var(--rt-ease);
    display: inline-flex;
    align-items: center;
    gap: var(--rt-space-2);
}

.tab:hover {
    color: var(--rt-text);
}

.tab.is-active {
    color: var(--rt-primary);
    border-bottom-color: var(--rt-primary);
}

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-md);
    background: var(--rt-bg-soft);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--rt-fs-sm);
}

.table th,
.table td {
    padding: var(--rt-space-4) var(--rt-space-5);
    text-align: start;
    border-bottom: 1px solid var(--rt-border);
}

.table th {
    background: var(--rt-bg-raised);
    color: var(--rt-text-muted);
    font-weight: var(--rt-fw-semibold);
    font-size: var(--rt-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.table tbody tr {
    transition: background var(--rt-duration-fast) var(--rt-ease);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--rt-bg-overlay);
    backdrop-filter: blur(8px);
    z-index: var(--rt-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--rt-space-6);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--rt-duration-normal) var(--rt-ease),
        visibility var(--rt-duration-normal) var(--rt-ease);
}

.modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--rt-bg-soft);
    border: 1px solid var(--rt-border-strong);
    border-radius: var(--rt-radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--rt-shadow-lg);
    transform: scale(0.94) translateY(18px);
    opacity: 0;
    transition:
        transform var(--rt-duration-normal) var(--rt-ease-spring),
        opacity var(--rt-duration-normal) var(--rt-ease);
}

/* أحجام أوسع للمحررات الكبيرة (بناء التقديم وغيره) */
.modal-lg { max-width: 880px; }
.modal-xl { max-width: 1100px; }

.modal-backdrop.is-open .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    padding: var(--rt-space-6);
    border-bottom: 1px solid var(--rt-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rt-space-4);
}

.modal-title {
    font-size: var(--rt-fs-lg);
    font-weight: var(--rt-fw-bold);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--rt-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rt-text-muted);
    background: rgba(255, 255, 255, 0.05);
    transition:
        background var(--rt-duration-fast) var(--rt-ease),
        color var(--rt-duration-fast) var(--rt-ease),
        transform var(--rt-duration-fast) var(--rt-ease);
}

.modal-close:hover {
    background: var(--rt-danger-soft);
    color: var(--rt-danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--rt-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--rt-space-5);
}

.modal-footer {
    padding: var(--rt-space-5) var(--rt-space-6);
    border-top: 1px solid var(--rt-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--rt-space-3);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-container {
    position: fixed;
    top: calc(var(--rt-nav-height) + 1rem);
    inset-inline-end: 1rem;
    z-index: var(--rt-z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--rt-space-3);
    pointer-events: none;
    max-width: min(400px, calc(100% - 2rem));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--rt-space-3);
    padding: var(--rt-space-4) var(--rt-space-5);
    background: var(--rt-bg-raised);
    border: 1px solid var(--rt-border-strong);
    border-radius: var(--rt-radius);
    box-shadow: var(--rt-shadow-lg);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition:
        transform var(--rt-duration-slow) var(--rt-ease-spring),
        opacity var(--rt-duration-normal) var(--rt-ease);
    position: relative;
    overflow: hidden;
}

.toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rt-info);
}

.toast-success::before {
    background: var(--rt-success);
}

.toast-error::before {
    background: var(--rt-danger);
}

.toast-warning::before {
    background: var(--rt-warning);
}

.toast-icon {
    margin-top: 2px;
    color: var(--rt-info);
}

.toast-success .toast-icon {
    color: var(--rt-success);
}

.toast-error .toast-icon {
    color: var(--rt-danger);
}

.toast-warning .toast-icon {
    color: var(--rt-warning);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: var(--rt-fw-semibold);
    font-size: var(--rt-fs-sm);
    margin-bottom: 2px;
}

.toast-message {
    font-size: var(--rt-fs-xs);
    color: var(--rt-text-muted);
    line-height: var(--rt-lh-snug);
}

.toast-close {
    color: var(--rt-text-muted);
    padding: 2px;
    transition: color var(--rt-duration-fast) var(--rt-ease);
}

.toast-close:hover {
    color: var(--rt-text);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
    animation: toast-progress linear forwards;
}

/* --------------------------------------------------------------------------
   Empty / Error / Loading States
   -------------------------------------------------------------------------- */

.state-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--rt-space-4);
    padding: var(--rt-space-16) var(--rt-space-6);
    text-align: center;
    color: var(--rt-text-muted);
}

.state-block .icon-xl {
    color: var(--rt-text-muted);
    opacity: 0.6;
}

.state-title {
    font-size: var(--rt-fs-lg);
    font-weight: var(--rt-fw-semibold);
    color: var(--rt-text-soft);
}

.state-desc {
    font-size: var(--rt-fs-sm);
    max-width: 440px;
    line-height: var(--rt-lh-normal);
}

/* Skeleton loading */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--rt-radius);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.07),
        transparent
    );
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.4s infinite;
}

.skeleton-card {
    height: 340px;
    border-radius: var(--rt-radius-md);
}

.skeleton-line {
    height: 14px;
    margin-bottom: var(--rt-space-3);
}

.skeleton-line.w-60 {
    width: 60%;
}

.skeleton-line.w-80 {
    width: 80%;
}

.skeleton-line.w-40 {
    width: 40%;
}

/* Spinner */
.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--rt-primary);
    border-radius: 50%;
    animation: rt-spin 0.8s linear infinite;
}

.loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--rt-space-4);
    padding: var(--rt-space-16);
    color: var(--rt-text-muted);
    font-size: var(--rt-fs-sm);
}

/* --------------------------------------------------------------------------
   Pagination / Load more
   -------------------------------------------------------------------------- */

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rt-success);
    position: relative;
    flex-shrink: 0;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--rt-success);
    opacity: 0;
    animation: pulse-ring 2s var(--rt-ease) infinite;
}

.status-dot.is-offline {
    background: var(--rt-text-muted);
}

.status-dot.is-offline::after {
    border-color: var(--rt-text-muted);
    animation: none;
}

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */

.divider {
    height: 1px;
    background: var(--rt-border);
    border: none;
    margin-block: var(--rt-space-8);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: var(--rt-space-4);
    color: var(--rt-text-muted);
    font-size: var(--rt-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rt-border);
}

/* -- Global announcement banner (Section 64) -- */
.rt-announcement {
    display: flex;
    align-items: center;
    gap: var(--rt-space-3);
    padding: var(--rt-space-3) var(--rt-space-5);
    border-bottom: 1px solid;
    font-size: var(--rt-fs-sm);
    line-height: 1.6;
    flex-wrap: wrap;
}
.rt-announcement strong { white-space: nowrap; }
.rt-announcement .rt-announcement-close,
button.rt-announcement-close {
    margin-inline-start: auto;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--rt-radius-sm, 6px);
    display: inline-flex;
    opacity: .8;
}
button.rt-announcement-close:hover { opacity: 1; background: rgba(255,255,255,.08); }

/* -- Coins identity (yellow, subtle - never a full yellow theme) -- */
.coins-icon { color: #FACC15; }
.coins-icon .icon { color: #FACC15; }
.coins-balance { color: #FACC15; }
.price-coins { color: #FACC15; font-weight: var(--rt-fw-bold); display: inline-flex; align-items: center; gap: 4px; }
.price-coins .icon { color: #FACC15; }

/* -- Dropzone (admin image uploads: products, sectors) -- */
.dropzone {
    border: 2px dashed var(--rt-border);
    border-radius: var(--rt-radius-md, 10px);
    padding: var(--rt-space-4);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
    aspect-ratio: 16 / 7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dropzone:hover { border-color: var(--rt-primary); }
.dropzone.is-dragover { border-color: var(--rt-primary); background: rgba(46,125,91,.08); }
.dropzone-empty { text-align: center; color: var(--rt-text-muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dropzone-empty .icon { width: 32px; height: 32px; opacity: .7; }
#modalRoot .dropzone img, .modal .dropzone img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; }

/* -- Pulsing status dot (online only, subtle) -- */
.status-dot:not(.is-offline):not(.is-maintenance) {
    animation: rt-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes rt-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .status-dot:not(.is-offline):not(.is-maintenance) { animation: none; }
}
