/* =================================================================
   MODAL REGRAS (Modernized)
   ================================================================= */
.rules-section {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    position: relative;
}

.rules-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.rules-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 16px;
    transition: all 0.2s ease;
    background: var(--bg-surface-header);
}

.rules-item:hover {
    background: rgba(var(--brand-primary-rgb), 0.05);
}

.rules-item.highlight {
    background: linear-gradient(90deg, rgba(var(--brand-primary-rgb), 0.1), var(--bg-surface-header));
    border-left: 3px solid var(--brand-primary);
}

.rules-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: 12px;
    color: var(--brand-primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.rules-content {
    display: flex;
    flex-direction: column;
}

.rules-content strong {
    font-size: 1rem;
    color: var(--text-main);
}

.rules-content span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rules-badge {
    min-width: 50px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.rules-badge.silver { background: #94a3b8; }
.rules-badge.blue { background: #3b82f6; }
.rules-badge.gold { background: #eab308; }
.rules-badge.primary { background: var(--grad-primary); }

.example-box {
    background: var(--bg-surface);
    border-radius: 24px;
    border: 2px solid var(--border-highlight);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    z-index: 2;
}

.example-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-primary);
}

.border-brand {
    border: 2px solid var(--brand-primary) !important;
}

.bg-grad-primary {
    background: var(--grad-primary) !important;
    color: white !important;
}

.modal-content {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-highlight);
    border-radius: 32px;
}

.modal-header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Utility for light backgrounds with dark text */
.bg-light {
    background-color: var(--bg-surface-header) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.example-box .bg-light {
    border: 1px solid var(--border-subtle) !important;
}
