/* ===========================================
   Real Estate Page Styles
   Los Santos After Dark - Gamified Real Estate
   =========================================== */

:root {
    --re-bg: #060608;
    --re-surface: #0c0c10;
    --re-surface-raised: #14141c;
    --re-card: #111118;
    --re-card-hover: #181820;
    --re-border: rgba(255, 255, 255, 0.06);
    --re-border-accent: rgba(212, 175, 55, 0.2);
    --re-gold: #d4af37;
    --re-gold-soft: rgba(212, 175, 55, 0.08);
    --re-purple: #8b5cf6;
    --re-purple-soft: rgba(139, 92, 246, 0.08);
    --re-green: #22c55e;
    --re-red: #ef4444;
    --re-amber: #f59e0b;
    --re-blue: #60a5fa;
    --re-text: #e4e4e7;
    --re-text-muted: #a1a1aa;
    --re-text-faint: #63637a;
    --re-day-color: #f59e0b;
    --re-night-color: #8b5cf6;
    --re-radius-sm: 6px;
    --re-radius-md: 10px;
    --re-radius-lg: 14px;
    --re-font-display: 'Cinzel', serif;
    --re-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Hero Section ===== */
.re-hero {
    position: relative;
    background: linear-gradient(180deg, #060608 0%, #0a0810 50%, #0c0c10 100%);
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
}

.re-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.re-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--re-font-body);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--re-gold);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 30px;
    padding: 8px 20px;
    margin-bottom: 24px;
}

.re-hero-title {
    font-family: var(--re-font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.15;
    margin-bottom: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.re-hero-gold {
    color: var(--re-gold);
    font-size: 4.2rem;
    background: linear-gradient(180deg, #f0d060 0%, #d4af37 40%, #a67c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.re-hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px auto;
    max-width: 200px;
}

.re-orn-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.re-orn-diamond {
    color: var(--re-gold);
    font-size: 0.6rem;
}

.re-hero-subtitle {
    font-family: var(--re-font-body);
    color: var(--re-text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Login Section ===== */
.re-login {
    background: var(--re-bg);
    padding: 60px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.re-login-card {
    background: linear-gradient(145deg, var(--re-surface), var(--re-surface-raised));
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-lg);
    padding: 48px 36px;
    text-align: center;
}

.re-login-icon {
    color: var(--re-purple);
    margin-bottom: 20px;
    opacity: 0.7;
}

.re-login-card h2 {
    font-family: var(--re-font-display);
    color: var(--re-text);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.re-login-card p {
    color: var(--re-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.re-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #5865F2;
    color: #fff;
    border-radius: 8px;
    font-family: var(--re-font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.re-btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
    color: #fff;
}

.re-login-footnote {
    color: var(--re-text-faint) !important;
    font-size: 0.78rem !important;
    margin-top: 16px !important;
}

/* ===== User Bar ===== */
.re-user-bar-section {
    background: var(--re-surface);
    border-bottom: 1px solid var(--re-border);
    padding: 0;
}

.re-user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.re-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.re-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    object-fit: cover;
}

.re-user-name {
    display: block;
    font-family: var(--re-font-display);
    color: var(--re-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.re-user-splat {
    font-family: var(--re-font-body);
    font-size: 0.8rem;
    color: var(--re-text-muted);
}

.re-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.re-eligibility-badge {
    font-family: var(--re-font-body);
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--re-purple);
}

.re-eligibility-badge.restricted {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
    color: var(--re-red);
}

.re-eligibility-badge.night-only {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: #c084fc;
}

.re-btn-outline {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--re-text-muted);
    border-radius: 6px;
    font-family: var(--re-font-body);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.re-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--re-text);
}

/* Restrictions Banner */
.re-restrictions-banner {
    margin: 0 0 16px;
    padding: 14px 20px;
    border-radius: var(--re-radius-md);
    font-family: var(--re-font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.re-restrictions-banner.night-only {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}

.re-restrictions-banner.restricted {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.re-restrictions-banner.eligible {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.re-restrictions-banner svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Filters ===== */
.re-filters-section {
    background: var(--re-bg);
    padding: 24px 0 0;
}

.re-filters-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--re-surface);
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-md);
    padding: 16px 20px;
}

.re-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.re-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--re-text-faint);
    pointer-events: none;
}

.re-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--re-border);
    border-radius: 8px;
    color: var(--re-text);
    font-family: var(--re-font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.re-search-input:focus {
    outline: none;
    border-color: var(--re-gold);
}

.re-filter-btns {
    display: flex;
    gap: 6px;
}

.re-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--re-border);
    border-radius: 8px;
    color: var(--re-text-muted);
    font-family: var(--re-font-body);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.re-filter-btn:hover {
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--re-text);
}

.re-filter-btn.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--re-gold);
}

.re-filter-sort {
    flex-shrink: 0;
}

.re-sort-select {
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--re-border);
    border-radius: 8px;
    color: var(--re-text);
    font-family: var(--re-font-body);
    font-size: 0.82rem;
    cursor: pointer;
}

.re-sort-select:focus {
    outline: none;
    border-color: var(--re-gold);
}

.re-sort-select option {
    background: #1a1a1a;
    color: #fff;
}

.re-results-count {
    font-family: var(--re-font-body);
    font-size: 0.85rem;
    color: var(--re-text-muted);
    padding: 14px 0;
}

.re-results-count strong {
    color: var(--re-text);
}

/* ===== Listings Grid ===== */
.re-listings-section {
    background: var(--re-bg);
    padding: 0 0 80px;
    min-height: 400px;
}

.re-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .re-listings-grid {
        grid-template-columns: 1fr;
    }
}

/* Property Card */
.re-property-card {
    background: linear-gradient(145deg, var(--re-card), var(--re-card));
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.re-property-card:hover {
    transform: translateY(-4px);
    border-color: var(--re-border-accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.re-property-card.night-card {
    border-left: 3px solid var(--re-night-color);
}

.re-property-card.day-card {
    border-left: 3px solid var(--re-day-color);
}

.re-property-card.ineligible {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.re-property-card.ineligible:hover {
    transform: none;
    border-color: var(--re-border);
    box-shadow: none;
}

.re-property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--re-surface-raised), var(--re-surface));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--re-text-faint);
}

.re-property-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(212, 175, 55, 0.05));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--re-text-faint);
}

.re-property-image-placeholder svg {
    opacity: 0.3;
}

.re-property-type-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--re-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.re-property-type-tag.day {
    background: rgba(245, 158, 11, 0.15);
    color: var(--re-day-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.re-property-type-tag.night {
    background: rgba(139, 92, 246, 0.15);
    color: var(--re-night-color);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.re-property-body {
    padding: 20px;
}

.re-property-name {
    font-family: var(--re-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--re-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.re-property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--re-font-body);
    font-size: 0.85rem;
    color: var(--re-text-muted);
    margin-bottom: 12px;
}

.re-property-price {
    font-family: var(--re-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--re-gold);
    margin-bottom: 12px;
}

.re-property-desc {
    font-family: var(--re-font-body);
    font-size: 0.85rem;
    color: var(--re-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.re-property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.re-property-feature {
    font-family: var(--re-font-body);
    font-size: 0.72rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--re-text-muted);
}

.re-property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--re-border);
}

.re-property-footer .re-btn-apply-sm {
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--re-gold);
    border-radius: 8px;
    font-family: var(--re-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.re-property-footer .re-btn-apply-sm:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.4);
}

.re-property-footer .re-btn-apply-sm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.re-property-footer .re-btn-apply-sm:disabled:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border-color: rgba(212, 175, 55, 0.25);
}

.re-property-mlo {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--re-text-faint);
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
}

.re-property-ineligible-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-family: var(--re-font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--re-red);
    z-index: 2;
}

/* ===== Loading ===== */
.re-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--re-text-muted);
    font-family: var(--re-font-body);
}

.re-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--re-purple);
    border-radius: 50%;
    animation: reSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes reSpin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.re-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.re-empty svg {
    color: var(--re-text-faint);
    margin-bottom: 16px;
    opacity: 0.4;
}

.re-empty h3 {
    font-family: var(--re-font-display);
    color: var(--re-text-muted);
    margin-bottom: 8px;
}

.re-empty p {
    color: var(--re-text-faint);
    font-family: var(--re-font-body);
}

/* ===== Modal ===== */
.re-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.re-modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.re-modal {
    width: 100%;
    max-width: 640px;
    background: linear-gradient(145deg, var(--re-surface-raised), var(--re-surface));
    border: 1px solid var(--re-border-accent);
    border-radius: var(--re-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    margin: auto;
}

.re-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--re-border);
    background: rgba(212, 175, 55, 0.03);
}

.re-modal-badge {
    display: inline-block;
    font-family: var(--re-font-body);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--re-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.re-modal-title {
    font-family: var(--re-font-display);
    color: var(--re-text);
    font-size: 1.3rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.re-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--re-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.re-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--re-red);
}

.re-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Modal Preview */
.re-modal-preview {
    background: var(--re-surface);
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.re-modal-property-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--re-surface-raised);
}

.re-modal-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
}

.re-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--re-text-muted);
    font-family: var(--re-font-body);
    font-size: 0.85rem;
}

.re-meta-item svg {
    opacity: 0.5;
}

.re-type-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--re-font-body);
    font-size: 0.72rem;
    font-weight: 500;
}

.re-type-badge.day {
    background: rgba(245, 158, 11, 0.1);
    color: var(--re-day-color);
}

.re-type-badge.night {
    background: rgba(139, 92, 246, 0.1);
    color: var(--re-night-color);
}

/* Modal Details */
.re-modal-details {
    margin-bottom: 24px;
}

.re-modal-details h4 {
    font-family: var(--re-font-display);
    color: var(--re-gold);
    font-size: 0.95rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.re-modal-details p {
    font-family: var(--re-font-body);
    color: var(--re-text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.re-modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.re-modal-feature {
    font-family: var(--re-font-body);
    font-size: 0.78rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--re-text-muted);
}

/* Apply Form */
.re-apply-form {
    background: var(--re-surface);
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-md);
    padding: 20px;
}

.re-apply-form h4 {
    font-family: var(--re-font-display);
    color: var(--re-gold);
    font-size: 0.95rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.re-form-group {
    margin-bottom: 16px;
}

.re-form-group label {
    display: block;
    font-family: var(--re-font-body);
    font-size: 0.82rem;
    color: var(--re-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.re-form-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--re-border);
    border-radius: 8px;
    color: var(--re-text);
    font-family: var(--re-font-body);
    font-size: 0.9rem;
    cursor: pointer;
}

.re-form-select:focus {
    outline: none;
    border-color: var(--re-gold);
}

.re-form-select option {
    background: #1a1a1a;
    color: #fff;
}

.re-form-select option:disabled {
    color: #555;
}

.re-form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--re-border);
    border-radius: 8px;
    color: var(--re-text);
    font-family: var(--re-font-body);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
}

.re-form-textarea:focus {
    outline: none;
    border-color: var(--re-gold);
}

.re-form-hint {
    font-family: var(--re-font-body);
    font-size: 0.75rem;
    color: var(--re-text-faint);
    margin-top: 6px;
}

.re-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem !important;
    color: var(--re-text-muted) !important;
    line-height: 1.5;
}

.re-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--re-night-color);
}

.re-checkbox-label strong {
    color: var(--re-night-color);
}

#re-ineligible-warning {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    color: #fca5a5;
    font-family: var(--re-font-body);
    font-size: 0.85rem;
    line-height: 1.5;
}

.re-btn-apply {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--re-gold);
    border-radius: 8px;
    font-family: var(--re-font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.re-btn-apply:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(139, 92, 246, 0.2));
    border-color: rgba(212, 175, 55, 0.5);
}

.re-btn-apply:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.re-btn-apply:disabled:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(212, 175, 55, 0.3);
}

/* Success State */
.re-apply-success {
    text-align: center;
    padding: 20px;
}

.re-success-icon {
    margin-bottom: 16px;
}

.re-apply-success h3 {
    font-family: var(--re-font-display);
    color: var(--re-green);
    margin-bottom: 10px;
}

.re-apply-success p {
    font-family: var(--re-font-body);
    color: var(--re-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== Toast ===== */
.re-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.re-toast {
    background: linear-gradient(145deg, var(--re-surface-raised), var(--re-surface));
    border: 1px solid var(--re-border);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    animation: reSlideIn 0.3s ease-out;
    pointer-events: auto;
    font-family: var(--re-font-body);
    font-size: 0.9rem;
    color: var(--re-text);
}

.re-toast.error { border-left: 3px solid var(--re-red); }
.re-toast.success { border-left: 3px solid var(--re-green); }
.re-toast.info { border-left: 3px solid var(--re-blue); }

.re-toast-icon { flex-shrink: 0; }

.re-toast.toast-hide {
    animation: reSlideOut 0.3s ease-in forwards;
}

@keyframes reSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes reSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(50px); }
}

/* ===== Ownership Rules Section ===== */
.re-rules-section {
    background: var(--re-bg);
    padding: 0 0 30px;
}

.re-rules-card {
    background: linear-gradient(145deg, var(--re-surface), var(--re-surface-raised));
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-lg);
    overflow: hidden;
}

.re-rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-bottom: 1px solid transparent;
}

.re-rules-header:hover {
    background: rgba(212, 175, 55, 0.04);
}

.re-rules-header.collapsed {
    border-bottom-color: var(--re-border);
}

.re-rules-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--re-font-display);
    font-size: 0.95rem;
    color: var(--re-gold);
    letter-spacing: 1px;
}

.re-rules-header-left svg {
    color: var(--re-gold);
    opacity: 0.7;
}

.re-rules-chevron {
    color: var(--re-text-muted);
    transition: transform 0.2s ease;
}

.re-rules-header:not(.collapsed) .re-rules-chevron {
    transform: rotate(180deg);
}

.re-rules-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.re-rules-body.collapsed {
    display: none;
}

.re-rule-block {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-md);
    padding: 20px;
}

.re-rule-block h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--re-font-display);
    color: var(--re-gold);
    font-size: 0.9rem;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.re-rule-block h4 svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.re-rule-block ul {
    margin: 0;
    padding-left: 18px;
    color: var(--re-text-muted);
    font-family: var(--re-font-body);
    font-size: 0.85rem;
    line-height: 1.7;
}

.re-rule-block ul li {
    margin-bottom: 8px;
}

.re-rule-block ul li:last-child {
    margin-bottom: 0;
}

.re-rule-block ul li strong {
    color: var(--re-text);
}

/* Splat-specific rules grid */
.re-rule-splats {
    border-color: rgba(139, 92, 246, 0.15);
}

.re-splat-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.re-splat-rule {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-md);
    padding: 16px;
    border-left: 3px solid;
}

.re-splat-rule.kindred { border-left-color: #c0392b; }
.re-splat-rule.garou { border-left-color: #8B4513; }
.re-splat-rule.changeling { border-left-color: #27ae60; }
.re-splat-rule.mage { border-left-color: #2980b9; }
.re-splat-rule.mortal { border-left-color: #f39c12; }

.re-splat-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--re-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.re-splat-tag.kindred { background: rgba(192, 57, 43, 0.15); color: #e74c3c; }
.re-splat-tag.garou { background: rgba(139, 69, 19, 0.15); color: #d35400; }
.re-splat-tag.changeling { background: rgba(39, 174, 96, 0.15); color: #2ecc71; }
.re-splat-tag.mage { background: rgba(41, 128, 185, 0.15); color: #3498db; }
.re-splat-tag.mortal { background: rgba(243, 156, 18, 0.15); color: #f1c40f; }

.re-splat-rule p {
    font-family: var(--re-font-body);
    font-size: 0.83rem;
    color: var(--re-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===== Rules Acknowledgment in Modal ===== */
.re-rules-ack {
    padding: 14px 16px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
}

.re-rules-ack-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.re-rules-ack-inner label {
    font-family: var(--re-font-body) !important;
    font-size: 0.82rem !important;
    color: var(--re-text-muted) !important;
    line-height: 1.5 !important;
    cursor: pointer;
}

.re-rules-ack-inner input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--re-gold);
    flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .re-hero-title {
        font-size: 2.2rem;
    }
    .re-hero-gold {
        font-size: 2.8rem;
    }
    .re-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .re-filter-btns {
        flex-wrap: wrap;
    }
    .re-filter-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .re-user-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .re-user-actions {
        width: 100%;
        justify-content: space-between;
    }
}
